# Logfile created on 2015-08-02 08:48:58 -0700 by logger.rb/44203 D, [2015-08-02T08:48:58.932722 #1244] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL)  D, [2015-08-02T08:48:58.935518 #1244] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T08:48:58.936404 #1244] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer)  D, [2015-08-02T08:48:58.937259 #1244] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T08:48:58.995085 #1244] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T08:48:58.998002 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:58.998855 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.001341 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.002039 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.002787 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.004494 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.005177 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.005936 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.015829 #1244] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T08:48:59.016721 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.017382 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.017571 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.021577 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.022381 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T08:48:59.023107 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.023252 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.038696 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.039482 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T08:48:59.040227 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.040377 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.040811 #1244] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T08:48:59.041932 #1244] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T08:48:59.042520 #1244] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T08:48:59.049075 #1244] DEBUG -- :  (0.3ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.049890 #1244] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T08:48:59.050571 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.051336 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.051701 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.052238 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.052995 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.054771 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.055371 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T08:48:59.056073 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.056959 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.057659 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T08:48:59.058381 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.058804 #1244] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T08:48:59.059438 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T08:48:59.060105 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.060413 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.060924 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T08:48:59.061506 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.062187 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.064604 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T08:48:59.065364 #1244] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T08:48:59.065867 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T08:48:59.066523 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.066869 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.067689 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.068578 #1244] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T08:48:59.069068 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T08:48:59.069688 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.071371 #1244] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T08:48:59.072130 #1244] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T08:48:59.072746 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.073483 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.073830 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.074302 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.074917 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.075206 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.075678 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.076278 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.077015 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.077455 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.078078 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.078263 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.079757 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.080494 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T08:48:59.081237 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.081387 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.083134 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.084100 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T08:48:59.084826 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.085315 #1244] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T08:48:59.087688 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T08:48:59.088504 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.089037 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.089747 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.090040 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.090454 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.091093 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.091385 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.091832 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.092468 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.093238 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.093713 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.094362 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.094488 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.095598 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.096285 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T08:48:59.096932 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.097052 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.098020 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.098581 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T08:48:59.099394 #1244] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T08:48:59.099872 #1244] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T08:48:59.101894 #1244] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T08:48:59.104767 #1244] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T08:48:59.105965 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.106580 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.107240 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.107536 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.107984 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.108587 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.108894 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.109331 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.109939 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.110842 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.111303 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.111844 #1244] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T08:48:59.112329 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T08:48:59.112911 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.113396 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.113807 #1244] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T08:48:59.115189 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T08:48:59.115868 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.116430 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.117139 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.117394 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.117978 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.118579 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.118878 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.119352 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.119933 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.120649 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.121077 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.121673 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.121802 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.122932 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.123470 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T08:48:59.124085 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.124201 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.125121 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.125612 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T08:48:59.126211 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.126896 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.127492 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.127935 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.128470 #1244] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T08:48:59.128760 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.129155 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.129749 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.130027 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.130464 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.131090 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.131741 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.132165 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.132833 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.133036 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.134733 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.135401 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T08:48:59.136021 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.136167 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.137531 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.138320 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T08:48:59.139013 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.139575 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.140182 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.140644 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.141253 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.141502 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.141897 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.142456 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.142790 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.143196 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.143830 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.144656 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.145068 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.145693 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.145923 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.146272 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.146885 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.147872 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.148878 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.149502 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T08:48:59.150754 #1244] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T08:48:59.151573 #1244] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T08:48:59.152139 #1244] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T08:48:59.152920 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.153448 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.153943 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.154586 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.154829 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.155212 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.155793 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.156083 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.156501 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.157087 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.157345 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.158132 #1244] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.158889 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.159327 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.159786 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.160491 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.160743 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.161123 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.161749 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.162024 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.162472 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.163088 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.163619 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.164377 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T08:48:59.165503 #1244] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T08:48:59.166094 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T08:48:59.166789 #1244] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T08:48:59.167262 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.167771 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.168225 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.168829 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.169083 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.169462 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.170035 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.170326 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.170765 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T08:48:59.171386 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.171913 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.173177 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T08:48:59.173784 #1244] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T08:48:59.174426 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.174871 #1244] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T08:48:59.175638 #1244] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.175997 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T08:48:59.176782 #1244] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T08:48:59.177257 #1244] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T08:48:59.177765 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.178224 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T08:48:59.178850 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.179092 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.179467 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T08:48:59.180075 #1244] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T08:48:59.180861 #1244] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T08:48:59.181356 #1244] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T08:48:59.181832 #1244] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T08:48:59.182391 #1244] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T08:48:59.183148 #1244] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T08:48:59.183816 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T08:48:59.184379 #1244] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T08:48:59.184743 #1244] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:01:57.864372 #2706] DEBUG -- : SQL (0.4ms) select sqlite_version(*) D, [2015-08-02T09:01:57.864868 #2706] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:57.867841 #2706] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:01:57.868660 #2706] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:01:57.869307 #2706] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:01:57.869971 #2706] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:01:57.873595 #2706] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:01:57.874195 #2706] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:57.874871 #2706] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:01:57.875656 #2706] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:01:57.876122 #2706] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:01:57.876822 #2706] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:01:57.877535 #2706] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:01:57.921964 #2706] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:57.929794 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:57.932767 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:57.935406 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:01:57.939935 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:57.941229 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:01:57.948928 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:01:57.949378 #2706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:01:57.950045 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:01:57.951847 #2706] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:01:57.952736 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:57.953692 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:57.955326 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:57.957136 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:57.959144 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:01:57.959524 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:57.959793 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:01:57.960809 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:01:57.961039 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:01:57.961279 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:01:57.962217 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:01:57.962873 #2706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:01:57.962985 #2706] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:01:57.963081 #2706] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:01:57.963432 #2706] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:57.963661 #2706] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:57.964221 #2706] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:01:57.964850 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:57.965722 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:57.966669 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:01:57.967701 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:57.968724 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:01:57.969611 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:01:57.970814 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:01:57.971078 #2706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:01:57.971313 #2706] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:01:57.972496 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:01:57.972753 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:01:57.973027 #2706] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:01:57.975506 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:01:57.976395 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:57.977410 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:57.978350 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:57.979357 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:57.980547 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:01:57.980837 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:01:57.981128 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:01:57.982221 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:01:57.982474 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:01:57.982711 #2706] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:01:57.983660 #2706] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:01:57.984133 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:01:57.984932 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:57.985873 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:57.986985 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:57.988143 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:57.989397 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:01:58.000573 #2706] DEBUG -- : SpecialPost Load (10.8ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:01:58.001389 #2706] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:01:58.002931 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:01:58.003236 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:01:58.003489 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:01:58.004288 #2706] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:01:58.004848 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:01:58.005281 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:01:58.006097 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.007165 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.008395 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.010063 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:01:58.010686 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:01:58.010967 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:01:58.011245 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:01:58.012041 #2706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:01:58.012452 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:01:58.013224 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.014107 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.015044 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:58.015927 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.017208 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:01:58.017480 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:01:58.017752 #2706] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:01:58.019020 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:01:58.019288 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:01:58.019566 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:01:58.020510 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:58.021442 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.022579 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.023548 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:58.024643 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.025826 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:01:58.026110 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:01:58.026398 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:01:58.027527 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:01:58.027799 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:01:58.028036 #2706] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:01:58.028836 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:58.029677 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.030611 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.031560 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.032746 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.033600 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.035665 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.035956 #2706] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:01:58.036926 #2706] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:01:58.037975 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:01:58.038409 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:01:58.039209 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.040115 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.041045 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:58.042400 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:01:58.043655 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.044579 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.045532 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:58.046551 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:01:58.047207 #2706] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:01:58.047481 #2706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:01:58.047838 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:01:58.048763 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:58.049427 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.050288 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.051245 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:58.052592 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:01:58.052960 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:01:58.053252 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:01:58.054020 #2706] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:01:58.054418 #2706] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:01:58.054730 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:58.055036 #2706] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:01:58.055425 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:01:58.056071 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:58.057026 #2706] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:58.060556 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:01:58.061306 #2706] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:58.061621 #2706] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:01:58.061995 #2706] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:01:58.063117 #2706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:01:58.063412 #2706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:01:59.158019 #2710] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:01:59.158236 #2710] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:59.161012 #2710] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:01:59.162213 #2710] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:01:59.163174 #2710] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:01:59.164133 #2710] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:01:59.167969 #2710] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:01:59.168542 #2710] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:59.169177 #2710] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:01:59.169947 #2710] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:01:59.170431 #2710] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:01:59.171040 #2710] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:01:59.171810 #2710] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:01:59.207315 #2710] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:01:59.214695 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.220446 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.225265 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:01:59.232175 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.234267 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:01:59.242160 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:01:59.242762 #2710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:01:59.243546 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:01:59.246247 #2710] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:01:59.247373 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.248823 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.251024 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.253346 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.255915 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:01:59.256437 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:59.256834 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:01:59.258576 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:01:59.259014 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:01:59.259331 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:01:59.260774 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:01:59.262189 #2710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:01:59.262491 #2710] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:01:59.262806 #2710] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:01:59.263419 #2710] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:59.263775 #2710] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:01:59.275284 #2710] DEBUG -- : SQL (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:01:59.276440 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.277900 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.279611 #2710] DEBUG -- : AREL (0.3ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:01:59.281292 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.282835 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:01:59.284231 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:01:59.286224 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:01:59.286742 #2710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:01:59.287078 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:01:59.288905 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:01:59.289387 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:01:59.289715 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:01:59.292707 #2710] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:01:59.293648 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.295028 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.296562 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.298760 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.300742 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:01:59.301298 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:01:59.301703 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:01:59.303373 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:01:59.303801 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:01:59.304114 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:01:59.305278 #2710] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:01:59.305856 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:01:59.306826 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.308155 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.309445 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.310642 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.312098 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:01:59.312507 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:01:59.312808 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:01:59.314187 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:01:59.314537 #2710] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:01:59.314804 #2710] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:01:59.315680 #2710] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:01:59.316339 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:01:59.316857 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:01:59.317873 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.319059 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.320360 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.321907 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:01:59.322640 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:01:59.323013 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:01:59.323323 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:01:59.326285 #2710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:01:59.326817 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:01:59.327793 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.329012 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.330111 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.331287 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.332796 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:01:59.333198 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:01:59.333493 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:01:59.334838 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:01:59.335185 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:01:59.335436 #2710] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:01:59.336466 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:59.337546 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.338695 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.339995 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.341607 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.343328 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:01:59.343762 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:01:59.344070 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:01:59.345462 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:01:59.345811 #2710] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:01:59.346058 #2710] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:01:59.347021 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:59.348006 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.349096 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.350172 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.351877 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.352943 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.355368 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.355854 #2710] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:01:59.356828 #2710] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:01:59.358249 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:01:59.358695 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:01:59.359591 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.360654 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.361761 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.363096 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:01:59.364685 #2710] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.366053 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.367389 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.368886 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:01:59.370004 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:01:59.372536 #2710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:01:59.372968 #2710] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:01:59.374297 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:59.375250 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.376608 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.377724 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:01:59.379330 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:01:59.379790 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:01:59.380183 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:01:59.381073 #2710] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:01:59.381516 #2710] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:01:59.381863 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:01:59.382256 #2710] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:01:59.382656 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:01:59.383523 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:01:59.384569 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:01:59.386274 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:01:59.387079 #2710] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:01:59.387578 #2710] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:01:59.387988 #2710] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:01:59.389144 #2710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:01:59.389444 #2710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:00.450533 #2718] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:00.450779 #2718] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:00.453464 #2718] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:00.454261 #2718] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:00.454802 #2718] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:00.455409 #2718] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:00.458627 #2718] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:00.459045 #2718] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:00.459690 #2718] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:00.460446 #2718] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:00.460919 #2718] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:00.461547 #2718] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:00.462297 #2718] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:00.504171 #2718] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:00.511602 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.519184 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.522149 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:00.529381 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.531628 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:00.539041 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:00.539652 #2718] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:00.540507 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:00.542641 #2718] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:00.543766 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.544944 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.546724 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.548607 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.551161 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:00.551679 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:00.552049 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:00.554622 #2718] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:00.555344 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:00.555719 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:00.557189 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:00.558455 #2718] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:00.558709 #2718] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:00.558966 #2718] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:00.559612 #2718] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:00.559916 #2718] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:00.560803 #2718] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:00.561850 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.563333 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.564672 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:00.566249 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.567749 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:00.569062 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:00.570811 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:00.571222 #2718] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:00.571508 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:00.572959 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:00.573332 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:00.573639 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:00.578906 #2718] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:00.580070 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.581535 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.582947 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.584507 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.586379 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:00.586829 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:00.587189 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:00.588736 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:00.589088 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:00.589371 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:00.590368 #2718] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:00.591014 #2718] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:00.592276 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.593535 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.594719 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.595892 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.597326 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:00.597674 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:00.598032 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:00.599534 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:00.599872 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:00.600123 #2718] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:00.601229 #2718] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:00.601856 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:00.602474 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:00.603708 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.605208 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.606423 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.608009 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:00.608810 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:00.609151 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:00.609439 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:00.610378 #2718] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:00.610790 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:00.611682 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.612803 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.614335 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.615892 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.617459 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:00.617845 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:00.618194 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:00.619659 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:00.620005 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:00.620270 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:00.621296 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:00.622329 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.625837 #2718] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.627429 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.628825 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.630575 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:00.630981 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:00.631287 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:00.632715 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:00.633029 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:00.633273 #2718] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:00.634289 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:00.635243 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.636549 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.637829 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.639573 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.640794 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.643153 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.643609 #2718] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:00.644528 #2718] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:00.645722 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:00.646158 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:00.647110 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.648246 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.649385 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.650712 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:00.652019 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.653130 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.654424 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.655714 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:00.656608 #2718] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:00.656939 #2718] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:00.657276 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:00.658387 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:00.659192 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.660436 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.661710 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:00.663385 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:00.663771 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:00.664068 #2718] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:00.664999 #2718] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:00.665404 #2718] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:00.665715 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:00.666065 #2718] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:00.666438 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:00.667240 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:00.668433 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:00.670031 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:00.670801 #2718] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:00.671284 #2718] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:00.673752 #2718] DEBUG -- : AREL (2.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:00.675108 #2718] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:00.675476 #2718] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:01.735752 #2724] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:01.735986 #2724] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:01.738633 #2724] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:01.739304 #2724] DEBUG -- : SQL (0.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:01.739890 #2724] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:01.740515 #2724] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:01.753513 #2724] DEBUG -- : SQL (1.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:01.754472 #2724] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:01.760680 #2724] DEBUG -- : SQL (6.0ms) DROP TABLE "taggings" D, [2015-08-02T09:02:01.767496 #2724] DEBUG -- : SQL (6.4ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:01.768427 #2724] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:01.775568 #2724] DEBUG -- : SQL (6.8ms) DROP TABLE "tags" D, [2015-08-02T09:02:01.776940 #2724] DEBUG -- : SQL (0.9ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:01.810114 #2724] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:01.817601 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.827263 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.830394 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:01.836884 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.838247 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:01.845405 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:01.845953 #2724] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:01.846686 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:01.849615 #2724] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:01.850665 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.852043 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.854011 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.856365 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.859160 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:01.859653 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:01.859986 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:01.861500 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:01.861856 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:01.862102 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:01.863501 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:01.864692 #2724] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:01.864924 #2724] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:01.865150 #2724] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:01.865750 #2724] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:01.866079 #2724] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:01.866853 #2724] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:01.867825 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.869094 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.870312 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:01.874164 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.876001 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:01.877430 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:01.879233 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:01.879676 #2724] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:01.879970 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:01.881565 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:01.881933 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:01.882234 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:01.884819 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:01.885872 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.887059 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.888317 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.889735 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.891366 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:01.891805 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:01.892102 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:01.893603 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:01.893949 #2724] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:01.894198 #2724] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:01.895389 #2724] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:01.895905 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:01.896916 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.898167 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.899276 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.900481 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.901977 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:01.902327 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:01.902589 #2724] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:01.904048 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:01.904391 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:01.904633 #2724] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:01.905695 #2724] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:01.906418 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:01.907232 #2724] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:01.908712 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.909993 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.911257 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.912873 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:01.913738 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:01.914123 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:01.914429 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:01.915478 #2724] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:01.915947 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:01.916879 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.918043 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.919330 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.920584 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.922082 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:01.923283 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:01.923622 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:01.925075 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:01.925411 #2724] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:01.925653 #2724] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:01.926685 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:01.927751 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.928961 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.930219 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.931529 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.933044 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:01.933398 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:01.933674 #2724] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:01.935333 #2724] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:01.935789 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:01.936086 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:01.937229 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:01.938421 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.939730 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.941158 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.942914 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.944287 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.947099 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.947672 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:01.948666 #2724] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:01.949995 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:01.950455 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:01.951316 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.952474 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.953593 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.954970 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:01.956285 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.957433 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.958929 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.960145 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:01.961066 #2724] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:01.961440 #2724] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:01.961795 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:01.963012 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:01.963852 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.965052 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.966293 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:01.967942 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:01.968319 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:01.968613 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:01.969626 #2724] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:01.970033 #2724] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:01.970357 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:01.970723 #2724] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:01.971102 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:01.973594 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:01.974967 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:01.976534 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:01.977311 #2724] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:01.977781 #2724] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:01.978158 #2724] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:01.979450 #2724] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:01.979783 #2724] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:03.052274 #2728] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:03.052513 #2728] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:03.055195 #2728] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:03.056206 #2728] DEBUG -- : SQL (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:03.057140 #2728] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:03.058180 #2728] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:03.062637 #2728] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:03.063194 #2728] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:03.063814 #2728] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:03.065086 #2728] DEBUG -- : SQL (1.1ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:03.074923 #2728] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:03.075647 #2728] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:03.076357 #2728] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:03.109007 #2728] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:03.116528 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.122979 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.127672 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:03.132207 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.133396 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:03.139677 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:03.140227 #2728] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:03.140945 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:03.142846 #2728] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:03.143772 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.144999 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.146925 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.149076 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.151404 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:03.151822 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:03.152124 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:03.153551 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:03.153885 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:03.154137 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:03.155554 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:03.156707 #2728] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:03.156954 #2728] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:03.157249 #2728] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:03.157964 #2728] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:03.158313 #2728] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:03.159182 #2728] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:03.160190 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.161374 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.162420 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:03.163742 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.165099 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:03.166302 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:03.167875 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:03.168223 #2728] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:03.168479 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:03.170068 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:03.172464 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:03.172940 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:03.176235 #2728] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:03.177356 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.178553 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.179881 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.181101 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.182622 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:03.183018 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:03.183313 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:03.184752 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:03.185074 #2728] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:03.185347 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:03.186394 #2728] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:03.186926 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:03.188015 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.189256 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.190674 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.192098 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.194012 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:03.194466 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:03.194807 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:03.196390 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:03.196765 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:03.197036 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:03.198037 #2728] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:03.198668 #2728] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:03.199247 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:03.200381 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.201511 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.202638 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.204117 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:03.204862 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:03.205188 #2728] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:03.205472 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:03.206525 #2728] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:03.207151 #2728] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:03.208221 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.209337 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.210429 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.211553 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.213443 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:03.213843 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:03.214189 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:03.215760 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:03.216120 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:03.216394 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:03.217467 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:03.218500 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.219683 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.220942 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.224126 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.225923 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:03.226330 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:03.226630 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:03.228190 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:03.228514 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:03.228775 #2728] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:03.229728 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:03.230718 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.231851 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.233039 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.234617 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.235837 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.238111 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.238725 #2728] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:03.239644 #2728] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:03.241016 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:03.241524 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:03.242461 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.243764 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.245218 #2728] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.247000 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:03.248580 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.249732 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.250890 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.252211 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:03.253096 #2728] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:03.253450 #2728] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:03.253799 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:03.254867 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:03.255852 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.257088 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.258477 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:03.260039 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:03.260414 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:03.260717 #2728] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:03.261686 #2728] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:03.262133 #2728] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:03.262456 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:03.262844 #2728] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:03.263218 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:03.264038 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:03.265262 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:03.267254 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:03.268300 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:03.268949 #2728] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:03.269420 #2728] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:03.270753 #2728] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:03.271133 #2728] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:04.356243 #2732] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:04.356461 #2732] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:04.359254 #2732] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:04.360465 #2732] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:04.361396 #2732] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:04.362357 #2732] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:04.375176 #2732] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:04.375647 #2732] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:04.376315 #2732] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:04.377007 #2732] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:04.377411 #2732] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:04.377977 #2732] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:04.378654 #2732] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:04.411372 #2732] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:04.419088 #2732] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.427261 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.429729 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:04.433412 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.434611 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:04.439493 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:04.440113 #2732] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:04.441223 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:04.442632 #2732] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:04.443750 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.444979 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.446712 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.448099 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.449697 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:04.450112 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:04.450410 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:04.451883 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:04.452204 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:04.452448 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:04.453566 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:04.454463 #2732] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:04.454650 #2732] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:04.454853 #2732] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:04.455345 #2732] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:04.455698 #2732] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:04.456319 #2732] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:04.457116 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.458382 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.459636 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:04.460938 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.462198 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:04.465371 #2732] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:04.467194 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:04.467580 #2732] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:04.467865 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:04.469310 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:04.469655 #2732] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:04.469929 #2732] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:04.471549 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:04.472506 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.473676 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.474944 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.476280 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.477843 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:04.478235 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:04.478526 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:04.479993 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:04.480358 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:04.480651 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:04.481719 #2732] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:04.482216 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:04.483195 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.484318 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.485604 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.486880 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.488437 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:04.488832 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:04.489135 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:04.490466 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:04.490800 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:04.491035 #2732] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:04.492008 #2732] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:04.492634 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:04.493215 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:04.494282 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.495411 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.496751 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.497843 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:04.498656 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:04.499098 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:04.499397 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:04.500346 #2732] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:04.500790 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:04.501662 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.502788 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.503882 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.505098 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.506742 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:04.507212 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:04.507597 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:04.509418 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:04.509793 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:04.510057 #2732] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:04.511803 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:04.512806 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.513913 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.515068 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.516371 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.518028 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:04.518453 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:04.518765 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:04.520200 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:04.520566 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:04.520837 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:04.521817 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:04.522853 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.523973 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.525113 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.526679 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.528017 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.529844 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.530360 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:04.531325 #2732] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:04.532526 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:04.532950 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:04.533783 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.534926 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.536057 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.537422 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:04.538803 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.540072 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.541165 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.542628 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:04.543644 #2732] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:04.544094 #2732] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:04.544471 #2732] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:04.545765 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:04.546691 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.547881 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.549058 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:04.550796 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:04.551162 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:04.551449 #2732] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:04.552408 #2732] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:04.552829 #2732] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:04.553139 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:04.553513 #2732] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:04.553892 #2732] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:04.554708 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:04.555918 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:04.557108 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:04.557932 #2732] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:04.558422 #2732] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:04.560421 #2732] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:04.562435 #2732] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:04.563057 #2732] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:05.639406 #2739] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:05.639626 #2739] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:05.642487 #2739] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:05.643704 #2739] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:05.644653 #2739] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:05.645372 #2739] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:05.658012 #2739] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:05.658959 #2739] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:05.659924 #2739] DEBUG -- : SQL (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:02:05.661128 #2739] DEBUG -- : SQL (0.8ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:05.661794 #2739] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:05.662480 #2739] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:05.663234 #2739] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:05.696459 #2739] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:05.704005 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.712047 #2739] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.715577 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:05.723235 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.728078 #2739] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:05.733423 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:05.734026 #2739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:05.734846 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:05.736646 #2739] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:05.737743 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.739332 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.741408 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.743042 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.744797 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:05.745239 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:05.745546 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:05.746867 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:05.747179 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:05.747407 #2739] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:05.748724 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:05.749692 #2739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:05.749947 #2739] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:05.750203 #2739] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:05.750807 #2739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:05.751104 #2739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:05.751841 #2739] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:05.752756 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.754105 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.755316 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:05.756738 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.758150 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:05.761463 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:05.763289 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:05.763671 #2739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:05.764013 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:05.765468 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:05.765827 #2739] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:05.766092 #2739] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:05.767748 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:05.768793 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.770239 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.771700 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.773175 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.775082 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:05.775596 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:05.775958 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:05.777775 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:05.778261 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:05.778606 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:05.779749 #2739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:05.780297 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:05.781447 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.782605 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.783847 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.785109 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.786685 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:05.787083 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:05.787370 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:05.788813 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:05.789150 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:05.789418 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:05.790413 #2739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:05.791115 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:05.791812 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:05.792932 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.794022 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.795134 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.796119 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:05.796861 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:05.797194 #2739] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:05.797476 #2739] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:05.798496 #2739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:05.798926 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:05.799805 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.801031 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.802305 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.803653 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.805166 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:05.805577 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:05.805892 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:05.807450 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:05.807828 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:05.808093 #2739] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:05.810046 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:05.811188 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.812316 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.813510 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.814726 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.816257 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:05.816633 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:05.816922 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:05.818286 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:05.818621 #2739] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:05.818868 #2739] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:05.820130 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:05.821202 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.822484 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.823697 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.825504 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.826733 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.828656 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.829132 #2739] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:05.830128 #2739] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:05.831282 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:05.831686 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:05.832452 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.833581 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.834779 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.836170 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:05.837526 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.838654 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.840040 #2739] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.841610 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:05.842551 #2739] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:05.842914 #2739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:05.843267 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:05.844354 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:05.845190 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.846411 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.847657 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:05.849373 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:05.849758 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:05.850064 #2739] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:05.851017 #2739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:05.851436 #2739] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:05.851756 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:05.852137 #2739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:05.852535 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:05.853368 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:05.854584 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:05.855741 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:05.856497 #2739] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:05.856973 #2739] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:05.859161 #2739] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:05.860487 #2739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:05.860792 #2739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:06.934096 #2743] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:06.934309 #2743] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:06.937093 #2743] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:06.938359 #2743] DEBUG -- : SQL (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:06.939381 #2743] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:06.940440 #2743] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:06.944471 #2743] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:06.945015 #2743] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:06.953778 #2743] DEBUG -- : SQL (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:02:06.954473 #2743] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:06.954884 #2743] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:06.955615 #2743] DEBUG -- : SQL (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:02:06.956313 #2743] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:06.988507 #2743] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:06.996014 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.003042 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.008207 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:07.012472 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.013686 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:07.018423 #2743] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:07.019198 #2743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:07.020157 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:07.021586 #2743] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:07.022825 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.024298 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.026398 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.027962 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.029847 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:07.030320 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:07.030664 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:07.032161 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:07.032536 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:07.032804 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:07.034087 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:07.035054 #2743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:07.035238 #2743] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:07.035442 #2743] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:07.035924 #2743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:07.036164 #2743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:07.036790 #2743] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:07.037635 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.038780 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.039961 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:07.041311 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.042809 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:07.044161 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:07.045980 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:07.046412 #2743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:07.046715 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:07.048267 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:07.048701 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:07.049014 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:07.052618 #2743] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:07.053617 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.055162 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.056613 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.058132 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.059990 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:07.060442 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:07.060856 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:07.062646 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:07.063125 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:07.063473 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:07.064629 #2743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:07.065252 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:07.066441 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.067786 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.069040 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.070372 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.072333 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:07.072763 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:07.073079 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:07.075017 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:07.075450 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:07.075765 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:07.076738 #2743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:07.077397 #2743] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:07.077988 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:07.079144 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.080386 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.082342 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.083537 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:07.084567 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:07.084981 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:07.085277 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:07.086443 #2743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:07.086968 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:07.088064 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.089332 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.090521 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.091775 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.093368 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:07.093772 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:07.094069 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:07.095819 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:07.096286 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:07.096648 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:07.097918 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:07.099193 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.100510 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.101868 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.103224 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.104891 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:07.107121 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:07.107538 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:07.109368 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:07.109764 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:07.110020 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:07.111158 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:07.112222 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.113367 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.114521 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.116094 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.117237 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.119157 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.119666 #2743] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:07.120601 #2743] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:07.121769 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:07.122171 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:07.122983 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.124206 #2743] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.125474 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.126736 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:07.128059 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.129043 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.130138 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.131527 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:07.132475 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:07.132865 #2743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:07.133238 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:07.134363 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:07.135175 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.136313 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.137459 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:07.139066 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:07.139449 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:07.139746 #2743] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:07.140576 #2743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:07.140983 #2743] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:07.141290 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:07.141671 #2743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:07.142116 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:07.143016 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:07.144269 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:07.145383 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:07.146167 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:07.146634 #2743] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:07.147120 #2743] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:07.148351 #2743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:07.148666 #2743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:08.208211 #2747] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:08.208462 #2747] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:08.211086 #2747] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:08.211871 #2747] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:08.212431 #2747] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:08.213063 #2747] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:08.226277 #2747] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:08.226908 #2747] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:08.227546 #2747] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:08.228333 #2747] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:08.228796 #2747] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:08.229434 #2747] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:08.230233 #2747] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:08.267597 #2747] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:08.275728 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.283615 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.286023 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:08.289721 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.290943 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:08.295748 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:08.296256 #2747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:08.297390 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:08.298716 #2747] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:08.299803 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.301139 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.302963 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.304458 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.306123 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:08.306543 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:08.306815 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:08.308423 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:08.308853 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:08.309126 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:08.310579 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:08.311533 #2747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:08.311721 #2747] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:08.311928 #2747] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:08.312401 #2747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:08.312642 #2747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:08.313259 #2747] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:08.314076 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.315276 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.316391 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:08.317752 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.319311 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:08.322672 #2747] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:08.324388 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:08.324761 #2747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:08.325033 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:08.326487 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:08.326837 #2747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:08.327132 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:08.328711 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:08.329597 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.330835 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.332083 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.333366 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.334956 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:08.335338 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:08.335636 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:08.337047 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:08.337393 #2747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:08.337642 #2747] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:08.338723 #2747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:08.339203 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:08.340209 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.341311 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.342673 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.344096 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.345646 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:08.346063 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:08.346358 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:08.347831 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:08.348174 #2747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:08.348432 #2747] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:08.349478 #2747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:08.350216 #2747] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:08.350980 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:08.352331 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.353811 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.355334 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.356708 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:08.357734 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:08.358252 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:08.358699 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:08.359870 #2747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:08.360417 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:08.361431 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.362579 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.363754 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.365043 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.366619 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:08.367022 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:08.367336 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:08.368798 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:08.369146 #2747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:08.369399 #2747] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:08.370398 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:08.372302 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.373414 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.374662 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.376103 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.377733 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:08.378149 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:08.378472 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:08.379915 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:08.380255 #2747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:08.380499 #2747] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:08.381486 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:08.382477 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.383696 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.384941 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.386608 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.387701 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.389526 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.390008 #2747] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:08.390971 #2747] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:08.392410 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:08.392846 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:08.393800 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.395019 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.396166 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.397553 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:08.398889 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.399996 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.401193 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.402435 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:08.403324 #2747] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:08.403672 #2747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:08.404038 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:08.405165 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:08.406019 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.407216 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.408553 #2747] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:08.410244 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:08.410626 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:08.410927 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:08.411797 #2747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:08.412213 #2747] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:08.412521 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:08.412895 #2747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:08.413266 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:08.414125 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:08.415385 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:08.416621 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:08.417536 #2747] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:08.418093 #2747] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:08.418504 #2747] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:08.421477 #2747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:08.421781 #2747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:09.481525 #2751] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:09.481753 #2751] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:09.484675 #2751] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:02:09.485904 #2751] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:09.486882 #2751] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:09.487839 #2751] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:09.492286 #2751] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:09.492858 #2751] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:09.501869 #2751] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:09.502565 #2751] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:09.502997 #2751] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:09.503561 #2751] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:09.504273 #2751] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:09.536614 #2751] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:09.547334 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.553507 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.559298 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:09.564286 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.565632 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:09.571216 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:09.571726 #2751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:09.572462 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:09.573973 #2751] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:09.575395 #2751] DEBUG -- : AREL (0.4ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.582153 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.591016 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.597269 #2751] DEBUG -- : AREL (0.5ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.600211 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:09.600790 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:09.601184 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:09.603263 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:09.603711 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:09.604016 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:09.605546 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:09.606844 #2751] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:09.607096 #2751] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:09.607354 #2751] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:09.608035 #2751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:09.608365 #2751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:09.609155 #2751] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:09.610223 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.611616 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.612803 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:09.614126 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.615587 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:09.616842 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:09.618673 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:09.619072 #2751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:09.619361 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:09.620828 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:09.621197 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:09.621566 #2751] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:09.625615 #2751] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:09.626650 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.627821 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.629002 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.630263 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.631906 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:09.632306 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:09.632610 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:09.634123 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:09.634482 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:09.634736 #2751] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:09.635804 #2751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:09.636347 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:09.637446 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.638711 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.640000 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.641308 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.642876 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:09.643263 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:09.643569 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:09.645018 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:09.645362 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:09.645613 #2751] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:09.646523 #2751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:09.647083 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:09.647632 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:09.648707 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.649899 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.651059 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.652133 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:09.652916 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:09.653247 #2751] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:09.653534 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:09.654549 #2751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:09.655000 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:09.655911 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.657048 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.658354 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.659753 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.661403 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:09.661859 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:09.662163 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:09.663948 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:09.664414 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:09.664773 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:09.666033 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:09.667184 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.668480 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.669736 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.671112 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.674627 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:09.675224 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:09.675625 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:09.677211 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:09.677545 #2751] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:09.677809 #2751] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:09.678850 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:09.679951 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.681221 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.682368 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.684463 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.685729 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.687841 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.688336 #2751] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:09.689222 #2751] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:09.690344 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:09.690760 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:09.691583 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.692842 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.694099 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.695463 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:09.696981 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.698095 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.699226 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.700457 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:09.701349 #2751] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:09.701699 #2751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:09.702033 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:09.703145 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:09.703927 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.705080 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.706354 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:09.708272 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:09.708693 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:09.709052 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:09.710024 #2751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:09.710568 #2751] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:09.710958 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:09.711354 #2751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:09.711751 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:09.712676 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:09.713898 #2751] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:09.714972 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:09.715771 #2751] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:09.716268 #2751] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:09.716660 #2751] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:09.717980 #2751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:09.718393 #2751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:10.786295 #2759] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:10.786506 #2759] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:10.789168 #2759] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:10.789972 #2759] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:10.790571 #2759] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:10.791171 #2759] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:10.804187 #2759] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:10.804816 #2759] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:10.805472 #2759] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:10.806261 #2759] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:10.806744 #2759] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:10.807250 #2759] DEBUG -- : SQL (0.4ms) DROP TABLE "tags" D, [2015-08-02T09:02:10.807866 #2759] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:10.840563 #2759] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:10.848331 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.856701 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.859391 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:10.863516 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.864734 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:10.869678 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:10.870394 #2759] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:10.871398 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:10.872592 #2759] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:10.873671 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.874832 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.876565 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.878080 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.879670 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:10.880094 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:10.880387 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:10.881946 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:10.882370 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:10.882621 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:10.883931 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:10.884952 #2759] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:10.885153 #2759] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:10.885372 #2759] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:10.885873 #2759] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:10.886118 #2759] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:10.886739 #2759] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:10.887516 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.888712 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.889924 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:10.891501 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.893011 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:10.896185 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:10.897939 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:10.898305 #2759] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:10.898596 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:10.900245 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:10.900660 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:10.900973 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:10.902551 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:10.903472 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.904763 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.906588 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.908327 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.910297 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:10.910758 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:10.911106 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:10.912756 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:10.913181 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:10.913485 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:10.914674 #2759] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:10.915244 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:10.916449 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.918450 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.920079 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.921748 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.923634 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:10.924091 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:10.924462 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:10.926282 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:10.926719 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:10.927013 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:10.928016 #2759] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:10.928665 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:10.929259 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:10.930383 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.931568 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.932733 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.933916 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:10.934703 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:10.935062 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:10.935365 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:10.936446 #2759] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:10.936979 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:10.938050 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.939335 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.940485 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.942096 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.944256 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:10.944765 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:10.945131 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:10.947200 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:10.947804 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:10.948203 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:10.949586 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:10.951767 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.953082 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.954620 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.956129 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.957913 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:10.958468 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:10.958838 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:10.960658 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:10.961083 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:10.961374 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:10.962622 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:10.963981 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.965289 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.966700 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.968561 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.969857 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.971729 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:10.972216 #2759] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:10.973212 #2759] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:10.974430 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:10.974891 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:10.975786 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.976923 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.978113 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.979564 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:10.980879 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.982012 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.983216 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.984533 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:10.985460 #2759] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:10.985812 #2759] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:10.986173 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:10.987376 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:10.988154 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.989271 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.990701 #2759] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:10.992637 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:10.993042 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:10.993336 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:10.994260 #2759] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:10.994664 #2759] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:10.994978 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:10.995337 #2759] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:10.995709 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:10.996592 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:10.997833 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:10.998939 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:10.999714 #2759] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:11.000203 #2759] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:11.000597 #2759] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:11.003478 #2759] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:11.003839 #2759] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:12.071663 #2765] DEBUG -- : SQL (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:12.072128 #2765] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:12.074981 #2765] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:12.075874 #2765] DEBUG -- : SQL (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:12.076522 #2765] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:12.077194 #2765] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:12.089799 #2765] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:12.090266 #2765] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:12.090942 #2765] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:12.091616 #2765] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:12.091980 #2765] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:12.092602 #2765] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:12.093290 #2765] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:12.125697 #2765] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:12.133444 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.141972 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.144410 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:12.148198 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.149655 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:12.154389 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:12.154899 #2765] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:12.155789 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:12.157403 #2765] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:12.158467 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.159641 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.161406 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.162854 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.164556 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:12.164982 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:12.165281 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:12.166805 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:12.167165 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:12.167412 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:12.168640 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:12.169566 #2765] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:12.169751 #2765] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:12.169966 #2765] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:12.170448 #2765] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:12.170693 #2765] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:12.171317 #2765] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:12.172094 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.173230 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.174289 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:12.175767 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.177259 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:12.180611 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:12.182645 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:12.183150 #2765] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:12.183480 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:12.185334 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:12.185805 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:12.186206 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:12.188937 #2765] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:12.190119 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.191622 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.193009 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.194704 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.196802 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:12.197299 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:12.197654 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:12.199333 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:12.199761 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:12.200040 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:12.201158 #2765] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:12.201694 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:12.202787 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.203946 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.205103 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.206524 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.208512 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:12.208929 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:12.209244 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:12.211004 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:12.211375 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:12.211669 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:12.212807 #2765] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:12.213531 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:12.214257 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:12.215587 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.216997 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.218486 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.219866 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:12.220855 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:12.221347 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:12.221757 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:12.223157 #2765] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:12.223734 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:12.224918 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.226340 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.227646 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.228945 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.230688 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:12.231123 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:12.231456 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:12.232987 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:12.233335 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:12.233601 #2765] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:12.234654 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:12.236563 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.237797 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.238966 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.240366 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.242152 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:12.242595 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:12.242910 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:12.244396 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:12.244752 #2765] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:12.245025 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:12.246190 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:12.247230 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.248309 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.249552 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.251331 #2765] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.252564 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.254623 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.255138 #2765] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:12.256031 #2765] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:12.257258 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:12.257658 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:12.258656 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.259858 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.261147 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.262685 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:12.264035 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.265161 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.266367 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.267603 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:12.268506 #2765] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:12.268858 #2765] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:12.269229 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:12.270264 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:12.271064 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.272222 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.273612 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:12.275420 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:12.275843 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:12.276154 #2765] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:12.277203 #2765] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:12.277759 #2765] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:12.278179 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:12.278686 #2765] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:12.279212 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:12.280077 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:12.281349 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:12.282586 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:12.283511 #2765] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:12.284083 #2765] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:12.284557 #2765] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:12.288072 #2765] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:12.288513 #2765] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:13.353934 #2769] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:13.354147 #2769] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:13.356668 #2769] DEBUG -- : SQL (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:02:13.357650 #2769] DEBUG -- : SQL (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:13.358628 #2769] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:13.359677 #2769] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:13.364429 #2769] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:13.373960 #2769] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:13.374774 #2769] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:13.375517 #2769] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:13.375975 #2769] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:13.376573 #2769] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:13.377268 #2769] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:13.410324 #2769] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:13.417871 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.423993 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.428505 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:13.432261 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.433649 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:13.439199 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:13.440060 #2769] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:13.441091 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:13.442340 #2769] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:13.443713 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.445189 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.447515 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.449241 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.451158 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:13.451629 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:13.451980 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:13.453441 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:13.453809 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:13.454090 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:13.455400 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:13.456392 #2769] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:13.456577 #2769] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:13.456767 #2769] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:13.457291 #2769] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:13.457555 #2769] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:13.458310 #2769] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:13.459311 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.461081 #2769] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.469783 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:13.477560 #2769] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.485457 #2769] DEBUG -- : AREL (0.4ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:13.487047 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:13.489182 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:13.489662 #2769] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:13.490001 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:13.491902 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:13.492365 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:13.492705 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:13.496768 #2769] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:13.497822 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.499036 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.500235 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.501559 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.503103 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:13.503494 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:13.503798 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:13.505225 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:13.505572 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:13.505825 #2769] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:13.507004 #2769] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:13.507556 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:13.508790 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.510060 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.511209 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.512456 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.513895 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:13.514258 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:13.514541 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:13.515941 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:13.516279 #2769] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:13.516522 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:13.517591 #2769] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:13.518215 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:13.518857 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:13.520224 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.521542 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.522848 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.523941 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:13.524758 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:13.525104 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:13.525393 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:13.526383 #2769] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:13.526818 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:13.527752 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.528966 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.530192 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.531491 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.533011 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:13.533417 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:13.533720 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:13.535605 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:13.536102 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:13.536455 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:13.537537 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:13.538656 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.539936 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.541222 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.542717 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.544488 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:13.546753 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:13.547126 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:13.548698 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:13.549025 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:13.549287 #2769] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:13.550296 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:13.551308 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.552596 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.553824 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.555403 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.556541 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.558628 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.559157 #2769] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:13.560102 #2769] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:13.561224 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:13.561611 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:13.562494 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.563647 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.564872 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.566318 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:13.567696 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.568900 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.570094 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.571332 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:13.572323 #2769] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:13.572711 #2769] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:13.573080 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:13.574579 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:13.575511 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.576653 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.577776 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:13.579354 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:13.579736 #2769] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:13.580022 #2769] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:13.581568 #2769] DEBUG -- : SpecialTag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:13.582404 #2769] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:13.582813 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:13.583299 #2769] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:13.583826 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:13.584938 #2769] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:13.586492 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:13.587856 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:13.588839 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:13.589461 #2769] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:13.589933 #2769] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:13.591185 #2769] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:13.591522 #2769] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:14.649512 #2773] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:14.649821 #2773] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:14.652682 #2773] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:14.653939 #2773] DEBUG -- : SQL (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:14.654903 #2773] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:14.655898 #2773] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:14.659988 #2773] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:14.668951 #2773] DEBUG -- : SQL (8.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:14.669941 #2773] DEBUG -- : SQL (0.9ms) DROP TABLE "taggings" D, [2015-08-02T09:02:14.670710 #2773] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:14.671279 #2773] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:14.671923 #2773] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:14.672514 #2773] DEBUG -- : SQL (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:14.705567 #2773] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:14.713474 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.719109 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.723809 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:14.727785 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.728995 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:14.733541 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:14.734024 #2773] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:14.734702 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:14.736051 #2773] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:14.737134 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.738362 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.740255 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.741900 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.743543 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:14.743956 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:14.744258 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:14.745604 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:14.745927 #2773] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:14.746176 #2773] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:14.747550 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:14.748483 #2773] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:14.748673 #2773] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:14.748861 #2773] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:14.749352 #2773] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:14.749592 #2773] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:14.750184 #2773] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:14.750953 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.752052 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.753098 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:14.754366 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.755703 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:14.756980 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:14.758609 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:14.758978 #2773] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:14.759253 #2773] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:14.760729 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:14.761079 #2773] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:14.761355 #2773] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:14.765210 #2773] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:14.766386 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.768037 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.769451 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.771117 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.773112 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:14.773595 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:14.773973 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:14.775870 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:14.776393 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:14.776770 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:14.778475 #2773] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:14.779536 #2773] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:14.780814 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.782247 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.783755 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.785373 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.787203 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:14.787644 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:14.788006 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:14.789658 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:14.790035 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:14.790315 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:14.791556 #2773] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:14.792377 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:14.793060 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:14.794438 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.795832 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.797305 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.798534 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:14.799492 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:14.799923 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:14.800243 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:14.801290 #2773] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:14.801766 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:14.802724 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.803898 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.805122 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.806623 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.808549 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:14.808993 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:14.809301 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:14.810829 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:14.811204 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:14.811475 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:14.812674 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:14.813903 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.815059 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.816261 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.817532 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.819195 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:14.821232 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:14.821575 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:14.824298 #2773] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:14.825042 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:14.825572 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:14.826742 #2773] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:14.827952 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.829254 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.830475 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.832156 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.833308 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.835196 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.835667 #2773] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:14.836714 #2773] DEBUG -- : AREL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:14.837954 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:14.838360 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:14.839271 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.840531 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.841949 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.843314 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:14.844632 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.845690 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.846805 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.848192 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:14.849161 #2773] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:14.849533 #2773] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:14.849931 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:14.851734 #2773] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:14.852674 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.853997 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.855403 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:14.858028 #2773] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:14.858533 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:14.858920 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:14.860190 #2773] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:14.860736 #2773] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:14.861157 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:14.861660 #2773] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:14.862190 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:14.863208 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:14.864499 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:14.865764 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:14.866641 #2773] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:14.867184 #2773] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:14.867616 #2773] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:14.868759 #2773] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:14.869076 #2773] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:15.931099 #2780] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:15.931327 #2780] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:15.934305 #2780] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:02:15.935554 #2780] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:15.936512 #2780] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:15.937493 #2780] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:15.950055 #2780] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:15.950589 #2780] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:15.951336 #2780] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:15.952566 #2780] DEBUG -- : SQL (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:15.953318 #2780] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:15.954264 #2780] DEBUG -- : SQL (0.8ms) DROP TABLE "tags" D, [2015-08-02T09:02:15.955035 #2780] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:15.990778 #2780] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:16.000446 #2780] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.010194 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.013108 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:16.017264 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.018775 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:16.025117 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:16.025748 #2780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:16.026598 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:16.028500 #2780] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:16.029717 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.031248 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.033560 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.035243 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.037205 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:16.037702 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:16.038028 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:16.039841 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:16.040259 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:16.040610 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:16.042073 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:16.043361 #2780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:16.043587 #2780] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:16.043849 #2780] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:16.044468 #2780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:16.044770 #2780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:16.045510 #2780] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:16.046505 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.047978 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.049178 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:16.050643 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.052347 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:16.055919 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:16.057842 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:16.058276 #2780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:16.058592 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:16.060113 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:16.060538 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:16.060845 #2780] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:16.062481 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:16.063426 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.064687 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.065911 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.067229 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.068929 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:16.069340 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:16.069767 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:16.071322 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:16.071694 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:16.071952 #2780] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:16.073079 #2780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:16.073587 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:16.074735 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.076153 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.077493 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.078765 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.080381 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:16.080776 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:16.081072 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:16.082566 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:16.082906 #2780] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:16.083159 #2780] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:16.084166 #2780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:16.084830 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:16.085463 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:16.086768 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.088164 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.089721 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.091001 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:16.091968 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:16.092409 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:16.092785 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:16.094602 #2780] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:16.095440 #2780] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:16.097137 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.098644 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.100157 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.101813 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.104013 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:16.104595 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:16.105011 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:16.107386 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:16.108136 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:16.108562 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:16.110041 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:16.112339 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.113767 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.115173 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.116681 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.118551 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:16.119034 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:16.119366 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:16.121228 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:16.121731 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:16.122064 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:16.123291 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:16.124899 #2780] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.126314 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.127429 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.129102 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.130287 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.132364 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.132875 #2780] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:16.133761 #2780] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:16.134913 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:16.135349 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:16.136180 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.137494 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.138652 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.140098 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:16.141607 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.142764 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.143938 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.145280 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:16.146211 #2780] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:16.146573 #2780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:16.146933 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:16.147985 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:16.148790 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.149907 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.151042 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:16.152704 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:16.153090 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:16.153397 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:16.154406 #2780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:16.154875 #2780] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:16.155235 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:16.155665 #2780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:16.156124 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:16.157014 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:16.158156 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:16.159370 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:16.160280 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:16.160840 #2780] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:16.161269 #2780] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:16.164498 #2780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:16.164835 #2780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:17.222538 #2784] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:17.222776 #2784] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:17.225592 #2784] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:17.226729 #2784] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:02:17.227643 #2784] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:17.228554 #2784] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:17.241980 #2784] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:17.242611 #2784] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:17.243343 #2784] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:17.244123 #2784] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:02:17.244578 #2784] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:02:17.245170 #2784] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:17.245866 #2784] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:17.279791 #2784] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:02:17.287616 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.296289 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.299271 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:17.303763 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.305017 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:02:17.309943 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:02:17.311167 #2784] DEBUG -- : Post Load (0.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:17.311954 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:17.313120 #2784] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:02:17.314138 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.315277 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.317063 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.318556 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.320240 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:02:17.320633 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:17.320908 #2784] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:02:17.322464 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:02:17.322935 #2784] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:02:17.323192 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:02:17.324522 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:17.325734 #2784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:17.325968 #2784] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:17.326224 #2784] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:02:17.326821 #2784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:17.327135 #2784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:02:17.327832 #2784] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:02:17.328710 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.329868 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.330906 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:02:17.332150 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.333456 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:02:17.336587 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:02:17.338397 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:02:17.338762 #2784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:17.339050 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:17.341056 #2784] DEBUG -- : AREL (0.4ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:02:17.341434 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:17.341699 #2784] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:02:17.349257 #2784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:02:17.350457 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.354206 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.361897 #2784] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.363304 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.365101 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:02:17.365521 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:02:17.365820 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:02:17.367336 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:02:17.367718 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:17.367985 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:02:17.369012 #2784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:02:17.369571 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:02:17.370777 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.372426 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.374076 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.375808 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.377689 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:02:17.378137 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:02:17.378483 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:02:17.381153 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:02:17.381632 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:17.381968 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:02:17.383189 #2784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:02:17.383943 #2784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:02:17.384683 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:02:17.386596 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.388766 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.390447 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.392125 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:17.393181 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:02:17.393645 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:17.394213 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:02:17.395640 #2784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:17.396320 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:02:17.397633 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.399063 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.400276 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.401664 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.404584 #2784] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:02:17.405444 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:02:17.406026 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:02:17.407698 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:02:17.408243 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:02:17.408533 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:02:17.410674 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:17.412174 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.413623 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.414967 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.416505 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.419172 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:02:17.419741 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:02:17.420135 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:02:17.421894 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:02:17.422311 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:02:17.422597 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:02:17.423707 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:17.425005 #2784] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.426535 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.427972 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.429682 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.430775 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.432682 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.433181 #2784] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:02:17.434031 #2784] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:02:17.435189 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:02:17.435607 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:02:17.436416 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.437529 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.438655 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.440101 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:02:17.441671 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.442778 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.443902 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.445131 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:02:17.446037 #2784] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:02:17.446395 #2784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:02:17.446761 #2784] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:17.447925 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:17.448766 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.449916 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.451045 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:02:17.452660 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:02:17.453035 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:17.453337 #2784] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:02:17.454219 #2784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:17.454646 #2784] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:02:17.454966 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:02:17.455344 #2784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:17.455732 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:17.456622 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:02:17.457750 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:02:17.458950 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:02:17.459861 #2784] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:02:17.460408 #2784] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:02:17.460826 #2784] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:02:17.463684 #2784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:02:17.464000 #2784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:02:18.586739 #2788] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:18.589403 #2788] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:02:18.590134 #2788] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:18.591322 #2788] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:18.602592 #2788] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:18.603617 #2788] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:18.604248 #2788] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:18.605148 #2788] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:18.605833 #2788] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:18.656767 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.664878 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.668446 #2788] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:18.672854 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:18.674079 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.695331 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:18.696247 #2788] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:18.696961 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:18.697977 #2788] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:18.699110 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.700439 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.702571 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.706014 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.709127 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.709953 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:18.716778 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.717141 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:18.718391 #2788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:18.718731 #2788] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:18.720214 #2788] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:18.721153 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.722255 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.723274 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:18.724531 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:18.725820 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.728856 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.730370 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:18.730789 #2788] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:18.731074 #2788] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:18.732469 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.732967 #2788] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:18.733354 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:18.734916 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:18.735895 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.737089 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.738317 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.739673 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.741535 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.741957 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:18.743586 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.743939 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:18.744867 #2788] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:18.745753 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:18.746825 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.748001 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.749257 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.750485 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.752183 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.752550 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:18.754079 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.754408 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:18.755357 #2788] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:18.756860 #2788] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:18.758429 #2788] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:18.759807 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.761270 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.762891 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.765837 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.766368 #2788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:18.766687 #2788] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:18.767395 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:18.767915 #2788] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:18.768517 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:18.769445 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.770582 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.780107 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.781408 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.783079 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.783458 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:18.785020 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.785369 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:18.786184 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:18.787127 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.788635 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.789991 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.791815 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.793567 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.793946 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:18.795894 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.796378 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:18.797225 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:18.798171 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.799323 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.800493 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.802224 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.803330 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.805197 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.805733 #2788] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.806783 #2788] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:18.807903 #2788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:18.808295 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:18.809181 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.810401 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.811698 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.813092 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:18.814481 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.815673 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.816833 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.818385 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:18.819553 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:18.820107 #2788] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:18.821243 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:18.822503 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.824098 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.825610 #2788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:18.827191 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.827550 #2788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:18.828416 #2788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:18.828857 #2788] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:18.829097 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:18.829536 #2788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:18.830007 #2788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:18.830835 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.831936 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:18.833615 #2788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:18.834100 #2788] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:18.834544 #2788] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:18.835445 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:18.835874 #2788] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:18.836207 #2788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:19.936057 #2793] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:19.938968 #2793] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:19.939977 #2793] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:19.941839 #2793] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:19.946077 #2793] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:19.947303 #2793] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:19.948542 #2793] DEBUG -- :  (1.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:19.949528 #2793] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:19.950320 #2793] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:20.013005 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.020742 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.024062 #2793] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:20.028544 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:20.029764 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.042495 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:20.043414 #2793] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:20.044131 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:20.045172 #2793] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:20.046406 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.047756 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.049698 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.053039 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.054979 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.055465 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:20.056951 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.057264 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:20.058487 #2793] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:20.058817 #2793] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:20.060250 #2793] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:20.061110 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.062340 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.063501 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:20.064892 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:20.066536 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.067883 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.069366 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:20.069845 #2793] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:20.070162 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:20.071986 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.072695 #2793] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:20.073122 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:20.075143 #2793] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:20.076282 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.077524 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.078818 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.080546 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.083003 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.083491 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:20.096321 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.096805 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:20.098344 #2793] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:20.100224 #2793] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:20.101655 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.103047 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.104438 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.105808 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.107717 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.108169 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:20.109941 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.110353 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:20.111389 #2793] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:20.112765 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:20.113959 #2793] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:20.115157 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.116383 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.117638 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.120040 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.120559 #2793] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:20.120881 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:20.121597 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:20.122092 #2793] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:20.122695 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:20.123649 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.124836 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.125991 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.127286 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.128973 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.129338 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:20.130777 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.131111 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:20.131939 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:20.132778 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.133928 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.135205 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.136530 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.138258 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.138633 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:20.140174 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.140570 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:20.141484 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:20.142605 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.143748 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.144851 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.146425 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.147467 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.149320 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.149858 #2793] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.150755 #2793] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:20.151871 #2793] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:20.152258 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:20.153104 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.154249 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.155361 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.156658 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:20.157912 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.159009 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.160122 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.161545 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:20.162595 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:20.162998 #2793] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:20.164099 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:20.165106 #2793] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.166384 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.167682 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:20.169449 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.169835 #2793] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:20.170750 #2793] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:20.171234 #2793] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:20.171499 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:20.171981 #2793] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:20.172516 #2793] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:20.173348 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.174487 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:20.176142 #2793] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:20.176699 #2793] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:20.177162 #2793] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:20.178087 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:20.178523 #2793] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:20.178862 #2793] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:21.285581 #2800] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:21.288737 #2800] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:02:21.290045 #2800] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:21.291878 #2800] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:21.295007 #2800] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:21.296265 #2800] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:21.297100 #2800] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:21.298113 #2800] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:21.298784 #2800] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:21.362092 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.367905 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.371147 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:21.375729 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:21.377034 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.391768 #2800] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:21.392735 #2800] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:21.393567 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:21.394635 #2800] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:21.395614 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.396799 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.398577 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.401618 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.403425 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.403877 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:21.405354 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.405684 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:21.406990 #2800] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:21.407299 #2800] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:21.408791 #2800] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:21.409773 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.411270 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.412441 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:21.413809 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:21.415092 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.416232 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.419078 #2800] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:21.420047 #2800] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:21.420714 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:21.422508 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.423258 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:21.423740 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:21.425801 #2800] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:21.427027 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.428328 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.429810 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.431308 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.433689 #2800] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.434127 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:21.451827 #2800] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.452227 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:21.453238 #2800] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:21.454219 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:21.455153 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.456326 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.457696 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.459222 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.460915 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.461303 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:21.462844 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.463188 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:21.464037 #2800] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:21.465172 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:21.466122 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:21.467208 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.468427 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.469712 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.472103 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.472647 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:21.473040 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:21.473916 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:21.474430 #2800] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:21.475052 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:21.475971 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.477121 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.478255 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.479600 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.481390 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.481772 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:21.483269 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.483600 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:21.484421 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:21.485294 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.486483 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.487648 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.489046 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.491063 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.491525 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:21.493128 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.493496 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:21.494235 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:21.495040 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.496108 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.497137 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.498677 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.499697 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.501497 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.502003 #2800] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.502849 #2800] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:21.503981 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:21.504374 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:21.505198 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.506266 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.507383 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.508642 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:21.510346 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.511434 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.512627 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.514206 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:21.515153 #2800] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:21.515640 #2800] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:21.516658 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:21.517532 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.518616 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.519738 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:21.521269 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.521598 #2800] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:21.522479 #2800] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:21.523014 #2800] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:21.523337 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:21.523901 #2800] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:21.524466 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:21.525570 #2800] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.526853 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:21.528797 #2800] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:21.529381 #2800] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:21.529865 #2800] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:21.530830 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:21.531304 #2800] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:21.531652 #2800] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:22.639551 #2806] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:22.642596 #2806] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:22.643856 #2806] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:22.645688 #2806] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:22.649413 #2806] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:22.650518 #2806] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:22.651327 #2806] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:22.652310 #2806] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:22.653007 #2806] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:22.718096 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.726180 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.729417 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:22.733428 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:22.734559 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.746035 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:22.746794 #2806] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:22.747466 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:22.748724 #2806] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:22.749852 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.753658 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.755535 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.759162 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.761095 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.761635 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:22.763641 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.764101 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:22.765450 #2806] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:22.765886 #2806] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:22.767741 #2806] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:22.768709 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.769906 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.771088 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:22.772368 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:22.773542 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.775328 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.777258 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:22.777781 #2806] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:22.778135 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:22.779643 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.780126 #2806] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:22.780494 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:22.782250 #2806] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:22.783224 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.784339 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.785404 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.786530 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.787912 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.788235 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:22.789370 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.789636 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:22.790592 #2806] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:22.791635 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:22.792598 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.793579 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.794529 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.795466 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.796656 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.796972 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:22.798286 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.798655 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:22.799502 #2806] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:22.800626 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:22.801571 #2806] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:22.802452 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.803395 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.804458 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.806536 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.817103 #2806] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:22.817499 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:22.818304 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:22.818791 #2806] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:22.819444 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:22.820246 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.821300 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.822483 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.823700 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.825352 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.825723 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:22.827222 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.827589 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:22.828537 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:22.829387 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.830545 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.831804 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.833081 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.834661 #2806] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.835007 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:22.836303 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.836594 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:22.837416 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:22.838134 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.839032 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.839991 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.841289 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.842582 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.844283 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.844607 #2806] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.845591 #2806] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:22.846538 #2806] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:22.846919 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:22.847563 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.848522 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.849502 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.850563 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:22.851575 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.852528 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.853578 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.854922 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:22.855665 #2806] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:22.856048 #2806] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:22.856845 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:22.857490 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.858489 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.859543 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:22.860839 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.861140 #2806] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:22.861871 #2806] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:22.862291 #2806] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:22.862562 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:22.862980 #2806] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:22.863387 #2806] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:22.864043 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.864933 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:22.867142 #2806] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:22.867583 #2806] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:22.868074 #2806] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:22.869018 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:22.869435 #2806] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:22.869809 #2806] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:23.978287 #2810] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:23.981172 #2810] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:23.981985 #2810] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:23.983135 #2810] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:23.986042 #2810] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:23.987112 #2810] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:23.988221 #2810] DEBUG -- :  (0.8ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:23.989289 #2810] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:23.990030 #2810] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:24.053591 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.061415 #2810] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.066019 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:24.070496 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:24.071595 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.082579 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:24.083355 #2810] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:24.084030 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:24.085516 #2810] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:24.086671 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.088094 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.090021 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.096358 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.098186 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.098711 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:24.100065 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.100380 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:24.101652 #2810] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:24.102004 #2810] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:24.103618 #2810] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:24.104438 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.105530 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.106577 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:24.107781 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:24.109110 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.110312 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.111751 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:24.112167 #2810] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:24.112492 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:24.113737 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.114158 #2810] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:24.114458 #2810] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:24.116148 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:24.116932 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.117915 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.118914 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.119991 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.121346 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.121670 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:24.122813 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.123049 #2810] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:24.124029 #2810] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:24.125177 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:24.126207 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.127345 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.128525 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.129682 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.131102 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.131447 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:24.132959 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.133339 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:24.134155 #2810] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:24.135315 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:24.136158 #2810] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:24.137026 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.138046 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.139186 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.141618 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.142212 #2810] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:24.142642 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:24.143502 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:24.143987 #2810] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:24.155213 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:24.156299 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.157528 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.158717 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.160037 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.161704 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.162089 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:24.163386 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.163675 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:24.164618 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:24.165333 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.166341 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.167431 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.168434 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.169687 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.169973 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:24.171159 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.171433 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:24.172186 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:24.172844 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.173930 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.174944 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.176281 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.177274 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.178904 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.179249 #2810] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.180054 #2810] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:24.180966 #2810] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:24.181332 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:24.181967 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.182869 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.183789 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.184878 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:24.185938 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.186777 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.187689 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.188916 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:24.189622 #2810] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:24.189965 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:24.190867 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:24.191760 #2810] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.192660 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.193680 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:24.195045 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.195388 #2810] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:24.196071 #2810] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:24.196518 #2810] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:24.196782 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:24.197180 #2810] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:24.197571 #2810] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:24.198226 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.199201 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:24.200824 #2810] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:24.201216 #2810] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:24.201638 #2810] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:24.202438 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:24.202832 #2810] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:24.203200 #2810] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:25.293156 #2817] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:25.295988 #2817] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:25.296826 #2817] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:25.297917 #2817] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:25.300988 #2817] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:25.302085 #2817] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:25.302792 #2817] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:25.303791 #2817] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:25.304364 #2817] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:25.372173 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.380117 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.383234 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:25.387218 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:25.388463 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.401476 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:25.402238 #2817] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:25.402912 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:25.403804 #2817] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:25.404624 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.405589 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.407212 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.412850 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.415664 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.416340 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:25.417913 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.418274 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:25.419491 #2817] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:25.419831 #2817] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:25.421523 #2817] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:25.422370 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.423518 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.424482 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:25.425487 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:25.426512 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.427420 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.428750 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:25.429139 #2817] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:25.429403 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:25.430598 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.430990 #2817] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:25.431294 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:25.432658 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:25.433335 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.434442 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.435398 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.436390 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.437760 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.438113 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:25.439304 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.439606 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:25.440661 #2817] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:25.441807 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:25.442866 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.443821 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.444796 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.445945 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.447425 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.447768 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:25.448988 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.449273 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:25.449948 #2817] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:25.451020 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:25.451872 #2817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:25.452703 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.453601 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.454510 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.456547 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.457008 #2817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:25.457344 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:25.458157 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:25.458795 #2817] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:25.470568 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:25.471591 #2817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.472898 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.474119 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.475331 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.476882 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.477254 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:25.478531 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.478793 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:25.479755 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:25.480464 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.481483 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.482566 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.483613 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.484800 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.485112 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:25.486273 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.486557 #2817] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:25.487317 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:25.487960 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.488864 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.489907 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.491258 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.492307 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.494095 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.494465 #2817] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.495301 #2817] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:25.496360 #2817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:25.496764 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:25.497460 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.498428 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.499426 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.500529 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:25.501584 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.502378 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.503265 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.504441 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:25.505126 #2817] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:25.505464 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:25.506197 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:25.506797 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.507804 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.508979 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:25.510371 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.510693 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:25.511323 #2817] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:25.511753 #2817] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:25.511995 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:25.512500 #2817] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:25.512884 #2817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:25.513562 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.514537 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:25.516146 #2817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:25.516491 #2817] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:25.516870 #2817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:25.517733 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:25.518139 #2817] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:25.518509 #2817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:26.614413 #2821] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:26.617414 #2821] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:26.618403 #2821] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:26.620292 #2821] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:26.624565 #2821] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:26.625796 #2821] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:26.626570 #2821] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:26.627587 #2821] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:26.628273 #2821] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:26.691421 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.697033 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.699662 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:26.703735 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:26.704896 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.716052 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:26.716820 #2821] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:26.717531 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:26.718273 #2821] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:26.719041 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.720049 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.721533 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.726455 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.727792 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.728204 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:26.729258 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.729509 #2821] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:26.730498 #2821] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:26.730792 #2821] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:26.732183 #2821] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:26.732928 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.733925 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.734828 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:26.735944 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:26.736979 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.737909 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.739071 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:26.739425 #2821] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:26.739673 #2821] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:26.740730 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.741087 #2821] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:26.741402 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:26.742962 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:26.743809 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.744898 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.745903 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.746925 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.748286 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.748606 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:26.749697 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.749927 #2821] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:26.750730 #2821] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:26.751667 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:26.752408 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.753350 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.754364 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.755448 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.756834 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.757187 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:26.758519 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.758855 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:26.759684 #2821] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:26.760892 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:26.761741 #2821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:26.762581 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.763598 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.764583 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.766631 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.767037 #2821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:26.767327 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:26.768132 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:26.768563 #2821] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:26.778388 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:26.779234 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.780254 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.781239 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.782304 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.783587 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.783891 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:26.784957 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.785196 #2821] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:26.786147 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:26.786856 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.787796 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.788807 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.789950 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.791396 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.791721 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:26.793090 #2821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.793433 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:26.794301 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:26.795061 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.796094 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.797318 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.798636 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.799651 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.801307 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.801656 #2821] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.802590 #2821] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:26.803568 #2821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:26.803917 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:26.804558 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.805508 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.806487 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.807625 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:26.808731 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.809650 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.810629 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.812040 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:26.812715 #2821] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:26.813059 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:26.813949 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:26.814552 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.815528 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.816543 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:26.817835 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.818135 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:26.818875 #2821] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:26.819320 #2821] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:26.819568 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:26.819953 #2821] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:26.820343 #2821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:26.820984 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.821870 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:26.823341 #2821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:26.823672 #2821] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:26.824055 #2821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:26.825006 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:26.825457 #2821] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:26.825826 #2821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:27.919666 #2825] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:27.922641 #2825] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:27.923908 #2825] DEBUG -- :  (1.1ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:27.924991 #2825] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:27.928006 #2825] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:27.928966 #2825] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:27.929698 #2825] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:27.930567 #2825] DEBUG -- :  (0.4ms) DROP TABLE "tags" D, [2015-08-02T09:02:27.931219 #2825] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:27.989453 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:27.995137 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:27.997661 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:28.001460 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:28.002810 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.015962 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:28.016912 #2825] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:28.017762 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:28.018989 #2825] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:28.020008 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.021192 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.023115 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.029183 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.030777 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.031186 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:28.032357 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.032608 #2825] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:28.033638 #2825] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:28.033918 #2825] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:28.035365 #2825] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:28.036103 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.037238 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.038437 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:28.039781 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:28.041196 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.042473 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.044059 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:28.044592 #2825] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:28.044944 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:28.046280 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.046746 #2825] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:28.047111 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:28.048978 #2825] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:28.049915 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.051130 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.052319 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.053540 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.054974 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.055326 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:28.056791 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.057121 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:28.058071 #2825] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:28.059209 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:28.060173 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.061388 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.062554 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.063688 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.065069 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.065408 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:28.066582 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.066876 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:28.067636 #2825] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:28.068899 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:28.069839 #2825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:28.070753 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.071775 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.072757 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.075117 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.075673 #2825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:28.076056 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:28.076791 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:28.077279 #2825] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:28.089709 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:28.090747 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.092581 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.093824 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.095107 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.096761 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.097106 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:28.098386 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.098686 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:28.099569 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:28.100290 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.101291 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.102347 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.103383 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.104618 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.104916 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:28.106083 #2825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.106369 #2825] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:28.107236 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:28.107927 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.108936 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.110018 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.111327 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.112255 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.113904 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.114251 #2825] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.115059 #2825] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:28.116031 #2825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:28.116397 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:28.117041 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.117889 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.118810 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.119811 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:28.120777 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.121559 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.122439 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.123702 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:28.124404 #2825] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:28.124771 #2825] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:28.125586 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:28.126287 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.127167 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.128143 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:28.129495 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.129821 #2825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:28.130463 #2825] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:28.130898 #2825] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:28.131156 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:28.131538 #2825] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:28.131973 #2825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:28.132822 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.133782 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:28.135320 #2825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:28.135674 #2825] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:28.136070 #2825] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:28.136953 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:28.137380 #2825] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:28.137771 #2825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:29.232141 #2829] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:29.234879 #2829] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:29.235548 #2829] DEBUG -- :  (0.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:29.236586 #2829] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:29.239292 #2829] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:29.240205 #2829] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:29.240894 #2829] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:29.241874 #2829] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:29.242667 #2829] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:29.305094 #2829] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.309479 #2829] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.312365 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:29.317640 #2829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:29.318825 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.330730 #2829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:29.331561 #2829] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:29.332206 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:29.333334 #2829] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:29.334206 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.335345 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.337040 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.344082 #2829] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.346243 #2829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.346789 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:29.348232 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.348557 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:29.349752 #2829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:29.350089 #2829] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:29.351669 #2829] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:29.352464 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.353493 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.354587 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:29.355797 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:29.357166 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.358475 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.359814 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:29.360214 #2829] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:29.360490 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:29.361776 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.362212 #2829] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:29.362534 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:29.364049 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:29.364772 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.365709 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.366766 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.367755 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.369137 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.369467 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:29.370485 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.370736 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:29.371656 #2829] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:29.372578 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:29.373361 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.374319 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.375422 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.376455 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.378115 #2829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.378478 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:29.379798 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.380076 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:29.380937 #2829] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:29.381816 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:29.382663 #2829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:29.383556 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.384569 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.385643 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.387902 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.388457 #2829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:29.388816 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:29.389606 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:29.390057 #2829] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:29.401063 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:29.401934 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.402920 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.403888 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.404814 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.406034 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.406329 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:29.407305 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.407540 #2829] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:29.408245 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:29.408860 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.409932 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.411102 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.412195 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.413411 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.413694 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:29.414977 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.415304 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:29.416181 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:29.417033 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.418207 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.419435 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.420968 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.422055 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.423860 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.424242 #2829] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.425119 #2829] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:29.426203 #2829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:29.426644 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:29.427400 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.428504 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.429751 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.431093 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:29.432233 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.433147 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.434076 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.435283 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:29.435951 #2829] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:29.436297 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:29.437161 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:29.437799 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.438779 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.439815 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:29.441199 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.441548 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:29.442338 #2829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:29.442844 #2829] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:29.443099 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:29.443515 #2829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:29.443921 #2829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:29.444660 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.445695 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:29.447095 #2829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:29.447432 #2829] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:29.447817 #2829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:29.448610 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:29.448983 #2829] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:29.449330 #2829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:30.540861 #2837] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:30.543615 #2837] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:30.544418 #2837] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:30.545558 #2837] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:30.549242 #2837] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:30.550269 #2837] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:30.550920 #2837] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:30.551807 #2837] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:30.552354 #2837] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:30.610803 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.618458 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.621560 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:30.625999 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:30.627242 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.638606 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:30.639426 #2837] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:30.640136 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:30.641412 #2837] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:30.642388 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.643467 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.644880 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.650148 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.651997 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.652422 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:30.653629 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.653876 #2837] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:30.655093 #2837] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:30.655497 #2837] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:30.657170 #2837] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:30.658039 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.659137 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.660153 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:30.661327 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:30.662730 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.664024 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.665559 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:30.665958 #2837] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:30.666263 #2837] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:30.667439 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.667860 #2837] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:30.668139 #2837] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:30.669715 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:30.670509 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.671503 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.672528 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.673584 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.675019 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.675349 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:30.676636 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.676952 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:30.677859 #2837] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:30.678858 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:30.679729 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.680742 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.681652 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.682636 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.684348 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.684798 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:30.686056 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.686326 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:30.687018 #2837] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:30.687839 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:30.688658 #2837] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:30.689462 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.690367 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.691675 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.694675 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.695154 #2837] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:30.695464 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:30.696238 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:30.696677 #2837] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:30.706661 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:30.707514 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.708559 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.709662 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.710789 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.712080 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.712401 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:30.713438 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.713672 #2837] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:30.714502 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:30.715126 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.716036 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.717000 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.718110 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.719288 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.719561 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:30.720709 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.720974 #2837] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:30.721638 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:30.722280 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.723156 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.724145 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.725546 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.726607 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.728346 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.728707 #2837] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.729498 #2837] DEBUG -- : SQL (0.5ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:30.730388 #2837] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:30.730744 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:30.731375 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.732238 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.733215 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.734368 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:30.735709 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.736621 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.737515 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.738726 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:30.739418 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:30.739759 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:30.740589 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:30.741226 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.742238 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.743325 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:30.744577 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.744876 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:30.745654 #2837] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:30.746101 #2837] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:30.746353 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:30.746726 #2837] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:30.747107 #2837] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:30.747829 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.749001 #2837] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:30.750669 #2837] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:30.751013 #2837] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:30.751413 #2837] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:30.752240 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:30.752646 #2837] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:30.753020 #2837] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:31.850509 #2843] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:31.853362 #2843] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:31.854365 #2843] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:31.856262 #2843] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:31.860024 #2843] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT '0')  D, [2015-08-02T09:02:31.861285 #2843] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:31.862025 #2843] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:31.863149 #2843] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:31.863879 #2843] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT '0')  D, [2015-08-02T09:02:31.923358 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.931330 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.934484 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:31.938728 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:31.939765 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.951558 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:31.952385 #2843] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:31.955157 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:31.956448 #2843] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:31.957442 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.958568 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.960547 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:31.964021 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.965773 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.966231 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:31.967377 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.967642 #2843] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:31.968660 #2843] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:31.968948 #2843] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:31.970376 #2843] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:31.971094 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.972060 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.972957 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:31.974116 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:31.975150 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.976093 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:31.977304 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:31.977650 #2843] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:31.977916 #2843] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:31.979037 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.979424 #2843] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:31.979709 #2843] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:31.981104 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:31.981960 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.983187 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.984247 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:31.985598 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.987400 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.987820 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:31.989181 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.989477 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:31.990442 #2843] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:31.991562 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:31.992632 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.993796 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:31.994977 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:31.996128 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:31.997590 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.997964 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:31.999257 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:31.999556 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:32.000425 #2843] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:32.001333 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:32.002186 #2843] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:32.012659 #2843] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.013939 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.014919 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.016951 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.017348 #2843] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:32.017659 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:32.018434 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:32.018834 #2843] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:32.019425 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:32.020122 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.021078 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.022201 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:32.023227 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.024662 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.025046 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:32.026296 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.026623 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:32.027544 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:32.028313 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.029294 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.030323 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:32.031413 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.032748 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.033071 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:32.034150 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.034409 #2843] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:32.035108 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:32.035834 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.036739 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.037813 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.039139 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.040046 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.041662 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.042016 #2843] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.042886 #2843] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:32.043914 #2843] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:32.044353 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:32.045026 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.045979 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.047008 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:32.048196 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:32.049259 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.050070 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.050976 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:32.052188 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:32.052900 #2843] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:32.053254 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:32.054013 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:32.054632 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.055437 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.056377 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:32.057656 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.057992 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:32.058801 #2843] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:32.059377 #2843] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:32.059712 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:32.060162 #2843] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:32.060573 #2843] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:32.061291 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.062121 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:32.063473 #2843] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:32.063769 #2843] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:32.064134 #2843] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:32.064919 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:32.065277 #2843] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:32.065602 #2843] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:33.152457 #2847] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:02:33.155440 #2847] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:33.156678 #2847] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:33.158197 #2847] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:02:33.162507 #2847] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:33.164185 #2847] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:33.165047 #2847] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:33.166111 #2847] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:33.166910 #2847] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:33.230788 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.238885 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.242922 #2847] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:33.248202 #2847] DEBUG -- : SQL (0.5ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:33.251409 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.270552 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:33.271540 #2847] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:33.272394 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:33.273342 #2847] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:33.274240 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.275319 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.277101 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.279933 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.281419 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.281938 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:33.283098 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.283356 #2847] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:33.284500 #2847] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:33.284780 #2847] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:33.286154 #2847] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:33.286898 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.288081 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.289217 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:33.290555 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:33.291856 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.293323 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.295221 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:33.295791 #2847] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:33.296158 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:33.297665 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.298147 #2847] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:33.298456 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:33.301027 #2847] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:33.302060 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.303186 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.304480 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.305736 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.307243 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.307621 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:33.318359 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.318746 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:33.319720 #2847] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:33.320672 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:33.321498 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.322401 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.323401 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.324446 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.325860 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.326335 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:33.327677 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.327948 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:33.328751 #2847] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:33.329515 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:33.330349 #2847] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:33.331118 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.332034 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.333037 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.335093 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.335525 #2847] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:33.335817 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:33.336582 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:33.337026 #2847] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:33.337644 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:33.338379 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.339949 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.341328 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.342402 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.343776 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.344120 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:33.345247 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.345517 #2847] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:33.346390 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:33.347096 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.348047 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.349125 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.350142 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.351770 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.352127 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:33.353436 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.353704 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:33.354487 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:33.355194 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.356177 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.357286 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.358733 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.359907 #2847] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.361771 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.362136 #2847] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.363101 #2847] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:33.364014 #2847] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:33.364404 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:33.365064 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.365986 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.366986 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.368183 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:33.369311 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.370156 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.371094 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.372276 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:33.372925 #2847] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:33.373257 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:33.374002 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:33.374590 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.375618 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.376766 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:33.378192 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.378513 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:33.379175 #2847] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:33.379584 #2847] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:33.379817 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:33.380196 #2847] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:33.380562 #2847] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:33.381196 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.382132 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:33.383699 #2847] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:33.384016 #2847] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:33.384388 #2847] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:33.385222 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:33.385575 #2847] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:33.385909 #2847] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:34.404232 #2851] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:34.407304 #2851] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:34.408558 #2851] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:34.410433 #2851] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:34.413584 #2851] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:34.414834 #2851] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:34.415647 #2851] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:34.416738 #2851] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:34.417503 #2851] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:34.467885 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.469069 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.471505 #2851] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:02:34.474519 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.475554 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.476196 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.479499 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.481407 #2851] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:34.482209 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.483311 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.484565 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:34.485273 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.485757 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.486681 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.487294 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.492958 #2851] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:34.501043 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:34.501924 #2851] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:34.502970 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:34.503503 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.504080 #2851] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:34.504885 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.505632 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.506295 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.506601 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.507419 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.508066 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.510015 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.510943 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.511689 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.513998 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.514929 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.515570 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.515885 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.517163 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.517622 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:34.518169 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.518353 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.519305 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.519594 #2851] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:34.520106 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.520283 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.520978 #2851] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:34.521412 #2851] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:34.521852 #2851] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:34.523495 #2851] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:34.524152 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.524890 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.525396 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.525749 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.526566 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.527105 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.527431 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.528048 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:34.528566 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.528943 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.529625 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:34.530134 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.530489 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.531204 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.531805 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.532131 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.532903 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.533455 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.533766 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.534839 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:34.535246 #2851] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:34.535756 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:34.536292 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.536492 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.537474 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.537895 #2851] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:34.538392 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:34.538917 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.540341 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:34.551523 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.552609 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.553272 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.553641 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.554443 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.555038 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.555482 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.556481 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.557126 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.557510 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.558306 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.558947 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.559149 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.560566 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.560967 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:34.561549 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.561759 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.562872 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.563184 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:34.563697 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.564168 #2851] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:34.565219 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:34.566049 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.566803 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.567347 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.567676 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.568392 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.568951 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.569330 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.570093 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.570661 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.571057 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.571828 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.572451 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.572628 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.573890 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.574331 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:34.574882 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.575172 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.576590 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.576978 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:34.577649 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.578133 #2851] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:34.579664 #2851] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:34.580984 #2851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:34.582011 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.582887 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.583424 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.583838 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.584622 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.585193 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.585617 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.586456 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.586990 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.588420 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.589319 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.589908 #2851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:34.590479 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:34.591107 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.591584 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:34.591916 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.592094 #2851] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:34.592617 #2851] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:34.593754 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:34.594639 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.595677 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.596309 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.596749 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.597614 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.598151 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.598555 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.599333 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.599855 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.600234 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.600959 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.601446 #2851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:34.601615 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.602863 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.603207 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:34.603775 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.603934 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.604856 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.605131 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:34.605655 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.606117 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:34.606929 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.607821 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.608507 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.609006 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.609886 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.610468 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.610848 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.611623 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.612200 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.612590 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.613253 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.613716 #2851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:34.613907 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.615277 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.615655 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:34.616247 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.616433 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.617436 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.617753 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:34.618182 #2851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:34.618577 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:34.619254 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.619925 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.620517 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.620958 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.621840 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.622400 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.622762 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.623368 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.623901 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.624881 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.625522 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.626122 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.626434 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.627138 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.627740 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.628548 #2851] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:34.630427 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.630879 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.631939 #2851] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:34.632734 #2851] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:34.633254 #2851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:34.633807 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:34.634456 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.635189 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.635827 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.636324 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.637298 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.637935 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.638278 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.639004 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.639484 #2851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:34.639691 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.640786 #2851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:34.641457 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.642118 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.642921 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.643500 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.643905 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.644625 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.645138 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.645509 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.646240 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.646747 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.646951 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.648057 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:34.649116 #2851] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:34.649525 #2851] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:34.650184 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.650690 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:34.651383 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.652143 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.652704 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.653078 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.653858 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.654384 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.654744 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.655528 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:34.656012 #2851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:34.656218 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.657494 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.657855 #2851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:34.658433 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.658826 #2851] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:34.659423 #2851] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:34.659706 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:34.660233 #2851] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:34.660743 #2851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:34.661416 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.662296 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.662984 #2851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:34.663405 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.664269 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:34.664855 #2851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:34.665990 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.667024 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:34.667456 #2851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:34.668019 #2851] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:34.668746 #2851] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:34.669325 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:34.669581 #2851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:34.669701 #2851] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:34.669981 #2851] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:34.670478 #2851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:35.687460 #2858] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:35.690492 #2858] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:35.691508 #2858] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:35.693177 #2858] DEBUG -- :  (1.0ms) DROP TABLE "posts" D, [2015-08-02T09:02:35.696706 #2858] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:35.698027 #2858] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:35.698913 #2858] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:35.700047 #2858] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:35.700791 #2858] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:35.751486 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.752829 #2858] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.755466 #2858] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:35.758105 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.759285 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.759985 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.761598 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.762423 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:35.763044 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.764130 #2858] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:35.765151 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:35.765814 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.766189 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.766979 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.767536 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.772464 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.779310 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:35.780219 #2858] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:35.781132 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:35.781748 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.782399 #2858] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:35.783358 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.784323 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.784931 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.785325 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.786198 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.786747 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.788949 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.789924 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.790473 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.792403 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.793359 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.793979 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.794363 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.795818 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.796301 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:35.796929 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.797175 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.798462 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.798826 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:35.799388 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.799586 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.800444 #2858] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:35.800961 #2858] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:35.801583 #2858] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:35.803362 #2858] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:35.804031 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.804833 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.805588 #2858] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:35.805909 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.806637 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.807389 #2858] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:35.807793 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.808578 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:35.809220 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.809681 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.810564 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:35.811214 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.811602 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.812460 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.813067 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.813776 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.815063 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.815751 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.815997 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.817217 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:35.817694 #2858] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:35.818200 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:35.818783 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.819003 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.820106 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.820634 #2858] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:35.821136 #2858] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:35.821692 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.822973 #2858] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:35.835837 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.836869 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.837450 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.837798 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.838570 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.839201 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.839592 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.840531 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.841084 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.841465 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.842242 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.842827 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.843042 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.844624 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.845046 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:35.845699 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.845917 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.847075 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.847409 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:35.847954 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.848442 #2858] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:35.849498 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:35.850314 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.851030 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.851594 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.851930 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.852645 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.853161 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.853529 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.854353 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.854918 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.855275 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.855980 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.856575 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.856741 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.858002 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.858334 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:35.858893 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.859111 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.860179 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.860484 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:35.861048 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.861454 #2858] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:35.862753 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:35.863860 #2858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:35.864814 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.865567 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.866174 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.866479 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.867185 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.867784 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.868074 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.868729 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.869274 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.870730 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.871631 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.872262 #2858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:35.872827 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:35.873443 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.873931 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:35.874261 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.874424 #2858] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:35.874812 #2858] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:35.875889 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:35.877037 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.878031 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.878693 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.879076 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.880011 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.880590 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.880976 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.881766 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.882318 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.882683 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.883356 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.883869 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.884036 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.885244 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.885589 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:35.886144 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.886306 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.887210 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.887495 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:35.888054 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.888453 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:35.889121 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.889786 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.890380 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.890747 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.891563 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.892192 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.892521 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.893239 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.893772 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.894108 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.894738 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.895276 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.895443 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.896592 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.896923 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:35.897505 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.897666 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.898563 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.898834 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:35.899382 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.899763 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:35.900458 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.901118 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.901685 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.902051 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.902860 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.903567 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.904168 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.905247 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.906006 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.907516 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.908532 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.909139 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.909500 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.910237 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.910792 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.911599 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.913492 #2858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.914008 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.915049 #2858] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:35.915856 #2858] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:35.916418 #2858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:35.917014 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:35.917673 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.918424 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.919020 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.919359 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.920033 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.920601 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.920921 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.921606 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.922112 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.922332 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.923270 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:35.923789 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.924424 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.925234 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.925922 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.926457 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.927354 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.927828 #2858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:35.928159 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.928872 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.929543 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.929774 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.930951 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:35.932105 #2858] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:35.932511 #2858] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:35.933124 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.933613 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:35.934279 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.935007 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.935518 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.935891 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.936666 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.937167 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.937512 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.938230 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:35.938741 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.938985 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.940237 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.940724 #2858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:35.941242 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.941769 #2858] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:35.942415 #2858] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:35.942741 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:35.943331 #2858] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:35.943901 #2858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:35.944571 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.945326 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.945848 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.946165 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.946857 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:35.947372 #2858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:35.948424 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.949390 #2858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:35.949791 #2858] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:35.950252 #2858] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:35.950890 #2858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:35.951336 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:35.951567 #2858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:35.951682 #2858] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:35.951956 #2858] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:35.952440 #2858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:36.987905 #2862] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:36.991042 #2862] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:02:36.992026 #2862] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:36.993449 #2862] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:02:36.997246 #2862] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:36.998516 #2862] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:36.999350 #2862] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:37.000473 #2862] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:37.001183 #2862] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:37.052670 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.053873 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.056353 #2862] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:02:37.059021 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.060011 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.060678 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.062218 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.063047 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:37.063638 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.064357 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.065596 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:37.066251 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.066693 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.067134 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.067650 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.072451 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.077796 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:37.081244 #2862] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:37.082493 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:37.083221 #2862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:37.083862 #2862] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:37.084617 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.085221 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.085870 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.086121 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.086548 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.087332 #2862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:37.089479 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.090820 #2862] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.095663 #2862] DEBUG -- :  (4.6ms) commit transaction D, [2015-08-02T09:02:37.097648 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.098214 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.101742 #2862] DEBUG -- :  (3.3ms) commit transaction D, [2015-08-02T09:02:37.102141 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.103307 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.103767 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:37.109726 #2862] DEBUG -- :  (5.6ms) commit transaction D, [2015-08-02T09:02:37.109988 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.111448 #2862] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.111885 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:37.112494 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.112662 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.113267 #2862] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:37.113817 #2862] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:37.114373 #2862] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:37.116164 #2862] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:37.116659 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.117218 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.118138 #2862] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:37.118404 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.118923 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.119735 #2862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:37.120203 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.120928 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:37.121798 #2862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:37.122318 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.122831 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:37.123508 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.123844 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.124413 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.125021 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.125340 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.125964 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.126681 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.126870 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.127817 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:37.128317 #2862] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:37.128682 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:37.129306 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.129474 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.130191 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.130716 #2862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:37.131258 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:37.131839 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.133115 #2862] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:37.133744 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.134317 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.134921 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.135135 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.135520 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.136055 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.136284 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.136672 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.137254 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.137465 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.137848 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.138393 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.138518 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.139511 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.139884 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:37.140443 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.140602 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.141303 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.141627 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:37.142348 #2862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:37.142872 #2862] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:37.143913 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:37.144417 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.144895 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.145397 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.145608 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.145979 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.146573 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.146789 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.147201 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.147741 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.147963 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.148376 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.148906 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.149023 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.149918 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.150257 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:37.150816 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.150947 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.151632 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.151933 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:37.152477 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.152894 #2862] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:37.165291 #2862] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:37.166315 #2862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:37.166864 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.167370 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.168045 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.168298 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.168939 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.169727 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.169938 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.170409 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.170982 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.172067 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.172481 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.172951 #2862] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:37.173283 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:37.173867 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.174174 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:37.174334 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.174449 #2862] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:37.174784 #2862] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:37.175650 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:37.176173 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.176730 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.177233 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.177490 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.177930 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.178441 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.178727 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.179325 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.180007 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.180280 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.180782 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.181301 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.181430 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.182691 #2862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.183189 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:37.183856 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.183990 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.184750 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.185043 #2862] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:37.185545 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.185882 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:37.186305 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.186725 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.187326 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.187533 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.187890 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.188478 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.188717 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.189145 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.189619 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.189859 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.190272 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.190849 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.190954 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.191762 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.192102 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:37.192650 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.192765 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.193412 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.193697 #2862] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:37.194200 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.194514 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:37.194877 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.195299 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.195827 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.196038 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.196376 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.196871 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.197083 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.197500 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.197984 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.198611 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.199036 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.199503 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.199715 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.200090 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.200620 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.201117 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.202072 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.202411 #2862] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.203331 #2862] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:37.203996 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.204455 #2862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:37.204966 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:37.205372 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.205824 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.206376 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.206581 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.206969 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.207556 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.207902 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.208362 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.208902 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.209091 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.209830 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:37.210364 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.210767 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.211299 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.211819 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.212035 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.212427 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.212896 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.213108 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.213521 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.214022 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.214187 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.215051 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:37.215878 #2862] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:37.216292 #2862] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:37.216881 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.217279 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:37.217705 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.218162 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.218648 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.218862 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.219257 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.219748 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.219977 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.220412 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:37.220889 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.221063 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.222000 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.222405 #2862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:37.222886 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.223227 #2862] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:37.223690 #2862] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:37.223986 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:37.224415 #2862] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:37.224840 #2862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:37.225215 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.225683 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.226280 #2862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:37.226564 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.227009 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:37.227472 #2862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:37.228245 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.228715 #2862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:37.229038 #2862] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:37.229465 #2862] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:37.230074 #2862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:37.230467 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:37.230632 #2862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:37.230763 #2862] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:37.231059 #2862] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:37.231491 #2862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:38.243696 #2866] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:38.246639 #2866] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:38.247937 #2866] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:38.249866 #2866] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:38.253022 #2866] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:38.254138 #2866] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:38.254921 #2866] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:38.255956 #2866] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:38.256667 #2866] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:38.312145 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.313422 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.316058 #2866] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:38.320741 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.322078 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.322768 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.325343 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.326523 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:38.327138 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.328037 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.329028 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:38.329605 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.329917 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.330291 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.330905 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.335623 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.340266 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:38.341318 #2866] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:38.342271 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:38.342897 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.346425 #2866] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:38.347178 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.347755 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.348374 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.348592 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.348943 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.349492 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.351546 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.352565 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.353091 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.354879 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.355318 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.355853 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.356096 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.356979 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.357440 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:38.358007 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.358141 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.358773 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.359067 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:38.359597 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.359731 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.360250 #2866] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:38.360670 #2866] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:38.361142 #2866] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:38.362686 #2866] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:38.363188 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.363703 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.364321 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.364550 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.364963 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.365496 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.365706 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.366035 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:38.366534 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.366798 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.367170 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:38.367713 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.367920 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.368340 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.368891 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.369110 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.369535 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.370165 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.370332 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.371091 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:38.371493 #2866] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:38.371820 #2866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:38.372359 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.372479 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.373020 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.373421 #2866] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:38.373863 #2866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:38.374463 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.375632 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:38.376285 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.376755 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.377346 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.377545 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.377891 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.378463 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.378674 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.379051 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.379561 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.379791 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.380177 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.380764 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.380916 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.382017 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.382476 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:38.383064 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.383243 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.383933 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.384235 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:38.384721 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.385191 #2866] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:38.386256 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:38.386729 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.387191 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.387715 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.387911 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.388271 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.388794 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.389018 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.389407 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.389938 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.390158 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.390551 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.391177 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.391299 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.392183 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.392566 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:38.393193 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.393387 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.394289 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.394626 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:38.395100 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.395452 #2866] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:38.396624 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:38.407883 #2866] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:38.408612 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.409271 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.409879 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.410120 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.410532 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.411077 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.411287 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.411740 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.412242 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.413411 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.413824 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.414335 #2866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:38.414685 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:38.415273 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.415555 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:38.415718 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.415847 #2866] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:38.416143 #2866] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:38.416790 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:38.417190 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.417611 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.418143 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.418349 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.418708 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.419240 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.419537 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.419931 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.420459 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.420658 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.421055 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.421561 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.421693 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.422476 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.422817 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:38.423432 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.423544 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.424167 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.424464 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:38.424965 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.425292 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:38.425675 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.426070 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.426605 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.426822 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.427204 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.427720 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.427966 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.428370 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.428921 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.429158 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.429545 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.430088 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.430204 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.431014 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.431338 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:38.431957 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.432063 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.432685 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.432961 #2866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:38.433573 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.433946 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:38.434325 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.434729 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.435267 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.435472 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.435865 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.436441 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.436684 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.437107 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.437679 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.438426 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.438832 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.439288 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.439488 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.439833 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.440332 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.440833 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.441738 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.442095 #2866] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.443203 #2866] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:38.443709 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.444129 #2866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:38.444581 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:38.444957 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.445396 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.445835 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.446052 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.446391 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.446853 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.447116 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.447582 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.448061 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.448262 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.448916 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:38.449339 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.449646 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.450068 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.450533 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.450734 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.451086 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.451494 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.451698 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.452088 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.452532 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.452690 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.453493 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:38.454219 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:38.454586 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:38.455085 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.455527 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:38.455997 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.456538 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.457072 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.457388 #2866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:38.457858 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.458507 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.458829 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.459427 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:38.460047 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.460265 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.461428 #2866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.461941 #2866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:38.462575 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.462969 #2866] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:38.463530 #2866] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:38.463844 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:38.464324 #2866] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:38.464745 #2866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:38.465133 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.465590 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.466096 #2866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:38.466308 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.466652 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:38.467147 #2866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:38.467945 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.468476 #2866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:38.468815 #2866] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:38.469256 #2866] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:38.469879 #2866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:38.470200 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:38.470364 #2866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:38.470473 #2866] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:38.470755 #2866] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:38.471153 #2866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:39.489969 #2870] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:39.492715 #2870] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:02:39.493515 #2870] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:39.494610 #2870] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:39.497164 #2870] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:39.498295 #2870] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:39.499011 #2870] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:39.499938 #2870] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:39.500600 #2870] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:39.554929 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.556141 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.558730 #2870] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:39.561652 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.562885 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.563572 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.565593 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.566564 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:39.567168 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.568043 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.569089 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:39.569629 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.569967 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.570373 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.570893 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.575879 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.580985 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:39.582021 #2870] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:39.582966 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:39.583573 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.584098 #2870] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:39.584765 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.585311 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.585851 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.586063 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.586437 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.587035 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.591787 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.593449 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.594087 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.595897 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.596433 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.596911 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.597231 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.598274 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.598768 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:39.599375 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.599494 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.600133 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.600452 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:39.601020 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.601142 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.601558 #2870] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:39.601956 #2870] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:39.602398 #2870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:39.603786 #2870] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:39.604195 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.604745 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.605443 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.605659 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.606027 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.606672 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.606895 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.607218 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:39.607853 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.608109 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.608504 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:39.609013 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.609247 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.609662 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.610167 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.610389 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.610759 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.611353 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.611579 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.612285 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:39.612708 #2870] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:39.613020 #2870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:39.613540 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.613688 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.614321 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.614737 #2870] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:39.615181 #2870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:39.615722 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.616977 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:39.617588 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.618111 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.618746 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.618976 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.619385 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.620011 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.620223 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.620618 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.621200 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.621420 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.621810 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.622385 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.622534 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.623498 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.623846 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:39.624462 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.624639 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.625459 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.625849 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:39.626453 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.627001 #2870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:39.628121 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:39.628672 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.629176 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.629806 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.630078 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.630573 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.631212 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.631492 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.632037 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.632679 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.632944 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.633436 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.634018 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.634184 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.635202 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.635600 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:39.636156 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.636297 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.637033 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.637378 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:39.637916 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.638297 #2870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:39.639584 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:39.640596 #2870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:39.641170 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.641633 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.642164 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.642423 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.642887 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.643546 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.643754 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.644258 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.644781 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.645838 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.646249 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.656315 #2870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:39.656743 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:39.657490 #2870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:39.657837 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:39.657995 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.658141 #2870] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:39.658487 #2870] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:39.659236 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:39.659729 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.660218 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.660763 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.661004 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.661450 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.662071 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.662306 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.662717 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.663249 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.663484 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.663897 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.664526 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.664640 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.665473 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.665804 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:39.666454 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.666584 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.667291 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.667562 #2870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:39.668163 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.668727 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:39.669205 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.669765 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.670317 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.670526 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.670923 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.671521 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.671783 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.672232 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.672841 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.673097 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.673558 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.674133 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.674308 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.675627 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.676023 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:39.676684 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.676826 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.677662 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.678005 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:39.678645 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.678995 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:39.679411 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.679847 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.680434 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.680647 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.681018 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.681533 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.681762 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.682151 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.682714 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.683342 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.683727 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.684276 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.684455 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.684823 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.685367 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.685880 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.686747 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.687109 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.688055 #2870] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:39.688589 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.689032 #2870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:39.689517 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:39.689864 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.690304 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.690777 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.691003 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.691378 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.691858 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.692119 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.692672 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.693220 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.693377 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.694071 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:39.694509 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.694837 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.695265 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.695682 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.695854 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.696213 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.696602 #2870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:39.696801 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.697205 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.697717 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.697893 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.698928 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:39.699918 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:39.700437 #2870] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:39.701138 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.701596 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:39.702067 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.702637 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.703178 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.703390 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.703785 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.704329 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.704644 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.705079 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:39.705596 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.705751 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.706614 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.706944 #2870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:39.707473 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.707793 #2870] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:39.708305 #2870] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:39.708603 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:39.709075 #2870] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:39.709579 #2870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:39.709969 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.710409 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.710988 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.711218 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.711604 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:39.712150 #2870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:39.713161 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.713826 #2870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:39.714277 #2870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:39.714706 #2870] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:39.715316 #2870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:39.715641 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:39.715796 #2870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:39.715910 #2870] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:39.716189 #2870] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:39.716616 #2870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:40.744736 #2878] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:40.747789 #2878] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:40.749031 #2878] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:40.750939 #2878] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:40.754619 #2878] DEBUG -- :  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:40.756470 #2878] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:02:40.757326 #2878] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:40.758444 #2878] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:40.759166 #2878] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:40.810376 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.811554 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.814377 #2878] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:02:40.818927 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.820256 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.820983 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.823416 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.824653 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:40.825358 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.826307 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.827409 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:40.828010 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.828400 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.828828 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.829402 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.834548 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.841943 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:40.843197 #2878] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:40.844396 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:40.845083 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.848454 #2878] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:40.849267 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.849971 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.850622 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.850889 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.851356 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.851971 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.854041 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.855138 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.855669 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.857544 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.858034 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.858607 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.858908 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.859956 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.860481 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:40.860979 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.861119 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.861798 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.862112 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:40.862748 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.862864 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.863347 #2878] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:40.863745 #2878] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:40.864189 #2878] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:40.865679 #2878] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:40.866139 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.866603 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.867285 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.867527 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.867985 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.868564 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.868783 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.869114 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:40.869924 #2878] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:40.870299 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.871166 #2878] DEBUG -- : SQL (0.5ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:40.877063 #2878] DEBUG -- :  (5.7ms) commit transaction D, [2015-08-02T09:02:40.877579 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.878316 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.883426 #2878] DEBUG -- :  (4.8ms) commit transaction D, [2015-08-02T09:02:40.884115 #2878] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:40.885162 #2878] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.891040 #2878] DEBUG -- :  (5.4ms) commit transaction D, [2015-08-02T09:02:40.891356 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.892817 #2878] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:40.893386 #2878] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:40.893833 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:40.894347 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.894525 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.895323 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.895891 #2878] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:40.896495 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:40.897102 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.898424 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:40.899075 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.899613 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.900200 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.900428 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.900834 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.901399 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.901645 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.902118 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.902675 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.902933 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.903334 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.903863 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.903995 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.904886 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.905227 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:40.905794 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.905922 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.906538 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.906846 #2878] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:40.907350 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.907808 #2878] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:40.908807 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:40.909293 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.909740 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.910287 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.910578 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.910953 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.911493 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.911714 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.912128 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.912713 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.912953 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.913361 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.913901 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.914026 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.914881 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.915236 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:40.915770 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.915891 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.916496 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.916775 #2878] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:40.917332 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.917685 #2878] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:40.918905 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:40.931302 #2878] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:40.931944 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.932466 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.933205 #2878] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:40.933465 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.933896 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.934538 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.934742 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.935232 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.935707 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.936937 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.937377 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.937874 #2878] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:40.938234 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:40.938873 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.939155 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:40.939308 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.939435 #2878] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:40.939757 #2878] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:40.940401 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:40.940824 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.941277 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.941907 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.942117 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.942647 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.943343 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.943772 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.944336 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.944890 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.945225 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.945875 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.946444 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.946680 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.947780 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.948183 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:40.948708 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.948846 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.949451 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.949753 #2878] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:40.950304 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.950689 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:40.951127 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.951575 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.952115 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.952324 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.952729 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.953305 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.953587 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.954056 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.954553 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.954806 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.955226 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.955776 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.955880 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.956689 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.957045 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:40.957638 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.957757 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.958431 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.958744 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:40.959238 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.959635 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:40.960050 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.960465 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.961008 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.961184 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.961543 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.962004 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.962221 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.962624 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.963178 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.963863 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.964319 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.964813 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.965014 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.965394 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.965887 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.966386 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.967334 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.967669 #2878] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.968666 #2878] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:40.969320 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.969831 #2878] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:40.970328 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:40.970754 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.971245 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.971849 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.972348 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.973038 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.973636 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.973918 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.974511 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.975053 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.975204 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.975881 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:40.976423 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.976811 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.977380 #2878] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.977984 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.978213 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.978634 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.979189 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.979448 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.979907 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.980429 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.980594 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.981473 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:40.982276 #2878] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:40.982700 #2878] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:40.983358 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.983773 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:40.984197 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.984687 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.985155 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.985393 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.985801 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.986244 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.986480 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.986929 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:40.987376 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.987568 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.988473 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.988871 #2878] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:40.989332 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.989710 #2878] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:40.990279 #2878] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:40.990568 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:40.991045 #2878] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:40.991493 #2878] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:40.991896 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.992380 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.992938 #2878] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:40.993169 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.993568 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:40.994072 #2878] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:40.994928 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.995517 #2878] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:40.995831 #2878] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:40.996250 #2878] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:40.996859 #2878] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:40.997195 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:40.997359 #2878] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:40.997462 #2878] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:40.997740 #2878] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:40.998143 #2878] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:42.024620 #2884] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:02:42.027404 #2884] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:02:42.028633 #2884] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:42.030497 #2884] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:42.033720 #2884] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:42.035045 #2884] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:42.036223 #2884] DEBUG -- :  (0.8ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:42.037491 #2884] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:42.038372 #2884] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:42.092804 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.094111 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.096423 #2884] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:02:42.099587 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.100866 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.101508 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.103562 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.104620 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:42.105233 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.106165 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.107301 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:42.107881 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.108286 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.108720 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.109275 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.114395 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.119424 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:42.120346 #2884] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:42.121274 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:42.121860 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.122352 #2884] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:42.122996 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.123460 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.124089 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.124301 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.124679 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.125235 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.130301 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.131538 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.132169 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.134043 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.134537 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.135067 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.135323 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.136252 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.136713 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:42.137276 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.137411 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.138065 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.138390 #2884] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:42.139001 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.139115 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.139573 #2884] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:42.139983 #2884] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:42.140462 #2884] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:42.141945 #2884] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:42.142395 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.142971 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.143583 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.143780 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.144155 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.144740 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.144976 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.145294 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:42.145827 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.146074 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.146466 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:42.146981 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.147213 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.147623 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.148159 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.148389 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.148793 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.149385 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.149604 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.150311 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:42.150711 #2884] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:42.151025 #2884] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:42.151626 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.151795 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.152405 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.152830 #2884] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:42.153301 #2884] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:42.153887 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.155009 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:42.155614 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.156202 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.156886 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.157143 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.157651 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.158218 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.158519 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.159090 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.159642 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.159933 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.160471 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.161060 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.161218 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.162288 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.162685 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:42.163257 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.163403 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.164127 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.164520 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:42.164999 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.165451 #2884] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:42.166531 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:42.167089 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.167640 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.168184 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.168421 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.168849 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.169336 #2884] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:42.169642 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.170207 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.170952 #2884] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:42.171247 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.171759 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.172413 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.172546 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.173550 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.173977 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:42.174573 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.174758 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.175670 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.176069 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:42.176637 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.177052 #2884] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:42.178353 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:42.179649 #2884] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:42.180236 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.180789 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.181396 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.181691 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.182195 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.182872 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.183137 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.183649 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.184240 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.197044 #2884] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:42.197567 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.198102 #2884] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:42.198468 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:42.199093 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.199377 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:42.199545 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.199662 #2884] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:42.199976 #2884] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:42.200625 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:42.201060 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.201497 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.202082 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.202411 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.203293 #2884] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.204158 #2884] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:42.204394 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.204860 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.205433 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.205690 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.206133 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.206753 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.206899 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.207872 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.208246 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:42.208808 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.208946 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.209715 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.210053 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:42.210606 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.211017 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:42.211472 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.211919 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.212445 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.212642 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.213018 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.213649 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.213843 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.214258 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.214897 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.215139 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.215546 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.216095 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.216286 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.217144 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.217496 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:42.218021 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.218135 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.218783 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.219081 #2884] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:42.219578 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.219907 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:42.220306 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.220704 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.221226 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.221425 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.221775 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.222314 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.222537 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.222925 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.223456 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.224060 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.224495 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.225024 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.225245 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.225686 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.226257 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.226886 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.227879 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.228201 #2884] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.229088 #2884] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:42.229671 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.230076 #2884] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:42.230548 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:42.230940 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.231366 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.231895 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.232071 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.232440 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.232958 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.233170 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.233560 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.234109 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.234250 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.234914 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:42.235565 #2884] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:42.235985 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.236431 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.236935 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.237158 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.237566 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.238092 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.238311 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.238735 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.239261 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.239424 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.240269 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:42.241079 #2884] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:42.241461 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:42.242235 #2884] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:42.242611 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:42.243009 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.243439 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.244003 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.244262 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.244629 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.245134 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.245353 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.245769 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:42.246360 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.246629 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.247459 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.247823 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:42.248367 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.248735 #2884] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:42.249244 #2884] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:42.249572 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:42.250085 #2884] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:42.250698 #2884] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:42.251114 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.251561 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.252139 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.252345 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.252707 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:42.253236 #2884] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:42.253933 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.254374 #2884] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:42.254671 #2884] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:42.255073 #2884] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:42.255742 #2884] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:42.256039 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:42.256175 #2884] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:42.256275 #2884] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:42.256537 #2884] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:42.256919 #2884] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:43.290745 #2888] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:02:43.293402 #2888] DEBUG -- :  (2.3ms) DROP TABLE "authors" D, [2015-08-02T09:02:43.294203 #2888] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:43.295497 #2888] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:43.299444 #2888] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:43.300612 #2888] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:43.301407 #2888] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:43.302465 #2888] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:43.303231 #2888] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:43.354400 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.355631 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.357934 #2888] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:02:43.361423 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.362700 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.363191 #2888] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:43.364908 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.365803 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:43.366334 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.367345 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.368533 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:43.369054 #2888] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:43.369460 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.369945 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.370547 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.375241 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.380329 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:43.381517 #2888] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:43.382504 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:43.383298 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.386767 #2888] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:43.387644 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.388351 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.389028 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.389290 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.389763 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.390442 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.392892 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.394083 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.394932 #2888] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:43.398079 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.398713 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.399579 #2888] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:43.400117 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.401790 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.402385 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:43.403003 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.403186 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.404030 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.404440 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:43.405062 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.405202 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.405774 #2888] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:43.406302 #2888] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:43.406862 #2888] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:43.408669 #2888] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:43.409234 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.409841 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.410482 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.410723 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.411133 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.411763 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.411991 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.412377 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:43.412898 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.413229 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.413622 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:43.414234 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.414467 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.414916 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.415448 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.415659 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.416073 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.416674 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.416808 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.417502 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:43.417915 #2888] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:43.418228 #2888] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:43.418842 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.418969 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.419556 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.419984 #2888] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:43.420429 #2888] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:43.421039 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.422432 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:43.423053 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.423527 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.424163 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.424414 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.424805 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.425278 #2888] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:43.425518 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.425991 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.426706 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.426995 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.427479 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.427971 #2888] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:43.428098 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.428935 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.429302 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:43.429855 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.429988 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.430726 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.431081 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:43.431620 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.432144 #2888] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:43.433196 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:43.433693 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.434133 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.434834 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.435055 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.435442 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.436045 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.436265 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.436683 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.437206 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.437442 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.437863 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.438377 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.438499 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.439343 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.439694 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:43.440266 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.440412 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.441088 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.441386 #2888] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:43.441938 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.442360 #2888] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:43.443697 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:43.454603 #2888] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:43.455266 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.455794 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.456380 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.456581 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.456942 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.457655 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.457839 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.458231 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.458882 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.459929 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.460380 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.460886 #2888] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:43.461269 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:43.461821 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.462113 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:43.462265 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.462382 #2888] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:43.462698 #2888] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:43.463362 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:43.463810 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.464296 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.464893 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.465165 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.465534 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.466131 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.466401 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.466790 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.467433 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.467659 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.468044 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.468662 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.468770 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.469615 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.469963 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:43.470636 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.470747 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.471377 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.471673 #2888] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:43.472282 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.472610 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:43.473006 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.473391 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.474023 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.474230 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.474636 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.475297 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.475558 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.476034 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.476719 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.477037 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.477548 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.478145 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.478256 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.479111 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.479464 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:43.479966 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.480109 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.480683 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.480962 #2888] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:43.481518 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.481868 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:43.482268 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.482669 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.483228 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.483400 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.483748 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.484304 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.484531 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.484931 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.485453 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.486117 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.486555 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.487085 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.487267 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.487642 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.488190 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.488679 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.489568 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.489894 #2888] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.490840 #2888] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:43.491503 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.491917 #2888] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:43.492369 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:43.492750 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.493166 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.493720 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.493908 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.494268 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.494886 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.495182 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.495597 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.496212 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.496371 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.497053 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:43.497651 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.497991 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.498435 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.498965 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.499163 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.499502 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.500136 #2888] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:43.500341 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.500753 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.501275 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.501419 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.502216 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:43.502951 #2888] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:43.503333 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:43.504049 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.504484 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:43.504867 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.505287 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.505838 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.506046 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.506407 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.506967 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.507178 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.507695 #2888] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:43.508262 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.508417 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.509235 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.509601 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:43.510117 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.510483 #2888] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:43.511057 #2888] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:43.511404 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:43.511868 #2888] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:43.512306 #2888] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:43.512672 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.513100 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.513617 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.513792 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.514133 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:43.514704 #2888] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:43.515417 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.515866 #2888] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:43.516172 #2888] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:43.516565 #2888] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:43.517251 #2888] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:43.517645 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:43.517787 #2888] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:43.517890 #2888] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:43.518154 #2888] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:43.518579 #2888] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:44.547471 #2892] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:44.550289 #2892] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:44.551456 #2892] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:44.552585 #2892] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:44.555081 #2892] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:44.556089 #2892] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:44.556848 #2892] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:44.557838 #2892] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:44.558452 #2892] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:44.609323 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.610568 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.613067 #2892] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:02:44.616363 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.617602 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.618269 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.620057 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.621343 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:44.622069 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.623085 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.624178 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:44.624809 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.625109 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.625520 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.626125 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.630761 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.636392 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:44.637403 #2892] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:44.638411 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:44.639296 #2892] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:44.640424 #2892] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:44.644436 #2892] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:44.645194 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.645884 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.646130 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.646570 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.647131 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.649674 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.650846 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.651839 #2892] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:02:44.655459 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.656077 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.656742 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.657072 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.658313 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.658918 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:44.659502 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.659674 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.660427 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.660788 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:44.661436 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.661574 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.662107 #2892] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:44.662610 #2892] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:44.663119 #2892] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:44.664764 #2892] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:44.665219 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.665719 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.666252 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.666488 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.666888 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.667409 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.667623 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.667953 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:44.668559 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.668838 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.669232 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:44.669807 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.670047 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.670458 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.671034 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.671286 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.671746 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.672308 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.672440 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.673142 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:44.673551 #2892] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:44.673866 #2892] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:44.674341 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.674485 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.675047 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.675465 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:44.675885 #2892] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:44.676549 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.677813 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:44.678416 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.678931 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.679562 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.679780 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.680183 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.680718 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.680931 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.681323 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.682114 #2892] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:44.682348 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.683021 #2892] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.691031 #2892] DEBUG -- :  (7.8ms) commit transaction D, [2015-08-02T09:02:44.691298 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.692681 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.693184 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:44.697339 #2892] DEBUG -- :  (3.9ms) commit transaction D, [2015-08-02T09:02:44.697627 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.698965 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.699404 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:44.705413 #2892] DEBUG -- :  (5.7ms) commit transaction D, [2015-08-02T09:02:44.706180 #2892] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:44.707905 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:44.708682 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.709421 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.709990 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.710272 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.710789 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.711321 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.711599 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.712106 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.712604 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.712953 #2892] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:44.713689 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.714292 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.714428 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.715442 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.715845 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:44.716381 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.716521 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.717180 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.717488 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:44.718033 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.718411 #2892] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:44.719719 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:02:44.720719 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:44.732301 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.733035 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.733635 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.733872 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.734232 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.734773 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.734963 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.735385 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.735962 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.737093 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.737538 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.738061 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:44.738431 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:44.739026 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.739352 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:44.739514 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.739649 #2892] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:44.739990 #2892] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:44.740650 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:44.741089 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.741531 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.742141 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.742387 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.742891 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.743460 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.743718 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.744279 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.744881 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.745225 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.745804 #2892] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.746425 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.746562 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.747672 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.748105 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:44.748737 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.748892 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.749679 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.750001 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:44.750516 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.751003 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:44.751501 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.751940 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.752547 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.752760 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.753136 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.753713 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.753956 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.754394 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.754945 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.755153 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.755540 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.756093 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.756205 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.757100 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.757436 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:44.757992 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.758134 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.758876 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.759255 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:44.759806 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.760218 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:44.760741 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.761213 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.761743 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.761970 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.762334 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.762817 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.763058 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.763488 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.764025 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.764734 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.765188 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.765733 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.765911 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.766266 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.766910 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.767418 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.768326 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.768689 #2892] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.769678 #2892] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:44.770279 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.770738 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:44.771209 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:44.771608 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.772038 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.772514 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.772736 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.773116 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.773583 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.773815 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.774263 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.774881 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.775048 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.775712 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:44.776333 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.776709 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.777180 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.777665 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.777871 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.778251 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.778726 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.778952 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.779369 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.779890 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.780045 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.780878 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:44.781653 #2892] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:44.782053 #2892] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:44.782591 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.783014 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:44.783431 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.783906 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.784422 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.784634 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.785019 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.785502 #2892] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:44.785719 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.786158 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:44.786689 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.786871 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.787816 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.788226 #2892] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:44.788791 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.789187 #2892] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:44.789715 #2892] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:44.790049 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:44.790572 #2892] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:44.791088 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:44.791487 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.791917 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.792549 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.792741 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.793084 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:44.793588 #2892] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:44.794454 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.795031 #2892] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:44.795373 #2892] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:44.795878 #2892] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:44.796560 #2892] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:44.796990 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:44.797184 #2892] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:44.797321 #2892] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:44.797681 #2892] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:44.798199 #2892] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:45.837121 #2899] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:45.840105 #2899] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:45.840880 #2899] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:45.842084 #2899] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:45.844522 #2899] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:45.845593 #2899] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:45.846359 #2899] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:45.847367 #2899] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:45.847982 #2899] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:45.900370 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.901644 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.904346 #2899] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:02:45.908942 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.910339 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.911024 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.913325 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.914638 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:45.915214 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.916146 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.917165 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:45.917710 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.918049 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.918457 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.918980 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.923301 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.928777 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:45.930026 #2899] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:45.933863 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:45.934765 #2899] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:45.935495 #2899] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:45.936317 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.937042 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.937571 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:45.937834 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.938323 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.938937 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.941340 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.942544 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:45.943169 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.945126 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.945689 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.946486 #2899] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:45.947047 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.948701 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.949325 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:45.950013 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.950198 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.951089 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.951491 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:45.952157 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.952296 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.952859 #2899] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:45.953373 #2899] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:45.953921 #2899] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:45.955745 #2899] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:45.956269 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.956869 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.957472 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.957746 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.958184 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.958782 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.959029 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.959463 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:45.960032 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.960322 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.960824 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:45.961422 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.961697 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.962231 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.962673 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:45.962920 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.963371 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:45.963879 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.964043 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.964813 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:45.965249 #2899] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:45.965600 #2899] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:45.966100 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.966221 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.966887 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.967345 #2899] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:45.967828 #2899] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:45.968330 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.969515 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:45.970079 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.970580 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.971101 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.971336 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.971842 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.972386 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.972610 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.973062 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:45.973700 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.973947 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.974425 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.975020 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.975173 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.976325 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.976745 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:45.977394 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:45.977532 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.978240 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.978552 #2899] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:45.978984 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:45.979445 #2899] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:45.980500 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:45.981015 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.981497 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.982088 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.982381 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.982850 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:45.983431 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.983690 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.984192 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:45.984765 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:45.985007 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.996562 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:45.997430 #2899] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:45.997632 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:45.999053 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:45.999524 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:46.000203 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.000348 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.001093 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.001497 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:46.002105 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.002587 #2899] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:46.003634 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:46.004697 #2899] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:46.005253 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.005772 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.006329 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.006552 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.006961 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.007559 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.007798 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.008356 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.008912 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.010553 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.011246 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.011841 #2899] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:46.012264 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:46.012881 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.013245 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:46.013706 #2899] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:46.014464 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:46.014913 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.015467 #2899] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.016025 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.016250 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.016699 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.017291 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.017501 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.017924 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:46.018479 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.018710 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.019305 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.019948 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.020094 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.021045 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.021400 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:46.021973 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.022084 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.022780 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.023098 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:46.023733 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.024586 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:46.025105 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.025708 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.026274 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.026556 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.027065 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.027594 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.027863 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.028357 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:46.028822 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.029070 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.029517 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.029966 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.030086 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.031014 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.031399 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:46.031895 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.032041 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.032764 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.033100 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:46.033622 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.034018 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:46.034422 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.034880 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.035384 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.035606 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.036054 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.036582 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.036869 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.037369 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.037860 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.038605 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.039127 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.039615 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.039854 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.040309 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.040869 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.041398 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.042549 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.042955 #2899] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.043880 #2899] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:46.044521 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.045042 #2899] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:46.045645 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:46.046080 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.046583 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.047136 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.047369 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.047811 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.048378 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.048649 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.049153 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:46.049735 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.049917 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.050753 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:46.051203 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.051565 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.052034 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.052594 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.052854 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.053310 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.053839 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.054079 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.054571 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:46.055098 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.055244 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.056142 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:46.057030 #2899] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:46.057482 #2899] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:46.058170 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.058644 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:46.059094 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.059575 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.060052 #2899] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:46.060313 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.060777 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.061360 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.061645 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.062154 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:46.062734 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.062905 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.063832 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.064225 #2899] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:46.064719 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.065076 #2899] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:46.065625 #2899] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:46.065961 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:46.066486 #2899] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:46.067009 #2899] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:46.067440 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.067900 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.068451 #2899] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:46.068679 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.069107 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:46.069755 #2899] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:46.070680 #2899] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:46.071247 #2899] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:46.071642 #2899] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:46.072115 #2899] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:46.073000 #2899] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:46.073755 #2899] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:46.074529 #2899] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:46.075169 #2899] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:47.083371 #2903] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:47.086315 #2903] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:47.087088 #2903] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:47.088240 #2903] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:47.090610 #2903] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:47.091753 #2903] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:02:47.092489 #2903] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:47.093479 #2903] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:47.094184 #2903] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:47.143621 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.144818 #2903] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.147558 #2903] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:02:47.152028 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.153398 #2903] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.154077 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.157027 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.158395 #2903] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:47.159056 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.160190 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.161358 #2903] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:47.162091 #2903] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:47.162462 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.162912 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.163503 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.168895 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.174185 #2903] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:47.175222 #2903] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:47.178674 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:47.179427 #2903] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:47.180047 #2903] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:47.180707 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.181257 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.181723 #2903] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:47.181967 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.182404 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.182898 #2903] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:47.185035 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.186247 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.186825 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.188555 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.189060 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.189615 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.189882 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.190862 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.191453 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:47.191971 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.192112 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.192795 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.193105 #2903] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:47.193626 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.193732 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.194167 #2903] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:47.194589 #2903] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:47.195062 #2903] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:47.196576 #2903] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:47.197002 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.197576 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.198193 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.198436 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.198852 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.199420 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.199619 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.199988 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:47.200508 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.200765 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.201206 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:47.201712 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.201942 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.202382 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.202879 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.203102 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.203520 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.204088 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.204313 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.205069 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:47.205491 #2903] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:47.205819 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:47.206329 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.206448 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.207107 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.207590 #2903] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:47.208277 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:47.208896 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.210212 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:47.210854 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.211371 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.211921 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.212145 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.212570 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.213104 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.213319 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.213750 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.214385 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.214641 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.215113 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.215781 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.215935 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.216912 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.217305 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:47.217921 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.218073 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.218848 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.219169 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:47.219746 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.220198 #2903] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:47.221238 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:47.221763 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.222309 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.222850 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.223094 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.223518 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.224112 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.224338 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.224821 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.225403 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.225631 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.236384 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.237109 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.237263 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.238316 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.238685 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:47.239321 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.239452 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.240071 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.240367 #2903] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:47.240982 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.241401 #2903] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:47.242326 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:47.243255 #2903] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:47.243812 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.244304 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.244873 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.245111 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.245566 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.246173 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.246368 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.246833 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.247405 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.248555 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.248988 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.249491 #2903] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:47.249872 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:47.250418 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.250831 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:47.251374 #2903] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:47.252269 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:47.252785 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.253229 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.253839 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.254057 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.254508 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.255124 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.255411 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.255969 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.256602 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.256885 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.257413 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.257973 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.258114 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.259111 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.259505 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:47.260039 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.260190 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.261000 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.261364 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:47.261972 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.262432 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:47.262879 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.263335 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.263886 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.264106 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.264508 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.265083 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.265295 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.265705 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.266286 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.266624 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.267055 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.267561 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.267695 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.268586 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.268969 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:47.269563 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.269686 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.270322 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.270635 #2903] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:47.271170 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.271584 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:47.271997 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.272470 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.272945 #2903] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:47.273165 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.273615 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.274148 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.274387 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.274801 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.275296 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.276105 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.276715 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.277288 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.277608 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.278048 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.278555 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.279034 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.280009 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.280392 #2903] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.281435 #2903] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:47.282068 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.282569 #2903] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:47.283114 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:47.283543 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.284079 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.284608 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.284827 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.285259 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.285796 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.286015 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.286444 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.286996 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.287133 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.287875 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:47.288444 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.288803 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.289243 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.289746 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.289934 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.290297 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.290820 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.291009 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.291417 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.291901 #2903] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:47.292069 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.293016 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:47.293769 #2903] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:47.294150 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:47.294779 #2903] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:47.295134 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:47.295511 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.295920 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.296424 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.296651 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.297076 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.297620 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.297840 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.298284 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:47.298875 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.299038 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.299910 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.300282 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:47.300785 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.301173 #2903] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:47.301718 #2903] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:47.302061 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:47.302590 #2903] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:47.303240 #2903] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:47.303610 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.304038 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.304621 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.304829 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.305219 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:47.305743 #2903] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:47.306492 #2903] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:47.306953 #2903] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:47.307288 #2903] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:47.307681 #2903] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:47.308360 #2903] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:47.308655 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:47.308986 #2903] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:47.309377 #2903] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:48.323752 #2907] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:48.326544 #2907] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:48.327373 #2907] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:48.328576 #2907] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:48.331059 #2907] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:48.332120 #2907] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:48.332854 #2907] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:48.333866 #2907] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:48.334493 #2907] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:48.387694 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.388947 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.391555 #2907] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:48.394715 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.395979 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.396678 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.398639 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.399827 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:48.400488 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.401403 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.402368 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:48.402982 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.403303 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.403696 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.404335 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.408759 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.414248 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:48.415332 #2907] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:48.418804 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:48.419699 #2907] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:48.420411 #2907] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:48.421244 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.421962 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.422587 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.422873 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.423408 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.423992 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.426835 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.428044 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.428690 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.430766 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.431358 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.432070 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.432364 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.433478 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.434026 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:48.434816 #2907] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:48.435070 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.436537 #2907] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.437200 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:48.438138 #2907] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:48.438322 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.438936 #2907] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:48.439487 #2907] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:48.440104 #2907] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:48.442078 #2907] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:48.442594 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.443172 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.443801 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.444031 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.444532 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.445089 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.445326 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.445723 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:48.446276 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.446581 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.447050 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:48.447601 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.447863 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.448285 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.448848 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.449059 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.449498 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.450061 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.450239 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.451047 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:48.451483 #2907] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:48.451838 #2907] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:48.452578 #2907] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:48.452705 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.453392 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.453853 #2907] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:48.454534 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:48.455100 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.456681 #2907] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:48.457414 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.458008 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.458578 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.458881 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.459441 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.460121 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.460470 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.461184 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.461867 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.462120 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.462653 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.463235 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.463381 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.464454 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.464884 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:48.465534 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.465701 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.466514 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.466895 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:48.467477 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.468009 #2907] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:48.469276 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:48.469862 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.470448 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.470965 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.471196 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.471639 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.472277 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.472512 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.473018 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.473602 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.473830 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.484723 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.485383 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.485555 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.486570 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.486955 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:48.487733 #2907] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:48.487895 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.489110 #2907] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.489555 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:48.494505 #2907] DEBUG -- :  (4.7ms) commit transaction D, [2015-08-02T09:02:48.495233 #2907] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:48.496425 #2907] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:48.497567 #2907] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:48.498200 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.498773 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.500488 #2907] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:02:48.500845 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.501443 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.508743 #2907] DEBUG -- :  (7.1ms) commit transaction D, [2015-08-02T09:02:48.509148 #2907] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:48.510150 #2907] DEBUG -- : SQL (0.5ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.510819 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.512298 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.512899 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.513557 #2907] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:48.514029 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:48.514589 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.514959 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:48.515446 #2907] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:48.516217 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:48.516680 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.517217 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.517940 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.518356 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.519210 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.519952 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.520213 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.520776 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.521401 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.521639 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.522082 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.522692 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.522845 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.524059 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.524583 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:48.525138 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.525301 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.526041 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.526361 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:48.526980 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.527487 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:48.528005 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.528582 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.529216 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.529454 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.529941 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.530544 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.530786 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.531315 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.531981 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.532373 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.533046 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.533725 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.533875 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.535152 #2907] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.535641 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:48.536236 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.536384 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.537279 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.537652 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:48.538156 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.538565 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:48.538986 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.539434 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.539995 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.540295 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.540871 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.541499 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.541739 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.542183 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.542696 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.543349 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.543846 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.544348 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.544572 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.545024 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.545561 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.546059 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.547040 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.547426 #2907] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.548315 #2907] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:48.548962 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.549401 #2907] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:48.549920 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:48.550325 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.550805 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.551308 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.551529 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.551988 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.552536 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.552807 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.553307 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.553793 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.553967 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.554770 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:48.555295 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.555692 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.556221 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.556688 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.556900 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.557318 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.557809 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.558027 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.558431 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.558901 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.559085 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.560074 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:48.560925 #2907] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:48.561343 #2907] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:48.561874 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.562239 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:48.562616 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.563049 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.563556 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.563891 #2907] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:48.564337 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.564793 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.565008 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.565451 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:48.565887 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.566050 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.566999 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.567356 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:48.567882 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.568222 #2907] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:48.568733 #2907] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:48.569050 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:48.569518 #2907] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:48.569971 #2907] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:48.570338 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.570776 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.571296 #2907] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:48.571483 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.571867 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:48.572320 #2907] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:48.573063 #2907] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:48.573524 #2907] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:48.573869 #2907] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:48.574301 #2907] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:48.574927 #2907] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:48.575290 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:48.575679 #2907] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:48.576142 #2907] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:49.617942 #2911] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:49.620791 #2911] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:49.621509 #2911] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:49.622563 #2911] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:49.625048 #2911] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:49.626041 #2911] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:49.626740 #2911] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:49.627649 #2911] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:49.628278 #2911] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:49.683548 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.684722 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.687480 #2911] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:02:49.692067 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.693446 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.694116 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.696532 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.697718 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:49.698307 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.699293 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.700389 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:49.701188 #2911] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:49.701875 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.702781 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.703330 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.708345 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.713475 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:49.714477 #2911] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:49.717762 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:49.718648 #2911] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:49.719699 #2911] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:49.720897 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.721603 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.722260 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.722506 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.723047 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.723706 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.726473 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.727851 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.728591 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.730936 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.731702 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.732318 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.732688 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.734044 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.734734 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:49.735481 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.735684 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.736584 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.736968 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:49.737616 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.737779 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.738397 #2911] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:49.738960 #2911] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:49.739575 #2911] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:49.741516 #2911] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:49.742064 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.742686 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.743356 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.743608 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.744052 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.744613 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.744858 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.745259 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:49.745770 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.746095 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.746579 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:49.747195 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.747526 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.748134 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.748745 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.749059 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.749572 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.750186 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.750370 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.751287 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:49.751822 #2911] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:49.752240 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:49.752806 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.752958 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.753659 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.754175 #2911] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:49.754736 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:49.755233 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.756622 #2911] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:49.757325 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.757971 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.758624 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.758881 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.759384 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.759865 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.760196 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.760853 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.761451 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.761736 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.762260 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.762780 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.762920 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.763940 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.764373 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:49.764995 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.765194 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.766146 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.766618 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:49.767174 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.767750 #2911] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:49.769027 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:49.769537 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.770093 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.770722 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.770979 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.771455 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.772068 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.772336 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.772860 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.773483 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.773744 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.786873 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.787820 #2911] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:49.788022 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.789317 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.789862 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:49.790513 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.790702 #2911] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:49.791570 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.792002 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:49.792635 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.793094 #2911] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:49.794243 #2911] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:49.795402 #2911] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:49.795994 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.796562 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.797157 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.797392 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.797829 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.798417 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.798626 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.799100 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.799716 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.800893 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.801330 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.801883 #2911] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:49.802336 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:49.802917 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.803232 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:49.803663 #2911] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:49.804370 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:49.804774 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.805217 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.805750 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.805956 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.806343 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.806907 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.807170 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.807637 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.808187 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.808511 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.809108 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.809695 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.809849 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.811103 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.811556 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:49.812122 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.812269 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.813061 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.813432 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:49.813920 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.814406 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:49.814884 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.815389 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.815891 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.816111 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.816536 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.817107 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.817358 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.817845 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.818378 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.818610 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.819030 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.819583 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.819712 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.820605 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.820970 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:49.821508 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.821676 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.822383 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.822759 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:49.823293 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.823681 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:49.824130 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.824625 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.825134 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.825341 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.825821 #2911] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.826395 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.826706 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.827190 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.827737 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.828532 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.829073 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.829594 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.829813 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.830245 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.830740 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.831305 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.832421 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.832797 #2911] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.833708 #2911] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:49.834319 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.834774 #2911] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:49.835292 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:49.835685 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.836149 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.836644 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.836854 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.837273 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.837789 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.838019 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.838464 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.838942 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.839091 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.839756 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:49.840325 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.840634 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.841064 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.841611 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.841836 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.842277 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.842803 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.843006 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.843393 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.843935 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.844114 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.844983 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:49.845740 #2911] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:49.846139 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:49.846771 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.847165 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:49.847513 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.847944 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.848483 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.848712 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.849194 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.849683 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.849902 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.850332 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:49.850871 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.851053 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.851963 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.852356 #2911] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:49.852866 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.853214 #2911] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:49.853742 #2911] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:49.854067 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:49.854557 #2911] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:49.855050 #2911] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:49.855451 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.855919 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.856437 #2911] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:49.856686 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.857127 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:49.857606 #2911] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:49.858428 #2911] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:49.858942 #2911] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:49.859284 #2911] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:49.859797 #2911] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:49.860410 #2911] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:49.860859 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:49.861261 #2911] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:49.861702 #2911] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:51.033731 #2919] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:02:51.036803 #2919] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:51.038118 #2919] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:51.040017 #2919] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:02:51.043485 #2919] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:51.044780 #2919] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:51.045612 #2919] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:51.046764 #2919] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:51.047443 #2919] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:51.099181 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.100406 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.102807 #2919] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:02:51.105748 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.106874 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.107611 #2919] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:51.109332 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.110524 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:51.111350 #2919] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:51.112575 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.113858 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:51.114438 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.114834 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.115284 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.115883 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.120452 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.125151 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:51.126368 #2919] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:51.127733 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:51.128441 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.129128 #2919] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:51.130012 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.130771 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.131421 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.131720 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.132369 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.133003 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.138061 #2919] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:51.139265 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.139980 #2919] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:51.141696 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.142190 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.142748 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.143085 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.144188 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.144642 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:51.145269 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.145406 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.146110 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.146409 #2919] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:51.146950 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.147055 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.147482 #2919] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:51.147891 #2919] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:51.148331 #2919] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:51.149718 #2919] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:51.150156 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.150647 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.151225 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.151419 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.151832 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.152408 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.152624 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.153013 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:51.153574 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.153862 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.154296 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:51.154750 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.155007 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.155443 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.156035 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.156295 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.156754 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.157410 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.157571 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.158467 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:51.158939 #2919] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:51.159280 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:51.159943 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.160191 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.161177 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.161767 #2919] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:51.162307 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:51.162808 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.164165 #2919] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:51.164841 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.165412 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.165956 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.166160 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.166588 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.167143 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.167458 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.168066 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.168647 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.168899 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.169334 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.169868 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.169995 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.170979 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.171355 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:51.171915 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.172072 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.172933 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.173312 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:51.173940 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.174441 #2919] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:51.175686 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:51.176455 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.177230 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.177886 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.178181 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.178723 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.179195 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.179505 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.180046 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.180637 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.180944 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.181496 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.182019 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.182162 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.183207 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.183608 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:51.184124 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.184269 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.185036 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.195407 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:51.196044 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.196525 #2919] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:51.197480 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:51.198446 #2919] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:51.198971 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.199495 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.200065 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.200377 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.200958 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.201569 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.201763 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.202173 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.202676 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.203786 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.204223 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.204703 #2919] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:51.205071 #2919] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:51.205639 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.206113 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:51.206706 #2919] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:51.207520 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:51.207957 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.208484 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.209111 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.209342 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.209905 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.210554 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.210884 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.211471 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.212065 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.212372 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.212927 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.213397 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.213525 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.214588 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.215027 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:51.215584 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.215739 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.216543 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.216886 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:51.217536 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.218036 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:51.218533 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.219125 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.219824 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.220065 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.220568 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.221097 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.221357 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.221826 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.222331 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.222570 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.222997 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.223518 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.223640 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.224542 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.224919 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:51.225517 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.225654 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.226303 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.226632 #2919] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:51.227213 #2919] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:51.227709 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:51.228138 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.228584 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.229143 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.229357 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.229752 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.230315 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.230545 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.231113 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.231669 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.232357 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.232770 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.233314 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.233487 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.233871 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.234402 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.234920 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.235970 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.236383 #2919] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.237363 #2919] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:51.238056 #2919] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:51.238497 #2919] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:51.239032 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:51.239422 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.239876 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.240449 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.240682 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.241105 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.241666 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.241924 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.242427 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.242966 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.243127 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.243895 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:51.244449 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.244815 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.245297 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.245843 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.246080 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.246549 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.247056 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.247290 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.247822 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.248421 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.248644 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.249709 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:51.250545 #2919] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:51.250966 #2919] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:51.251512 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.251898 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:51.252313 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.252845 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.253358 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.253629 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.254128 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.254601 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.254866 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.255365 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:51.255846 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.256041 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.257072 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.257475 #2919] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:51.257989 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.258436 #2919] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:51.259062 #2919] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:51.259434 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:51.260030 #2919] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:51.260601 #2919] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:51.261084 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.261647 #2919] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.262233 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.262500 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.262992 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:51.263487 #2919] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:51.264314 #2919] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:51.264804 #2919] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:51.265147 #2919] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:51.265600 #2919] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:51.266092 #2919] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:51.266423 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:51.266783 #2919] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:51.267190 #2919] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:52.429125 #2925] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:52.431621 #2925] DEBUG -- :  (2.2ms) DROP TABLE "authors" D, [2015-08-02T09:02:52.432426 #2925] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:52.433577 #2925] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:52.435924 #2925] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:52.436986 #2925] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:52.437770 #2925] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:52.438813 #2925] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:52.439477 #2925] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:52.488971 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.490236 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.492702 #2925] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:02:52.495470 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.496549 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.497240 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.498674 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.499570 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:52.500294 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.501041 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.503227 #2925] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:52.504094 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.504609 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.505156 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.505731 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.510635 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.515304 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:52.516318 #2925] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:52.517343 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:52.517927 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.518453 #2925] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:52.519255 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.519897 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.520514 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.520750 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.521195 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.521798 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.526714 #2925] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:52.527887 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.528547 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.530330 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.530824 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.531400 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.531630 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.532672 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.533157 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:52.533685 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.533843 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.534667 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.535030 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:52.535518 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.535647 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.536098 #2925] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:52.536529 #2925] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:52.536974 #2925] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:52.538484 #2925] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:52.538921 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.539407 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.539947 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.540157 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.540579 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.541192 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.541406 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.541797 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:52.542365 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.542665 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.543119 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:52.543612 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.543873 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.544328 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.544947 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.545281 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.545911 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.546481 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.546646 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.547615 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:52.548084 #2925] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:52.548420 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:52.549000 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.549155 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.549906 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.550434 #2925] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:52.550981 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:52.551599 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.552833 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:52.553474 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.554054 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.554601 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.554846 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.555292 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.555871 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.556096 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.556562 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.557156 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.557423 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.557898 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.558434 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.558563 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.559541 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.559927 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:52.560560 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.560724 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.561502 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.561885 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:52.562420 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.562949 #2925] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:52.564065 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:52.564601 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.565224 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.565790 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.566081 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.566579 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.567180 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.567518 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.568166 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.568772 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.569038 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.569501 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.570015 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.570151 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.571190 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.571600 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:52.572144 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.572288 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.573183 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.583318 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:52.584035 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.584499 #2925] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:52.585434 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:52.586422 #2925] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:52.586938 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.587441 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.588039 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.588239 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.588636 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.589484 #2925] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:52.589740 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.590567 #2925] DEBUG -- : SQL (0.5ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.596183 #2925] DEBUG -- :  (5.4ms) commit transaction D, [2015-08-02T09:02:52.597854 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.598486 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.599136 #2925] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:52.599595 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:52.603390 #2925] DEBUG -- :  (3.6ms) commit transaction D, [2015-08-02T09:02:52.603917 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:52.604540 #2925] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:52.605563 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:52.606063 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.606681 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.610906 #2925] DEBUG -- :  (3.9ms) commit transaction D, [2015-08-02T09:02:52.611309 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.612039 #2925] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.612573 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.612859 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.613356 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.613869 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.614128 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.614635 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.615220 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.615340 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.616303 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.616673 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:52.617167 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.617303 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.617994 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.618323 #2925] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:52.618816 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.619222 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:52.619650 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.620116 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.620603 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.620815 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.621218 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.621712 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.621950 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.622438 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.623032 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.623308 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.623801 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.624372 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.624488 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.625504 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.625964 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:52.626516 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.626666 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.627578 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.627994 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:52.628544 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.629089 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:52.629554 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.630072 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.630713 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.630967 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.631433 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.631983 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.632238 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.632647 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.633197 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.634025 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.634525 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.635075 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.635305 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.635763 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.636362 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.636923 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.638148 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.638521 #2925] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.639396 #2925] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:52.639999 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.640468 #2925] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:52.641011 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:52.641396 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.641837 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.642327 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.642553 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.643029 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.643534 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.643793 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.644272 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.644755 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.644899 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.645964 #2925] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:52.646623 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.647083 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.647704 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.648234 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.648457 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.648886 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.649412 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.649648 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.650115 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.650573 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.650733 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.651619 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:52.652451 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:52.652952 #2925] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:52.653476 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.653877 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:52.654285 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.654752 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.655237 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.655447 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.655866 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.656354 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.656559 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.656969 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:52.657444 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.657595 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.658390 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.658745 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:52.659259 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.659675 #2925] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:52.660190 #2925] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:52.660492 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:52.660964 #2925] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:52.661431 #2925] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:52.661921 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.662391 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.662895 #2925] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:52.663108 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.663561 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:52.664064 #2925] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:52.664882 #2925] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:52.665438 #2925] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:52.665775 #2925] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:52.666161 #2925] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:52.666767 #2925] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:52.667144 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:52.667570 #2925] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:52.668115 #2925] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:53.781080 #2929] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:53.783618 #2929] DEBUG -- :  (2.3ms) DROP TABLE "authors" D, [2015-08-02T09:02:53.784416 #2929] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:53.786143 #2929] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:53.789274 #2929] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:53.790477 #2929] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:53.791221 #2929] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:53.792823 #2929] DEBUG -- :  (1.0ms) DROP TABLE "tags" D, [2015-08-02T09:02:53.793597 #2929] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:53.845988 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.847289 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.849777 #2929] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:02:53.853282 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.854672 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.855354 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.857141 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.858491 #2929] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:53.859239 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.860179 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.861423 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:53.861982 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.862403 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.862928 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.863489 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.868357 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.874151 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:53.875424 #2929] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:53.876784 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:53.877438 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.878151 #2929] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:53.878948 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.879614 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.880194 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.880528 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.881164 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.881780 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.886463 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.887507 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.888178 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.890117 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.890641 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.891250 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.891510 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.892730 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.893317 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:53.893937 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.894078 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.894883 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.895264 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:53.895877 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.895991 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.896447 #2929] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:53.896899 #2929] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:53.897358 #2929] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:53.899129 #2929] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:53.899646 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.900213 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.900859 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.901156 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.901712 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.902258 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.902501 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.902907 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:53.903405 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.903723 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.904164 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:53.904673 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.904928 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.905360 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.905932 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.906176 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.906639 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.907248 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.907444 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.908397 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:53.909012 #2929] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:53.909493 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:53.910079 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.910242 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.911147 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.911784 #2929] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:53.912366 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:53.912919 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.914368 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:53.915019 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.915599 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.916104 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.916341 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.916824 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.917326 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.917576 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.918056 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.918581 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.918812 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.919261 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.919763 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.919883 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.920795 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.921153 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:53.921675 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.921819 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.922560 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.922902 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:53.923360 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.923803 #2929] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:53.924930 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:53.925405 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.925925 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.926427 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.926714 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.927172 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.927610 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.927843 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.928292 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.928740 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.929029 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.929518 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.929994 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.930123 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.931323 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.931785 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:53.932382 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.932656 #2929] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:53.933987 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.944352 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:53.945033 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.945545 #2929] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:53.946760 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:53.947973 #2929] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:53.948796 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.949496 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.950121 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.950369 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.950875 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.951518 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.951799 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.952349 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.952986 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.954373 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.954937 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.955539 #2929] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:53.956031 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:53.956713 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.957123 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:53.957635 #2929] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:53.958464 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:53.958943 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.959525 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.960111 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.960424 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.960944 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.961407 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.961660 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.962120 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.962691 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.963051 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.963528 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.964063 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.964182 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.965242 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.965636 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:53.966324 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.966518 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.967355 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.967706 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:53.968255 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.968690 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:53.969168 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.969665 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.970208 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.970450 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.970862 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.971398 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.971634 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.972069 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.972619 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.972826 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.973233 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.973779 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.973887 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.974755 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.975135 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:53.975710 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.975857 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.976772 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.977177 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:53.977822 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.978282 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:53.978749 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.979258 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.979831 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.980060 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.980479 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.981042 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.981308 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.981760 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.982305 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.983038 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.983516 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.983987 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.984189 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.984592 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.985049 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.985568 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.986554 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.986917 #2929] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:53.987801 #2929] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:53.988467 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:53.988948 #2929] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:53.989499 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:53.989883 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.990371 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.990911 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.991125 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.991549 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.992053 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.992285 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.992726 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.993204 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.993369 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.994251 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:53.994767 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.995116 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.995585 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:53.996107 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:53.996428 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.996896 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:53.997411 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.997665 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.998155 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:53.998649 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:53.998820 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:53.999750 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:54.000620 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:54.001053 #2929] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:54.001616 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:54.002004 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:54.002428 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.002890 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:54.003302 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:54.003505 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.003889 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:54.004300 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:54.004528 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.004940 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:54.005369 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:54.005536 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.006796 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:54.007237 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:54.007709 #2929] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:54.008112 #2929] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:54.008675 #2929] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:54.008988 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:54.009665 #2929] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:54.010282 #2929] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:54.010734 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.011274 #2929] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:54.011833 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:54.012114 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.012658 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:54.013244 #2929] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:54.014255 #2929] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:54.014771 #2929] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:54.015122 #2929] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:54.015560 #2929] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:54.016173 #2929] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:54.016546 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:54.016946 #2929] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:54.017421 #2929] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:55.042181 #2933] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:02:55.045099 #2933] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:55.045978 #2933] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:55.047196 #2933] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:02:55.050018 #2933] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:55.051049 #2933] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:55.051759 #2933] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:55.052703 #2933] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:02:55.053381 #2933] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:55.111559 #2933] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:55.112804 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.115313 #2933] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:02:55.118679 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.120068 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.120811 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.123713 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.124889 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:55.125506 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.126342 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.127369 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:55.128205 #2933] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:55.128868 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.129726 #2933] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.130417 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.135903 #2933] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:02:55.141827 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:55.143365 #2933] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:55.145317 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:55.146028 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.146764 #2933] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:55.147640 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.148397 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.149071 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.149368 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.149907 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.150579 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.155858 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.157331 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.158082 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.160097 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.160751 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.161333 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.161723 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.163055 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.163576 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:55.164221 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.164397 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.165396 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.165838 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:55.166443 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.166567 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.167114 #2933] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:55.167628 #2933] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:55.168109 #2933] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:55.170010 #2933] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:55.170589 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.171170 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.171769 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.171988 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.172412 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.172944 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.173150 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.173527 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:55.174048 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.174331 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.174763 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:55.175350 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.175597 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.176061 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.176663 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.176900 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.177386 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.177937 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.178096 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.178987 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:55.179449 #2933] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:55.179779 #2933] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:55.180281 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.180414 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.181113 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.181650 #2933] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:55.182165 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:55.182687 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.183932 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:55.184476 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.184942 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.185462 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.185677 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.186065 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.186582 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.186814 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.187244 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.187770 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.188005 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.188473 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.188992 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.189127 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.190225 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.190663 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:55.191226 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.191372 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.192264 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.192621 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:55.193142 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.193624 #2933] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:55.194681 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:55.195190 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.195706 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.196235 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.196441 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.196847 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.197339 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.197573 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.198000 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.198531 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.198775 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.199218 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.199720 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.199855 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.200807 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.201176 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:55.201596 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.201718 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.202478 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.213443 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:55.214208 #2933] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:55.214847 #2933] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:55.216100 #2933] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:55.217332 #2933] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:55.217958 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.218550 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.219222 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.219575 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.220144 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.220952 #2933] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:55.221389 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.222314 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.222939 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.224434 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.225060 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.225740 #2933] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:55.226196 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:55.226786 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.227220 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:55.227837 #2933] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:55.228770 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:55.229281 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.229872 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.230531 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.230787 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.231284 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.231906 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.232161 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.232608 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.233210 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.233462 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.233953 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.234510 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.234632 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.235699 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.236105 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:55.236646 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.236775 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.237538 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.237939 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:55.238459 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.238853 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:55.239285 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.239817 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.240418 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.240632 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.241105 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.241690 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.241930 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.242407 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.242921 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.243168 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.243679 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.244232 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.244356 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.245346 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.245735 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:55.246406 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.246555 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.247365 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.247785 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:55.248384 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.248894 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:55.249416 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.249999 #2933] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.250569 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.250794 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.251244 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.251821 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.252073 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.252514 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.253020 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.253774 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.254285 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.254825 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.255083 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.255536 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.256111 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.256602 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.257618 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.257993 #2933] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.258883 #2933] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:55.259513 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.259978 #2933] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:55.260487 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:55.260859 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.261324 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.261796 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.262027 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.262451 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.262911 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.263137 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.263568 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.264073 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.264236 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.264995 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:55.265551 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.265911 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.266435 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.266936 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.267137 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.267592 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.268060 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.268292 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.268766 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.269220 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.269375 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.270266 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:55.271075 #2933] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:55.271482 #2933] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:55.272053 #2933] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:55.272444 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:55.272889 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.273341 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.273891 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.274123 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.274544 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.275037 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.275306 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.275883 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:55.276389 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.276543 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.277487 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.277887 #2933] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:55.278413 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.278791 #2933] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:55.279312 #2933] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:55.279625 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:55.280107 #2933] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:55.280620 #2933] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:55.281016 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.281481 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.282004 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.282213 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.282619 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:55.283076 #2933] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:55.283933 #2933] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:55.284439 #2933] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:55.284795 #2933] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:55.285230 #2933] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:55.285755 #2933] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:55.286103 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:55.286477 #2933] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:55.286918 #2933] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:56.472898 #2940] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:56.475891 #2940] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:02:56.477155 #2940] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:56.478867 #2940] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:02:56.482017 #2940] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:56.483194 #2940] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:02:56.483938 #2940] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:56.485040 #2940] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:56.485792 #2940] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:56.541883 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.543360 #2940] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.545968 #2940] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:56.549355 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.551002 #2940] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.551705 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.554031 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.555405 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:56.556049 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.557020 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.558142 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:56.558821 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.559305 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.559868 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.560494 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.565852 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.571281 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:56.572390 #2940] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:56.573412 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:56.574114 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.574767 #2940] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:56.575542 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.576207 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.576878 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.577166 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.580084 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.580819 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.582870 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.583946 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.584678 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.586903 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.587529 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.588288 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.588661 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.589982 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.590668 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:56.591292 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.591493 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.592522 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.593009 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:56.593592 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.593733 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.594322 #2940] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:56.594849 #2940] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:56.595449 #2940] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:56.597234 #2940] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:56.597759 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.598396 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.599016 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.599315 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.599840 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.600374 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.600601 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.601003 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:56.601454 #2940] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:56.601768 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.602256 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:56.602846 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.603104 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.603542 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.604106 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.604330 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.604754 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.605354 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.605499 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.606379 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:56.606892 #2940] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:56.607220 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:56.607777 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.607903 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.608664 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.609158 #2940] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:56.609660 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:56.610245 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.611834 #2940] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:56.612559 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.613129 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.613787 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.614093 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.614618 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.615179 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.615459 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.615965 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.616473 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.616729 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.617251 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.617832 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.617966 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.619008 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.619387 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:56.619888 #2940] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:56.620012 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.620793 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.621144 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:56.621723 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.622365 #2940] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:56.623587 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:56.624146 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.624724 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.625327 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.625646 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.626232 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.626813 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.627033 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.627489 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.628063 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.628310 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.628733 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.629284 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.629404 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.630363 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.630766 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:56.631410 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.631569 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.642970 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.643492 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:56.644155 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.644612 #2940] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:56.645612 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:56.646613 #2940] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:56.647165 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.647706 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.648302 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.648612 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.649195 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.649758 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.649981 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.650380 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.650894 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.652271 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.652815 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.653384 #2940] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:56.653831 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:56.654494 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.654885 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:56.655401 #2940] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:56.656160 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:56.656612 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.657108 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.657600 #2940] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:56.657840 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.658260 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.658806 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.659047 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.659509 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.660006 #2940] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:56.660266 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.660709 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.661271 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.661390 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.662346 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.662723 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:56.663360 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.663506 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.664384 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.664747 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:56.665468 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.666391 #2940] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:56.667135 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.667760 #2940] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.668399 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.668702 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.669272 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.669925 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.670233 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.670840 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.671440 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.671679 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.672113 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.672673 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.672798 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.673700 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.674057 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:56.674630 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.674741 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.675501 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.675878 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:56.676448 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.676833 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:56.677269 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.677725 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.678317 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.678514 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.678946 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.679561 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.679875 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.680392 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.680968 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.681750 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.682270 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.682796 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.683009 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.683420 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.683999 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.684587 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.685564 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.685925 #2940] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.686818 #2940] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:56.687482 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.687972 #2940] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:56.688500 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:56.688899 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.689371 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.689902 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.690146 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.690572 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.691121 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.691401 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.691884 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.692462 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.692614 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.693337 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:56.693847 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.694183 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.694638 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.695150 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.695361 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.695791 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.696308 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.696542 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.697002 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.697545 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.697719 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.698593 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:56.699401 #2940] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:56.699790 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:56.700461 #2940] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:56.700838 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:56.701227 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.701649 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.702213 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.702477 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.702922 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.703476 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.703704 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.704132 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:56.704787 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.704993 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.705871 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.706233 #2940] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:56.706768 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.707175 #2940] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:56.707835 #2940] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:56.708177 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:56.708681 #2940] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:56.709179 #2940] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:56.709591 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.710019 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.710588 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.710831 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.711363 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:56.711924 #2940] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:56.712831 #2940] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:56.713379 #2940] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:56.713749 #2940] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:56.714183 #2940] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:56.714824 #2940] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:56.715154 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:56.715514 #2940] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:56.715912 #2940] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:57.830315 #2944] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:57.833198 #2944] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:02:57.834019 #2944] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:57.835131 #2944] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:02:57.837514 #2944] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:57.838554 #2944] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:02:57.839301 #2944] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:57.840423 #2944] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:02:57.841065 #2944] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:57.890616 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.891867 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.894735 #2944] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:02:57.899267 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.900626 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.901317 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.903420 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.904764 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:57.905396 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.906456 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.907539 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:57.908169 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.908576 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.909067 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.909609 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.914530 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.919141 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:57.920214 #2944] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:57.921227 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:57.922102 #2944] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:02:57.923177 #2944] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:57.924277 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.924941 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.925626 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.925924 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.926492 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.927158 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.932215 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.933492 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:57.934102 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.935909 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.936397 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.937008 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.937354 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.938371 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.938840 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:57.939461 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.939580 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.940278 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.940611 #2944] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:57.941162 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.941299 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.941730 #2944] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:57.942244 #2944] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:57.942698 #2944] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:57.944465 #2944] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:57.944967 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.945650 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.946353 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.946684 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.947228 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.947844 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.948079 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.948469 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:57.949053 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.949374 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.949983 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:57.950645 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.950972 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.951530 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.952069 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.952322 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.952778 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:57.953325 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.953553 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.954395 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:57.954827 #2944] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:57.955151 #2944] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:57.955703 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.955842 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.956521 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.957143 #2944] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:57.957760 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:57.958383 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.959799 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:57.960409 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.960903 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.961474 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.961736 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.962293 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.962888 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.963229 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.963813 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:57.964384 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.964690 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.965183 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.965716 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.965877 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.967104 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.967544 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:57.968057 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.968201 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.969098 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.969451 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:57.970111 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.970607 #2944] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:57.971712 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:57.972361 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.973012 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.973601 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.973854 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.974299 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.974802 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.975041 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.975511 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:57.976019 #2944] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:57.976296 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.976828 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.977450 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.977597 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.978909 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.979320 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:57.979821 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.979977 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.980799 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:57.991053 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:57.991785 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.992260 #2944] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:57.993229 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:57.994206 #2944] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:57.994770 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.995282 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.995851 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.996055 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.996459 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:57.997048 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:57.997245 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.997652 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:57.998206 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:57.999291 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:57.999741 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.000210 #2944] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:58.000579 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:58.001110 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.001482 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:58.002251 #2944] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:58.003351 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:58.003849 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.004452 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.005123 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:58.005389 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.005948 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.006546 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.006847 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.007359 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:58.007906 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.008210 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.008751 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.009270 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.009447 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.010738 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.011212 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:58.011778 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.011949 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.012862 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.013208 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:58.013762 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.014215 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:58.014691 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.015210 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.015741 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.015951 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.016388 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.016944 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.017175 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.017597 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:58.018221 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:58.018460 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.018884 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.019389 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.019540 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.020514 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.020880 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:58.021422 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.021541 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.022246 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.022575 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:58.023051 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.023424 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:58.023841 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.024301 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.024793 #2944] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:58.025032 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.025453 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.025973 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.026281 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.026893 #2944] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.027408 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.028177 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.028651 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.029116 #2944] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:58.029324 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.029757 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.030272 #2944] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:58.030825 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.031979 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.032369 #2944] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.033314 #2944] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:58.034016 #2944] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:58.034504 #2944] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:58.035062 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:58.035475 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.035986 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.036468 #2944] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:58.036697 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.037137 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.037649 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.037877 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.038332 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:58.038853 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.039017 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.039784 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:58.040337 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.040695 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.041190 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.041716 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.041994 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.042494 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.043099 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.043392 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.043946 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:58.044509 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.044665 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.045596 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:58.046417 #2944] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:58.046808 #2944] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:58.047404 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:58.047816 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:58.048246 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.048761 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.049346 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.049553 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.049955 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.050461 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.050687 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.051110 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:58.051609 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.051764 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.052669 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.053059 #2944] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:58.053574 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.053928 #2944] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:58.054437 #2944] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:58.054755 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:58.055272 #2944] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:58.055755 #2944] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:58.056169 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.056636 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.057141 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.057347 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.057756 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:58.058294 #2944] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:58.059157 #2944] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:58.059662 #2944] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:58.060016 #2944] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:58.060501 #2944] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:58.061112 #2944] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:58.061546 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:58.062017 #2944] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:58.062502 #2944] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:59.175010 #2948] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:02:59.177876 #2948] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:02:59.179101 #2948] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:02:59.180984 #2948] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:02:59.184053 #2948] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:59.191833 #2948] DEBUG -- :  (7.1ms) DROP TABLE "taggings" D, [2015-08-02T09:02:59.196464 #2948] DEBUG -- :  (4.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:02:59.204480 #2948] DEBUG -- :  (7.0ms) DROP TABLE "tags" D, [2015-08-02T09:02:59.205872 #2948] DEBUG -- :  (1.0ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:02:59.263569 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.264793 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.267424 #2948] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:02:59.270028 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.271204 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.271930 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.273499 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.274740 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:59.275430 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.276320 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.277340 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:59.277920 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.278252 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.278645 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.279256 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.283847 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.288568 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:02:59.289543 #2948] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:02:59.290470 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:02:59.291103 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.291794 #2948] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:02:59.292664 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.293387 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.294237 #2948] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:02:59.294567 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.295257 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.295927 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.300595 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.301959 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.302616 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.304615 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.305198 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.305745 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.306029 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.307115 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.307593 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:02:59.308110 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.308253 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.308993 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.309355 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:02:59.309857 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.309991 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.310434 #2948] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:02:59.310875 #2948] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:59.311392 #2948] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:02:59.312836 #2948] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:02:59.313281 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.313768 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.314273 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.314513 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.314917 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.315426 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.315631 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.316008 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:02:59.316501 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.316776 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.317252 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:02:59.317710 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.317977 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.318491 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.318989 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.319281 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.319772 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.320271 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.320428 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.321330 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:02:59.321799 #2948] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:02:59.322132 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:02:59.322636 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.322786 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.323493 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.323995 #2948] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:02:59.324510 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:02:59.325028 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.326407 #2948] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:02:59.327212 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.327854 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.328389 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.328633 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.329067 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.329543 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.329772 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.330201 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.330776 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.331123 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.331755 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.332295 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.332428 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.333410 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.333798 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:02:59.334355 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.334521 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.335335 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.335672 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:02:59.336144 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.336660 #2948] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:02:59.337715 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:02:59.338200 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.338677 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.339192 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.339391 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.339788 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.340254 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.340461 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.340887 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.341421 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.341772 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.342378 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.342988 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.343182 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.344418 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.344858 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:02:59.345510 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.345705 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.346755 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.347217 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:02:59.357829 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.358385 #2948] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:02:59.359432 #2948] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:02:59.360484 #2948] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:02:59.361051 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.361575 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.362176 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.362409 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.362865 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.363393 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.363590 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.364025 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.364564 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.365690 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.366129 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.366639 #2948] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:02:59.367053 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:02:59.367517 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.367829 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:02:59.368276 #2948] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:02:59.368953 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:02:59.369360 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.369801 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.370328 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.370553 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.370960 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.371507 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.371745 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.372197 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.372819 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.373070 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.373542 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.374120 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.374250 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.375279 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.375663 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:02:59.376217 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.376355 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.377065 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.377461 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:02:59.377934 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.378391 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:59.378884 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.379382 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.379992 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.380186 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.380584 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.381139 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.381471 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.381955 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.382436 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.382685 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.383172 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.383700 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.383825 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.384895 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.385281 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:02:59.385797 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.385931 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.386651 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.386989 #2948] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:02:59.387496 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.387880 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:59.388289 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.388736 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.389185 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.389429 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.389839 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.390332 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.390598 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.391048 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.391454 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.392236 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.392773 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.393340 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.393615 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.394160 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.394670 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.395209 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.396261 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.396622 #2948] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.397533 #2948] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:02:59.398115 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.398577 #2948] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:02:59.399130 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:02:59.399542 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.400017 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.400537 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.400792 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.401259 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.401803 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.402084 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.402623 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.403185 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.403349 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.404227 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:02:59.404825 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.405290 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.405888 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.406454 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.406702 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.407147 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.407745 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.408110 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.408628 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.409111 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.409297 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.410355 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:02:59.411230 #2948] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:02:59.411649 #2948] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:02:59.412288 #2948] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:02:59.412739 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:59.413218 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.413836 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.414364 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.414581 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.414974 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.415470 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.415715 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.416222 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:02:59.416698 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.416871 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.417852 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.418242 #2948] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:02:59.418826 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.419321 #2948] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:02:59.420010 #2948] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:02:59.420442 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:02:59.421083 #2948] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:02:59.421757 #2948] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:02:59.422325 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.423082 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.423641 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.423914 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.424505 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:02:59.424994 #2948] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:02:59.425957 #2948] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:02:59.426585 #2948] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:02:59.427017 #2948] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:02:59.427609 #2948] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:02:59.428123 #2948] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:02:59.428510 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:02:59.428890 #2948] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:02:59.429330 #2948] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:03:00.550676 #2956] DEBUG -- :  (0.9ms) select sqlite_version(*) D, [2015-08-02T09:03:00.553846 #2956] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:00.554713 #2956] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:03:00.556025 #2956] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:00.558870 #2956] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:03:00.560002 #2956] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:00.560803 #2956] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:03:00.561823 #2956] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:00.562521 #2956] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:03:00.613629 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.614877 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.617398 #2956] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:03:00.620367 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.621440 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.622110 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.623615 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.624453 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:00.625062 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.626140 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.627248 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:03:00.627803 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.628159 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.628677 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.629420 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.633712 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.638154 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:00.639083 #2956] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:03:00.640120 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:00.640956 #2956] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:00.642010 #2956] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:03:00.642965 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.643960 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.644709 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.645087 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.645826 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.646546 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.651675 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.652979 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.653818 #2956] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:00.656639 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.657280 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.657909 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.658231 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.659507 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.660071 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:00.660739 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.660903 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.661736 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.662132 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:00.662654 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.662807 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.663301 #2956] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:00.663797 #2956] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:00.664449 #2956] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:00.666433 #2956] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:03:00.667048 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.667745 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.668457 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.668812 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.669269 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.669897 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.670179 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.670604 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:00.671151 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.671455 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.671944 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:03:00.672472 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.672811 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.673308 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.673770 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.674029 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.674465 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.675053 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.675225 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.676168 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:00.676685 #2956] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:03:00.677048 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:00.677580 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.677761 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.678568 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.679208 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:03:00.679739 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:00.680333 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.681574 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:03:00.682161 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.682644 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.683262 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.683528 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.684098 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.684612 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.684877 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.685383 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.685872 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.686135 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.686616 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.687144 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.687265 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.688292 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.688698 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:00.689233 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.689394 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.690234 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.690614 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:00.691151 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.691660 #2956] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:00.692806 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:00.693361 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.693965 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.694604 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.694892 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.695452 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.695961 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.696200 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.696661 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.697182 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.697449 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.697913 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.698431 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.698560 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.699627 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.700057 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:00.700593 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.700739 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.701567 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.701945 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:00.712781 #2956] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:00.713773 #2956] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:00.715540 #2956] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:00.716871 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:00.717572 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.718224 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.718884 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.719154 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.719643 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.720177 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.720407 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.720892 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.721468 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.722715 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.723214 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.723768 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:03:00.724177 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:00.724746 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.725235 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:03:00.725840 #2956] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:00.726790 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:00.727380 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.728021 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.728656 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.728963 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.729499 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.730072 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.730297 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.730788 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.731365 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.731635 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.732072 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.732671 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.732784 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.733790 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.734181 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:00.734749 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.734878 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.735609 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.735938 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:00.736502 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.736928 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:00.737381 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.737822 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.738358 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.738565 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.738955 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.739490 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.739720 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.740139 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.740696 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.740973 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.741435 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.741910 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.742042 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.742990 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.743387 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:00.744002 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.744180 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.745300 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.745676 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:00.746158 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.746582 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:00.747040 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.747537 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.748054 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.748284 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.748707 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.749278 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.749523 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.749923 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.750480 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.751212 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.751705 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.752307 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.752552 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.752999 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.753546 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.754079 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.755142 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.755522 #2956] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.756549 #2956] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:00.757267 #2956] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:00.757796 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:00.758344 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:03:00.758791 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.759260 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.759837 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.760075 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.760513 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.761027 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.761300 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.761763 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.762301 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.762473 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.763330 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:03:00.763783 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.764164 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.764665 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.765297 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.765505 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.765932 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.766419 #2956] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:00.766662 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.767168 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.767763 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.767973 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.769144 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:03:00.770122 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:00.770602 #2956] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:00.771319 #2956] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:00.771797 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:00.772317 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.772905 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.773472 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.773749 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.774276 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.774870 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.775109 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.775610 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:00.776222 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.776461 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.777590 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.778087 #2956] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:00.778733 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.779246 #2956] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:00.779943 #2956] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:03:00.780357 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:00.781018 #2956] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:03:00.781608 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:03:00.782083 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.782641 #2956] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.783308 #2956] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:00.783623 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.784170 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:00.784803 #2956] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:00.785827 #2956] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:00.786436 #2956] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:00.786869 #2956] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:00.787383 #2956] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:00.788243 #2956] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:00.788927 #2956] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:03:00.789731 #2956] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:00.790309 #2956] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:03:01.819963 #2960] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:03:01.822955 #2960] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:01.824177 #2960] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:03:01.826007 #2960] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:03:01.829353 #2960] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:03:01.830592 #2960] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:01.831348 #2960] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:03:01.832399 #2960] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:01.833156 #2960] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:03:01.882451 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.883689 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.886321 #2960] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:03:01.889680 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.890926 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.891663 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.893428 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.894384 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:01.894962 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.896019 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.897145 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:03:01.897745 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.898169 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.898598 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.899200 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.904362 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.910706 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:01.912012 #2960] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:03:01.913228 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:01.913852 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.914555 #2960] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:03:01.915460 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.916164 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.916789 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.917087 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.917595 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.920895 #2960] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:01.923108 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.924234 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:01.924937 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.926863 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.927374 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.928026 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.928266 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.929280 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.929772 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:01.930329 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.930474 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.931159 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.931497 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:01.931975 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.932119 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.932574 #2960] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:01.933065 #2960] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:01.933541 #2960] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:01.935051 #2960] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:03:01.935480 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.936032 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.936648 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.936870 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.937269 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.937794 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.937993 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.938373 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:01.938860 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.939154 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.939590 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:03:01.940125 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.940377 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.940804 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.941353 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.941661 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.942143 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:01.942725 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.942883 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.943867 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:01.944344 #2960] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:03:01.944667 #2960] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:01.945177 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.945300 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.945944 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.946423 #2960] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:03:01.946898 #2960] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:01.947455 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.948656 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:03:01.949252 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.949779 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.950345 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.950594 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.951020 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.951636 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.951858 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.952292 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:01.952764 #2960] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:01.953057 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.953507 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.954041 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.954156 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.955195 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.955573 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:01.956159 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.956290 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.956993 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.957312 #2960] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:01.957809 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.958260 #2960] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:01.959352 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:01.959976 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.960579 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.961189 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.961403 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.961806 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.962387 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.962692 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.963181 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:01.963721 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.964009 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.964444 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.964946 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.965063 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.966046 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.966425 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:01.966971 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.967120 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.978817 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.979321 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:01.979905 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.980320 #2960] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:01.981289 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:01.982246 #2960] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:01.982802 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.983294 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.983916 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.984127 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.984523 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.985163 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.985413 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.985816 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.986386 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.987609 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.988071 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.988583 #2960] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:03:01.988996 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:01.989594 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:01.990009 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:03:01.990522 #2960] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:01.991291 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:01.991827 #2960] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:01.992351 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.992896 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.993127 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.993558 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:01.994137 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.994383 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.994866 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:01.995396 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.995678 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.996152 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:01.996649 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.996768 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.997786 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.998208 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:01.998765 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:01.998916 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:01.999622 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:01.999928 #2960] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:02.000494 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.000970 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:02.001461 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.001954 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.002501 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.002718 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.003155 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.003740 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.003959 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.004428 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:02.004970 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.005228 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.005662 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.006174 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.006307 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.007217 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:02.007584 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:02.008132 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.008281 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.009047 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:02.009363 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:02.009846 #2960] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:02.010251 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:02.010699 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.011229 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.011997 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:02.012315 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.012876 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.013540 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:02.013991 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.014563 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.015120 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.015957 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.016481 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.017006 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.017244 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.017723 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.018306 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.018847 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.019928 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.020295 #2960] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:02.021318 #2960] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:02.022044 #2960] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:02.022510 #2960] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:02.023042 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:03:02.023440 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.023886 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.024403 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.024658 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.025116 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.025670 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.025894 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.026345 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:02.026846 #2960] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:02.026985 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.027699 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:03:02.028243 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.028738 #2960] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:02.029752 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.030504 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:02.030787 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.031283 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.031874 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.032116 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.032649 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:02.033174 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.033503 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.034712 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:03:02.035609 #2960] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:02.036015 #2960] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:02.036710 #2960] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:02.037104 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:02.037572 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.038056 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.038551 #2960] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:02.038824 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.039304 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.039872 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.040130 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.040616 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:03:02.041140 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.041315 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.042339 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:02.042878 #2960] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:02.043347 #2960] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:02.043750 #2960] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:02.044321 #2960] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:03:02.044647 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:03:02.045149 #2960] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:03:02.045665 #2960] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:03:02.046115 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.046646 #2960] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.047231 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.047482 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.047901 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:03:02.048395 #2960] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:02.049220 #2960] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:02.049707 #2960] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:02.050057 #2960] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:02.050490 #2960] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:02.051075 #2960] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:02.051422 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:03:02.051802 #2960] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:02.052229 #2960] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:03:03.186683 #2966] DEBUG -- :  (0.9ms) DROP TABLE "authors" D, [2015-08-02T09:03:03.187874 #2966] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:03.188916 #2966] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:03:03.190681 #2966] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:03.191521 #2966] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:03:03.192265 #2966] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:03.193138 #2966] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:03.193783 #2966] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:03.230191 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.232637 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.233321 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.239412 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.240787 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.241522 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.245270 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.246927 #2966] DEBUG -- : SQL (0.5ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:03.248571 #2966] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:03:03.249494 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.250908 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:03.254036 #2966] DEBUG -- :  (2.9ms) commit transaction D, [2015-08-02T09:03:03.254513 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.255148 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:03.261631 #2966] DEBUG -- :  (6.2ms) commit transaction D, [2015-08-02T09:03:03.266372 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.280298 #2966] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:03.281621 #2966] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:03.282832 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:03.283739 #2966] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:03.285196 #2966] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:03.286652 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.287587 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.288363 #2966] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:03.288652 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.289240 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.289890 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.290431 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.298308 #2966] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.299087 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.302292 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.302960 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.303536 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.303705 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.304802 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.305378 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:03.305991 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.306174 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.306924 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.307301 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:03.307892 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.308071 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.308675 #2966] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:03.309278 #2966] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:03.310082 #2966] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:03.312209 #2966] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.312898 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.313548 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.314206 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.314501 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.315028 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.315674 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.316004 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.316631 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:03.317332 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.317747 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.318437 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:03.319075 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.319400 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.320090 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.320720 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.321099 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.321817 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.322454 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.322907 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.323781 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:03.324344 #2966] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:03.324882 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:03.325505 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.325921 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.326819 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.327872 #2966] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:03.337597 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:03.338381 #2966] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:03.340569 #2966] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:03.341426 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.342126 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.342800 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.343109 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.343622 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.344170 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.344423 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.344989 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.345573 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.346168 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.346859 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.347430 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.347576 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.348583 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.349115 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:03.349795 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.350038 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.351133 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.351656 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:03.352307 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.352859 #2966] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:03.354121 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:03.354894 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.355502 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.356153 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.356459 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.356957 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.357482 #2966] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:03.357752 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.358299 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.358842 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.359402 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.359972 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.360509 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.360711 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.361842 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.362364 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:03.362942 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.363126 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.363915 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.364327 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:03.364938 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.365473 #2966] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:03.366668 #2966] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:03.368260 #2966] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:03.369123 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.369701 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.370310 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.370557 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.371045 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.371569 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.371805 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.372303 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.372946 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.374246 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.374813 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.375400 #2966] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:03.375956 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:03.376670 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.377384 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.377975 #2966] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:03.378934 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:03.379481 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.380089 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.380699 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.380999 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.381491 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.382062 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.382362 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.382936 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.383464 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.384064 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.384565 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.385080 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.385246 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.386196 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.386643 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:03.387283 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.387446 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.388144 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.388534 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:03.389134 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.389854 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.390477 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.391190 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.391809 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.392097 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.392575 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.393125 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.393674 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.394259 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.394888 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.395559 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.396271 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.396948 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.397127 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.398311 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.398831 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:03.399413 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.399597 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.400444 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.400864 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:03.401461 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.401970 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.402484 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.403055 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.403608 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.403868 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.404365 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.404976 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.405364 #2966] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:03.406007 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.406567 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.407236 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.407735 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.408255 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.408487 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.408913 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.409448 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.410132 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.410957 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.411350 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.412405 #2966] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:03.413253 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.414053 #2966] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:03.414812 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.415370 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.415947 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.416534 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.416803 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.417256 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.417859 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.418147 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.418691 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.419220 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.419517 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.420156 #2966] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.420685 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.421010 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.421474 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.422038 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.422286 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.422697 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.423248 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.423478 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.423940 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.424477 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.424901 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.425528 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:03.426290 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:03.426752 #2966] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:03.427469 #2966] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:03.427878 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.428298 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.428750 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.429321 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.429567 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.430019 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.430575 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.430910 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.431529 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:03.432123 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.432635 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.433538 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.434001 #2966] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:03.434624 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.435021 #2966] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:03.435685 #2966] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.436040 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:03.436800 #2966] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:03.437333 #2966] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:03.437892 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.438442 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.439068 #2966] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:03.439328 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.439797 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:03.440394 #2966] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:03.441210 #2966] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:03.441722 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:03.442115 #2966] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:03.442598 #2966] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:03.443316 #2966] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:03.443698 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:03.444114 #2966] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:03.444577 #2966] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.633680 #2970] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:03:04.634874 #2970] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:04.636412 #2970] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:04.638894 #2970] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:04.639891 #2970] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:04.640709 #2970] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:04.641666 #2970] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:04.642477 #2970] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:04.667783 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.669866 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.670616 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.672673 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.673621 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.674262 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.675743 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.676722 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:04.677387 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.678114 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.679097 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:04.679752 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.680046 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.680431 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:04.681022 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.685152 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.689337 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:04.690534 #2970] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:04.691613 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:04.692328 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.693196 #2970] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:04.694007 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.694564 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.695266 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.695539 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.696043 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.696610 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.697087 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.699867 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.700420 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.702602 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.703133 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.703668 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.703824 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.704807 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.705278 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:04.705773 #2970] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:04.705926 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.706610 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.706958 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:04.707475 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.707595 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.708049 #2970] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:04.708451 #2970] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:04.709012 #2970] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:04.710434 #2970] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.710899 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.711450 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.712063 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.712330 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.712789 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.713338 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.713566 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.713980 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:04.714673 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.715035 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.715585 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:04.716160 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.716486 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.717159 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.717760 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.718052 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.718591 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.719314 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.720048 #2970] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:04.721454 #2970] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:04.722395 #2970] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:04.723040 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:04.723797 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.724417 #2970] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:04.725709 #2970] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.727363 #2970] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:04.728345 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:04.729191 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.731443 #2970] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:04.732325 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.732961 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.733768 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.734119 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.734700 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.735443 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.735747 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.736311 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.736850 #2970] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:04.737451 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.737935 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.738621 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.738788 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.739779 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.740300 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:04.741187 #2970] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:04.741405 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.742465 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.742965 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:04.743689 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.744291 #2970] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:04.745914 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:04.746782 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.747448 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.748111 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.748389 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.748843 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.749389 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.749697 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.750225 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.750794 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.751384 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.751869 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.752511 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.752675 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.753701 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.754201 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:04.754778 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.754941 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.755647 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.756001 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:04.756643 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.757036 #2970] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:04.758003 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:04.759343 #2970] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:04.760297 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.760937 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.761515 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.761823 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.762835 #2970] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.763471 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.763743 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.764256 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.764801 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.766080 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.766601 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.767172 #2970] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:04.767662 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:04.768175 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.768683 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.769180 #2970] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:04.769925 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:04.770438 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.770947 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.771501 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.771734 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.772156 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.772677 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.772915 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.773386 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.773926 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.774574 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.775066 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.775641 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.775796 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.776830 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.777260 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:04.777942 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.778142 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.778981 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.779385 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:04.780029 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.780774 #2970] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.781435 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.781978 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.782629 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.782900 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.783332 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.783891 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.784122 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.784606 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.785160 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.785772 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.786299 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.786855 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.787035 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.788156 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.788662 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:04.789314 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.789499 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.790317 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.790730 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:04.791361 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.791903 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.792530 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.793146 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.793803 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.794135 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.794781 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.795515 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.795866 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.796444 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.797045 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.797821 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.798380 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.798961 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.799200 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.799696 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.800270 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.801212 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.802209 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.802635 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.803752 #2970] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:04.804474 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.804996 #2970] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:04.805642 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.806143 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.806674 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.807264 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.807534 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.808021 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.808629 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.808904 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.809419 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.810008 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.810449 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.811236 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.815666 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.816200 #2970] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:04.816956 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.817583 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.817904 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.818467 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.819055 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.819379 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.819968 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.820571 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.821128 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.821911 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:04.822821 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:04.823263 #2970] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:04.823964 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.824402 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.824876 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.825318 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.826013 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.826360 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.826802 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.827400 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.827669 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.828395 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:04.828983 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.829568 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.830621 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.831071 #2970] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:04.831735 #2970] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:04.832124 #2970] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:04.832789 #2970] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.833164 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:04.834114 #2970] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:04.834715 #2970] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:04.835239 #2970] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:04.835713 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.836290 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.836502 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.836892 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:04.837437 #2970] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:04.838232 #2970] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:04.838907 #2970] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:04.839352 #2970] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:04.839821 #2970] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:04.840544 #2970] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:04.840989 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:04.841481 #2970] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:04.842056 #2970] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.080746 #2977] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:03:06.081633 #2977] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:06.082558 #2977] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:06.084621 #2977] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:06.085421 #2977] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:03:06.086160 #2977] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:06.087069 #2977] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:06.087658 #2977] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:06.111004 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.113398 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.114049 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.117038 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.118420 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.119309 #2977] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:06.122256 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.123910 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:06.124639 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.125500 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.126767 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:06.127423 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.127850 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.128410 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:06.129190 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.134752 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.139303 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:06.140474 #2977] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:06.141565 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:06.142160 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.142960 #2977] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:06.143703 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.144219 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.144754 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.144990 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.145413 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.145908 #2977] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:06.146309 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.148757 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.149357 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.151792 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.152433 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.153112 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.153294 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.154469 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.155026 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:06.155627 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.155812 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.156673 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.157063 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:06.157597 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.157742 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.158288 #2977] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:06.158846 #2977] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:06.159649 #2977] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:06.161634 #2977] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.162210 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.162744 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.163421 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.163655 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.164056 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.164641 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.164877 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.165309 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:06.165806 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.166120 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.166643 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:06.167209 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.167481 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.168043 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.168590 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.168834 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.169329 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.169926 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.170325 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.171140 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:06.171613 #2977] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:06.172021 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:06.172536 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.172890 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.173585 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.174458 #2977] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:06.175124 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:06.175732 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.177566 #2977] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:06.178384 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.178975 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.179578 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.179903 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.180455 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.180956 #2977] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:06.181243 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.181827 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.182380 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.183006 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.183500 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.184039 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.184172 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.185095 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.185528 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:06.186235 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.186605 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.188117 #2977] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.188871 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:06.189733 #2977] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:06.190192 #2977] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:06.191288 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:06.192055 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.192776 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.193505 #2977] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:06.193812 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.194285 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.194892 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.195134 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.195595 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.196155 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.196698 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.197175 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.197761 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.197892 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.198751 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.199162 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:06.199774 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.199914 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.200560 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.200886 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:06.201509 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.202096 #2977] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:06.203378 #2977] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:06.205124 #2977] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:06.206161 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.206813 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.207547 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.208030 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.208937 #2977] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.209799 #2977] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:06.210093 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.210670 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.211355 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.212874 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.213543 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.214275 #2977] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:06.214893 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:06.215491 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.216061 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.216658 #2977] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:06.217531 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:06.218158 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.218727 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.219323 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.219577 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.220039 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.220618 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.220967 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.221623 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.222172 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.222782 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.223266 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.223806 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.223943 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.224877 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.225292 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:06.225963 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.226110 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.226777 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.227129 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:06.227819 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.228394 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.228917 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.229393 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.230005 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.230237 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.230638 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.231221 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.231445 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.231900 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.232526 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.233088 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.233534 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.234101 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.234236 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.235100 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.235487 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:06.236083 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.236218 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.236837 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.237172 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:06.237786 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.238313 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.238780 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.239226 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.239814 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.240072 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.240519 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.241028 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.241307 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.241752 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.242291 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.242903 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.243387 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.243948 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.244159 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.244564 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.245139 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.245826 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.246594 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.246968 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.248014 #2977] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:06.248824 #2977] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:06.249353 #2977] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:06.249918 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.250357 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.250811 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.251355 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.251585 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.251991 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.252666 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.252905 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.253351 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.253925 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.254250 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.254885 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.259073 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.259554 #2977] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:06.260176 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.260751 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.260961 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.261364 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.261920 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.262208 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.262651 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.263241 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.263720 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.264385 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:06.265273 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:06.265721 #2977] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:06.266398 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.266852 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.267313 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.267750 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.268358 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.268572 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.268983 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.269541 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.269858 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.270317 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:06.270849 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.271279 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.272179 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.272581 #2977] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:06.273208 #2977] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:06.273589 #2977] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:06.274264 #2977] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.274653 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:06.275541 #2977] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:06.276269 #2977] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:06.276781 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.277291 #2977] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.277825 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.278073 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.278533 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:06.279080 #2977] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:06.279920 #2977] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:06.280446 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:06.280830 #2977] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:06.281290 #2977] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:06.282007 #2977] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:06.282377 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:06.282804 #2977] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:06.283359 #2977] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.470305 #2981] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:07.471335 #2981] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:07.472688 #2981] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:07.474788 #2981] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:07.475678 #2981] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:03:07.476442 #2981] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:07.477371 #2981] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:07.478062 #2981] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:07.500525 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.502673 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.503547 #2981] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:07.506500 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.507887 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.508532 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.510523 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.511558 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:07.512253 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.513109 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.514414 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:07.515084 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.515585 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.516267 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:07.516920 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.521113 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.525317 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:07.526536 #2981] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:07.527630 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:07.528178 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.528974 #2981] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:07.529721 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.530229 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.531021 #2981] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:07.531295 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.531979 #2981] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.538207 #2981] DEBUG -- :  (6.0ms) commit transaction D, [2015-08-02T09:03:07.539284 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.542964 #2981] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.545017 #2981] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:03:07.548140 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.548881 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.552539 #2981] DEBUG -- :  (3.5ms) commit transaction D, [2015-08-02T09:03:07.552773 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.554226 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.554919 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:07.555735 #2981] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:07.555983 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.557033 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.557519 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:07.558161 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.558311 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.558894 #2981] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:07.559420 #2981] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:07.560107 #2981] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:07.562031 #2981] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.562644 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.563312 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.563958 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.564251 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.564912 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.565525 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.565780 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.566228 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:07.566825 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.567136 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.567590 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:07.568177 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.568409 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.568919 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.569521 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.569762 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.570258 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.570850 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.571283 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.571995 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:07.572496 #2981] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:07.572915 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:07.573538 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.573947 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.574773 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.575819 #2981] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:07.576591 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:07.577236 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.579295 #2981] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:07.580174 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.580812 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.581429 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.581688 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.582115 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.582657 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.582902 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.583374 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.583913 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.584496 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.584994 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.585528 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.585677 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.586682 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.587133 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:07.587766 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.587963 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.588805 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.589189 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:07.589898 #2981] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:07.590335 #2981] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:07.591408 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:07.592093 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.592632 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.593192 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.593436 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.593844 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.594538 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.595096 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.595799 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.596338 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.596920 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.597394 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.597959 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.598113 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.599080 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.599501 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:07.600086 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.600264 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.601020 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.601437 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:07.602012 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.602415 #2981] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:07.603491 #2981] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:07.604954 #2981] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:07.605814 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.606365 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.607020 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.607240 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.607645 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.608190 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.608446 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.608898 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.609510 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.611056 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.611715 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.612366 #2981] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:07.612889 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:07.613498 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.614251 #2981] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.614953 #2981] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:07.615790 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:07.616331 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.616864 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.617544 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.617765 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.618168 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.618660 #2981] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:07.618913 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.619383 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.619928 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.620534 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.621035 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.621548 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.621701 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.622678 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.623087 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:07.623624 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.623766 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.624430 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.624775 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:07.625307 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.625831 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.626295 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.626764 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.627311 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.627625 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.628075 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.628615 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.628869 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.629378 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.629873 #2981] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:07.630442 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.630955 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.631478 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.631616 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.632517 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.632932 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:07.633459 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.633600 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.634247 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.634597 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:07.635135 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.635622 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.636106 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.636595 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.637155 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.637417 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.637866 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.638429 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.638720 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.639176 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.639726 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.640363 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.640818 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.641319 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.641530 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.641955 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.642500 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.643218 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.644211 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.644669 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.645666 #2981] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:07.646347 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.646812 #2981] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:07.647441 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.647864 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.648357 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.648906 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.649142 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.649572 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.650136 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.650426 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.650969 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.651579 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.651954 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.652683 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.656906 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.657458 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.658178 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.658800 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.659035 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.659591 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.660143 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.660561 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.661181 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.661790 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.662379 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.663191 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:07.664096 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:07.664568 #2981] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:07.665303 #2981] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:07.665969 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.666588 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.667198 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.667899 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.668193 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.668809 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.669464 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.669736 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.670269 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:07.670827 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.671373 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.672337 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.672769 #2981] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:07.673353 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.673742 #2981] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:07.674430 #2981] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.674806 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:07.675800 #2981] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:07.676603 #2981] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:07.677195 #2981] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:07.677753 #2981] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.678402 #2981] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:07.678683 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.679166 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:07.679798 #2981] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:07.680723 #2981] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:07.681282 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:07.681688 #2981] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:07.682182 #2981] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:07.682897 #2981] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:07.683323 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:07.683778 #2981] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:07.684270 #2981] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.875380 #2985] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:03:08.876588 #2985] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:08.877567 #2985] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:08.879636 #2985] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:08.880556 #2985] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:08.881313 #2985] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:08.882268 #2985] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:03:08.882881 #2985] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:08.907046 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.909451 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.910203 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.912340 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.913374 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.914113 #2985] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:08.915563 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.916456 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:08.917058 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.917784 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.918776 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:08.919403 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.919760 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.920350 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:08.920971 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.925081 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.929334 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:08.930339 #2985] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:08.931444 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:08.932081 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.933086 #2985] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:08.933912 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.934453 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.935019 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.935254 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.935685 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.936144 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.936542 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.939205 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:08.939750 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.942042 #2985] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:08.942604 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.943184 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.943350 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.944348 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.944784 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:08.945329 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.945505 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.946265 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.946662 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:08.947182 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.947340 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.947816 #2985] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:08.948287 #2985] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:08.948970 #2985] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:08.950803 #2985] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:08.951293 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.951834 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.952345 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.952590 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.953003 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.953575 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.953823 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.954272 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:08.954820 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.955180 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.955779 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:08.956297 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.956553 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.957068 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.957625 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.957922 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.958516 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:08.959116 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.959476 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.960207 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:08.960673 #2985] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:08.961120 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:08.961711 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.962097 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.962862 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.963667 #2985] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:08.964339 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:08.964937 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.966854 #2985] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:08.967591 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.968139 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.968671 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.968931 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.969396 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.969967 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.970335 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.970994 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:08.971590 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.972119 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.972584 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.973050 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.973178 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.974130 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.974504 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:08.975132 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.975311 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.975999 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.976320 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:08.976789 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.977212 #2985] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:08.978167 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:08.978782 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.979296 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.979801 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.980043 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.980479 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.981030 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.981316 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.981866 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:08.982399 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.983081 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.983612 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.984087 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.984225 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.985191 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.985616 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:08.986181 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.986330 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.987048 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.987374 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:08.988003 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:08.988406 #2985] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:08.989446 #2985] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:08.990941 #2985] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:08.991850 #2985] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:08.992431 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.993025 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.993320 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.993839 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:08.994371 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.994628 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.995172 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:08.995654 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:08.997041 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:08.997869 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:08.998454 #2985] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:08.998944 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:08.999479 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:08.999962 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.000503 #2985] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:09.001396 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:09.001979 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.002549 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.003148 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.003399 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.003853 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.004389 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.004652 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.005142 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:09.005735 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.006385 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.006969 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.007616 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:09.007828 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.009056 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.009496 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:09.010176 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:09.010390 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.011289 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.011721 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:09.012354 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.013248 #2985] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.014089 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.014831 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.015472 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.015797 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.016464 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.017228 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:09.017655 #2985] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:09.018526 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:09.019198 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.019986 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.020597 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.021200 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.021368 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.022456 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.022910 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:09.023455 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.023616 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.024377 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.024729 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:09.025318 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.025815 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.026289 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.026846 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.027343 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.027632 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.028095 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.028632 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.028917 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.029429 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.029922 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.030576 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.031059 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.031577 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.031838 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.032331 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.032837 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.033536 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.034390 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.034778 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.035680 #2985] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:09.036384 #2985] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:09.036807 #2985] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:09.037442 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.037875 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.038423 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.039010 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.039361 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.039861 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.040405 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.040666 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.041195 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:09.041707 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.045520 #2985] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:09.046445 #2985] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.047016 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.047394 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.047972 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.048481 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.048731 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.049239 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.049793 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.050045 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.050511 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:09.051034 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.051527 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.052243 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:09.053159 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:09.053590 #2985] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:09.054268 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:09.054842 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.055313 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.055811 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.056289 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.056497 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.056933 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.057366 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.057589 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.058063 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:09.058579 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.059029 #2985] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:09.059851 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.060231 #2985] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:09.060721 #2985] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:09.061291 #2985] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:09.062279 #2985] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.062843 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:09.063742 #2985] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:09.064405 #2985] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:09.064893 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.065485 #2985] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.066058 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.066280 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.066731 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:09.067292 #2985] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:09.068194 #2985] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:09.068746 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:09.069129 #2985] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:09.069608 #2985] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:09.070262 #2985] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:09.070696 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:09.071164 #2985] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:09.071725 #2985] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.267547 #2990] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:10.268424 #2990] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:10.271989 #2990] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:10.274338 #2990] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:10.275352 #2990] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:10.276218 #2990] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:10.277505 #2990] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:03:10.278415 #2990] DEBUG -- :  (0.7ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:10.303500 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.305964 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.306666 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.309804 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.311194 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.311901 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.317096 #2990] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:10.318996 #2990] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:10.319924 #2990] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:10.320846 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.322088 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:10.322753 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.323139 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.323703 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:10.324348 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.328630 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.332865 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:10.333959 #2990] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:10.335241 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:10.335863 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.336800 #2990] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:10.337597 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.338195 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.338744 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.338975 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.339450 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.340000 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.340432 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.344533 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.345119 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.347801 #2990] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:10.348485 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.349226 #2990] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:10.349421 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.350792 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.351380 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:10.352075 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.352265 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.353175 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.353608 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:10.354222 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.354419 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.355069 #2990] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:10.355722 #2990] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:10.356494 #2990] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:10.358682 #2990] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.359314 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.369617 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.370323 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.370738 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.371373 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.371962 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.372187 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.372668 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:10.373208 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.373527 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.374032 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:10.374538 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.374816 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.375350 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.375877 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.376106 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.376596 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.377300 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.378037 #2990] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:10.379135 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:10.379793 #2990] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:10.380288 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:10.381006 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.381549 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.382490 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.383332 #2990] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:10.384043 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:10.384670 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.386506 #2990] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:10.387350 #2990] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:10.387956 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.388583 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.388844 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.389336 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.389866 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.390112 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.390610 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.391103 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.391671 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.392145 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.392752 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.392919 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.393919 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.394364 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:10.394909 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.395097 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.395911 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.396279 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:10.396770 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.397311 #2990] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:10.398417 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:10.399114 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.399638 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.400270 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.400521 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.400976 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.401528 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.401763 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.402326 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.402929 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.403556 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.404132 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.404711 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.404890 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.406070 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.406543 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:10.407113 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.407290 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.408145 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.408506 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:10.409128 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.409577 #2990] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:10.410947 #2990] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:10.412912 #2990] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:10.414118 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.414759 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.415304 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.415585 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.416074 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.416585 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.416845 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.417336 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.417938 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.419295 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.419867 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.420502 #2990] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:10.421001 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:10.421570 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.422054 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.422608 #2990] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:10.423399 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:10.423910 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.424443 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.425047 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.425297 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.425746 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.426293 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.426553 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.427085 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.427689 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.428762 #2990] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:10.429653 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.430305 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.430520 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.431765 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.432237 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:10.432772 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.432913 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.433598 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.433957 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:10.434478 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.435175 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.435650 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.436130 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.436692 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.436937 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.437397 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.437866 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.438120 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.438642 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.439168 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.439695 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.440171 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.440687 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.440818 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.441651 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.442007 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:10.442572 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.442708 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.443517 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.444022 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:10.444616 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.445156 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.445630 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.446131 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.446783 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.447040 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.447486 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.447967 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.448214 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.448700 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.449184 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.449842 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.450364 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.451011 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.451266 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.451787 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.452356 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.453275 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.454265 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.454718 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.455695 #2990] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:10.456507 #2990] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:10.456933 #2990] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:10.457561 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.458023 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.458589 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.459158 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.459404 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.459911 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.460485 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.460817 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.461421 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.461923 #2990] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:10.462359 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.463194 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.463782 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.464119 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.464623 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.465139 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.465368 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.465791 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.466411 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.466658 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.467121 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.467662 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.468140 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.468843 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:10.469683 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:10.470101 #2990] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:10.470746 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.471238 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.471705 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.472228 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.472828 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.473060 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.473480 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.473992 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.474215 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.474703 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:10.475206 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.475640 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.476464 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.476844 #2990] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:10.477515 #2990] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:10.477994 #2990] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:10.478888 #2990] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.479344 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:10.480251 #2990] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:10.480958 #2990] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:10.481542 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.482134 #2990] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.483061 #2990] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:10.483474 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.484009 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:10.484568 #2990] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:10.485557 #2990] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:10.486150 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:10.486574 #2990] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:10.487096 #2990] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:10.487823 #2990] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:10.488264 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:10.488745 #2990] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:10.489281 #2990] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.612591 #2997] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:11.613503 #2997] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:11.614509 #2997] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:11.616714 #2997] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:11.617616 #2997] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:11.618312 #2997] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:11.619187 #2997] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:11.619864 #2997] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:11.641441 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.643711 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.644388 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.646503 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.647475 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.648111 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.649616 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.650507 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:11.651245 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.651883 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.652834 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:11.653443 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.653842 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.654382 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:11.655034 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.659030 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.662767 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:11.663935 #2997] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:11.665310 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:11.666054 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.667068 #2997] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:11.667897 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.668605 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.669192 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.669471 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.669966 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.670528 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.670944 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.673378 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.673961 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.676289 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.676874 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.677624 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.678070 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.679226 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.679702 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:11.684319 #2997] DEBUG -- :  (4.5ms) commit transaction D, [2015-08-02T09:03:11.684467 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.685271 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.685601 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:11.689986 #2997] DEBUG -- :  (4.1ms) commit transaction D, [2015-08-02T09:03:11.690274 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.690965 #2997] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:11.691653 #2997] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:11.692345 #2997] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:11.694311 #2997] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.694878 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.695461 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.698037 #2997] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:03:11.698474 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.699091 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.699906 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.700482 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.701095 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:11.701829 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.702257 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.702956 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:11.703646 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.704016 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.704751 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.705404 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.705743 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.706385 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.707093 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.707580 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.708461 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:11.709014 #2997] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:11.709504 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:11.710134 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.710488 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.711180 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.711949 #2997] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:11.712875 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:11.713613 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.715888 #2997] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:11.716762 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.717371 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.718029 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.718288 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.718814 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.719432 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.719690 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.720280 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.720870 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.721441 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.721924 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.722518 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.722685 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.723733 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.724145 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:11.724779 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.724923 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.725727 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.726071 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:11.726696 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.727129 #2997] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:11.728128 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:11.728780 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.729285 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.729892 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.730121 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.730514 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.731069 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.731295 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.731760 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.732356 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.732951 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.733443 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.734006 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.734180 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.735499 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.735997 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:11.736653 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.736846 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.737927 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.738341 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:11.738982 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.739536 #2997] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:11.740732 #2997] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:11.742194 #2997] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:11.743195 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.743864 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.744564 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.744903 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.745504 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.746147 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.746451 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.747053 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.747831 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.751446 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.752254 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.753040 #2997] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:11.753656 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:11.754452 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.755396 #2997] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.756454 #2997] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:11.757566 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:11.758248 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.758912 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.759653 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.760008 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.760637 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.761271 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.761585 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.762222 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.762861 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.763605 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.764175 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.764771 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.765003 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.766473 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.767014 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:11.767665 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.767857 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.768831 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.769260 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:11.769946 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.770894 #2997] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.771560 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.772286 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.772916 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.773200 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.773715 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.774269 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.774538 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.775051 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.775599 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.776237 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.776708 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.777214 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.777351 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.778335 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.778725 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:11.779418 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.779565 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.780476 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.780818 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:11.781428 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.781918 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.782408 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.782887 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.783472 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.783727 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.784159 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.784712 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.785007 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.785525 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.786097 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.786729 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.787197 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.787748 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.787949 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.788421 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.789031 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.793239 #2997] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:11.794322 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.794736 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.795677 #2997] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:11.796483 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.796970 #2997] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:11.797691 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.798137 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.798685 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.799209 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.799436 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.799873 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.800487 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.800745 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.801242 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.801803 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.802119 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.802760 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.803350 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.803667 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.804188 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.804811 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.805049 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.805454 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.805980 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.806213 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.806691 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.807256 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.807729 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.808424 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:11.809391 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:11.809821 #2997] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:11.810541 #2997] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:11.811253 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.811859 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.812435 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.813020 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.813290 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.813768 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.814283 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.814517 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.815019 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:11.815586 #2997] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:11.816126 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.817387 #2997] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.817908 #2997] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:11.818534 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.818976 #2997] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:11.819728 #2997] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.820172 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:11.821031 #2997] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:11.821626 #2997] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:11.822235 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.822809 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.823357 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.823569 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.824256 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:11.824788 #2997] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:11.825808 #2997] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:11.826711 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:11.827174 #2997] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:11.827671 #2997] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:11.828354 #2997] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:11.828842 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:11.829368 #2997] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:11.829884 #2997] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.874986 #3003] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:03:12.876355 #3003] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:12.877957 #3003] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:12.880381 #3003] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:12.881440 #3003] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:12.882306 #3003] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:12.883337 #3003] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:12.884036 #3003] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:12.905827 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.907953 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.908669 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.911331 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.912532 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.913160 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.914819 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.915776 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:12.916407 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.917028 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.917951 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:12.918573 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.918895 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.919307 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:12.919910 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.923452 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.927061 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:12.928066 #3003] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:12.929319 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:12.930157 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.931202 #3003] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:12.932036 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.932661 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.933255 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.933484 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.933903 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.934477 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.934872 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.937310 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:12.937957 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.940536 #3003] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:12.941052 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.941607 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.941775 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.942860 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.943324 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:12.943903 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.944058 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.944819 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.945170 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:12.945760 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.945909 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.946363 #3003] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:12.946783 #3003] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:12.947392 #3003] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:12.949027 #3003] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:12.949552 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.950086 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.950697 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.950925 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.951342 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.951989 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.952258 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.952671 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:12.953203 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.953482 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.953931 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:12.954486 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.954735 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.955240 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.955801 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.956052 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.956505 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:12.957078 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.957428 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.958100 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:12.958520 #3003] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:12.958903 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:12.959567 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.959941 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.960586 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.961279 #3003] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:12.961933 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:12.962583 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.964368 #3003] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:12.965113 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.965648 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.966328 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.966616 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.967107 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.967732 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.968017 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.968538 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:12.969093 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.969664 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.970142 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.970773 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.970914 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.971923 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.972385 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:12.973020 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.973223 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.974107 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.974455 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:12.975050 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.975484 #3003] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:12.976488 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:12.977171 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.977678 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.978307 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.978549 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.978955 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.979508 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.979730 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.980181 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:12.980800 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.981316 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.981793 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.982341 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.982489 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.983524 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.983923 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:12.984586 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.984742 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.985563 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.985896 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:12.986430 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.986796 #3003] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:12.989490 #3003] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:12.990890 #3003] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:12.991799 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.992339 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.992984 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.993233 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.993664 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:12.994237 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:12.994466 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.994902 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:12.995591 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.996802 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:12.997288 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.997829 #3003] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:12.998258 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:12.998889 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:12.999411 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:12.999858 #3003] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:13.000640 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:13.001193 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.001845 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.002488 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.002762 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.003273 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.003828 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.004104 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.004639 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:13.005243 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.005897 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.006445 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.007097 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.007249 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.008358 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.008753 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:13.009415 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.009611 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.010742 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.011192 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:13.011735 #3003] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:13.012778 #3003] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.013565 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.014174 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.014753 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.015033 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.015520 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.016048 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.016302 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.016818 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:13.017445 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.018067 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.018558 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.019150 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.019343 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.020681 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.021163 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:13.021832 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.022011 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.022989 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.023401 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:13.024102 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.024629 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.025169 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.025705 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.026301 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.026552 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.027005 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.027589 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.027873 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.028339 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.028846 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.029522 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.029962 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.030539 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.030755 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.031188 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.031720 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.036153 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.037163 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.037644 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.038698 #3003] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:13.039510 #3003] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:13.040005 #3003] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:13.040702 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.041136 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.041662 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.042231 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.042471 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.042882 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.043445 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.043678 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.044176 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:13.044726 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.045033 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.045684 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.046260 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.046625 #3003] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:13.047297 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.047970 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.048287 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.048872 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.049526 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.049897 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.050542 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:13.051142 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.051698 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.052527 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:13.053667 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:13.054111 #3003] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:13.054936 #3003] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:13.055514 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.056015 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.056566 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.057143 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.057364 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.057798 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.058371 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.058654 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.059097 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:13.059719 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.060225 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.061190 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.061546 #3003] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:13.062141 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.062643 #3003] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:13.063462 #3003] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.063812 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:13.064640 #3003] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:13.065252 #3003] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:13.065684 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.066254 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.066885 #3003] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:13.067230 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.068206 #3003] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:13.068831 #3003] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:13.070060 #3003] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:13.071514 #3003] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:13.072464 #3003] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:13.073152 #3003] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:13.073971 #3003] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:13.074546 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:13.075153 #3003] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:13.075835 #3003] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.193836 #3007] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:03:14.194839 #3007] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:14.196474 #3007] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:14.199565 #3007] DEBUG -- :  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:14.201126 #3007] DEBUG -- :  (0.9ms) DROP TABLE "taggings" D, [2015-08-02T09:03:14.201920 #3007] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:14.202962 #3007] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:14.203735 #3007] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:14.227446 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.229611 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.230345 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.232610 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.233634 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.234220 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.236367 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.237666 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:14.238357 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.239134 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.240300 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:14.241071 #3007] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:14.241460 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.241946 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:14.242606 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.246527 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.250584 #3007] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:14.251974 #3007] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:14.253150 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:14.253798 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.254653 #3007] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:14.255410 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.255924 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.256535 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.256779 #3007] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:14.257198 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.257950 #3007] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:14.258444 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.261327 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.262038 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.264602 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.265310 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.265983 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.266191 #3007] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:14.267647 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.268229 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:14.268917 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.269118 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.270142 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.270555 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:14.271191 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.271339 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.271906 #3007] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:14.272388 #3007] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:14.273012 #3007] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:14.274723 #3007] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.275244 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.275799 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.276427 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.276707 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.277174 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.277768 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.277995 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.278415 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:14.279010 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.279304 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.279761 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:14.280317 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.280568 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.281085 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.281639 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.281884 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.282345 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.282950 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.283351 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.284068 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:14.284546 #3007] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:14.284952 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:14.285553 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.285867 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.286511 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.287240 #3007] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:14.287945 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:14.288441 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.290467 #3007] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:14.291239 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.291814 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.292314 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.292566 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.293022 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.293466 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.293711 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.294170 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.294632 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.295209 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.295681 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.296253 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.296391 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.297444 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.297832 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:14.298479 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.298642 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.299491 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.299821 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:14.300373 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.300810 #3007] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:14.301823 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:14.302518 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.303015 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.303604 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.303837 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.304236 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.304808 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.305037 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.305494 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.306052 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.306579 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.307039 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.307625 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.307760 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.308767 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.309229 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:14.309866 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.310059 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.311163 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.311619 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:14.312294 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.312994 #3007] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:14.316202 #3007] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:14.317889 #3007] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:14.318882 #3007] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:14.319496 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.320183 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.320456 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.320968 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.321549 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.321789 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.322227 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.322698 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.323806 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.324282 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.324814 #3007] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:14.325236 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:14.325760 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.326191 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.326679 #3007] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:14.327420 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:14.327884 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.328378 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.328947 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.329201 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.329639 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.330149 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.330410 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.330901 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.331419 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.331987 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.332451 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.333021 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.333163 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.334311 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.334710 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:14.335247 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.335390 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.336283 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.336626 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:14.337176 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.337821 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.338293 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.338793 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.339325 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.339565 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.339990 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.340542 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.340802 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.341294 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.341825 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.342412 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.342912 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.343409 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.343548 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.344539 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.344988 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:14.345603 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.345762 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.346659 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.347016 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:14.347586 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.348135 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.348682 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.349218 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.349756 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.350027 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.350518 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.351023 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.351341 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.351855 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.352397 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.353033 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.353519 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.354006 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.354218 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.354657 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.355145 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.359160 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.360179 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.360604 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.361604 #3007] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:14.362372 #3007] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:14.362899 #3007] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:14.363652 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.364127 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.364695 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.365324 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.365604 #3007] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:14.366078 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.366699 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.366976 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.367560 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.368130 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.368551 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.369338 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.369928 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.370333 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.370918 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.371460 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.371725 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.372167 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.372704 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.373020 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.373591 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.374148 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.374805 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.375784 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:14.376913 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:14.377455 #3007] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:14.378225 #3007] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:14.378944 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.379592 #3007] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:14.380256 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.380891 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.381171 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.381725 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.382231 #3007] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:14.382504 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.383065 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:14.383658 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.384369 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.385574 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.386063 #3007] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:14.386745 #3007] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:14.387239 #3007] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:14.388046 #3007] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.388469 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:14.389389 #3007] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:14.390161 #3007] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:14.390662 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.391267 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.391858 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.392089 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.392797 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:14.393332 #3007] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:14.394294 #3007] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:14.395224 #3007] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:14.395738 #3007] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:14.396371 #3007] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:14.397181 #3007] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:14.397731 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:14.398325 #3007] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:14.399001 #3007] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.559382 #3014] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:15.560324 #3014] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:15.561410 #3014] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:15.563585 #3014] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:15.564515 #3014] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:15.565264 #3014] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:15.566099 #3014] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:15.566808 #3014] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:15.587952 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.590013 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.590905 #3014] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:15.593617 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.594727 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.595352 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.597205 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.598280 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:15.598890 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.599590 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.600851 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:15.601446 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.601762 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.602192 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:15.602776 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.606331 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.610191 #3014] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:15.611576 #3014] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:15.612993 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:15.613685 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.614645 #3014] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:15.615493 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.616130 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.616781 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.617148 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.617704 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.618329 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.618780 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.621345 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.622008 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.624263 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.624808 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.625452 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.625612 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.626682 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.627124 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:15.627750 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.627934 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.628989 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.629486 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:15.630153 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.630315 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.630857 #3014] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:15.631353 #3014] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:15.631995 #3014] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:15.633803 #3014] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.634371 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.634936 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.635627 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.635908 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.636599 #3014] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.643272 #3014] DEBUG -- :  (6.5ms) commit transaction D, [2015-08-02T09:03:15.643758 #3014] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:15.644450 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:15.647551 #3014] DEBUG -- :  (2.9ms) commit transaction D, [2015-08-02T09:03:15.648045 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.648802 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:15.655268 #3014] DEBUG -- :  (6.2ms) commit transaction D, [2015-08-02T09:03:15.655817 #3014] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:15.656698 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.657427 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.657762 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.658354 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.659164 #3014] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:15.660042 #3014] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:15.661275 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:15.661900 #3014] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:15.662433 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:15.663128 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.663600 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.664466 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.665430 #3014] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:15.666211 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:15.666914 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.669204 #3014] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:15.670280 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.670959 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.671610 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.671890 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.672380 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.672913 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.673208 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.673748 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.674304 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.674919 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.675414 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.676032 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.676180 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.677219 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.677629 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:15.678326 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.678548 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.679728 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.680203 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:15.680883 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.681342 #3014] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:15.683963 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:15.684807 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.685434 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.686029 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.686285 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.686723 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.687265 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.687534 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.688079 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.688639 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.689286 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.689799 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.690363 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.690511 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.691561 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.691957 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:15.692618 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.692786 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.693652 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.694044 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:15.694629 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.695091 #3014] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:15.696139 #3014] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:15.697571 #3014] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:15.698442 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.698998 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.699652 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.699892 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.700324 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.700922 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.701156 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.701592 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.702118 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.703442 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.704012 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.704618 #3014] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:15.705118 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:15.705746 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.706232 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.706719 #3014] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:15.707587 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:15.708133 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.708693 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.709335 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.709603 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.710098 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.710667 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.710918 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.711399 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.711987 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.712719 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.713264 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.713838 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.714004 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.715139 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.715573 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:15.716261 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.716469 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.717667 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.718135 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:15.718782 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.719598 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.720140 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.720702 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.721176 #3014] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:15.721432 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.721854 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.722407 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.722641 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.723116 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.723679 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.724270 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.724737 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.725264 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.725422 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.726459 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.726913 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:15.727548 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.727734 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.728759 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.729180 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:15.729784 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.730327 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.730861 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.731383 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.732002 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.732236 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.732660 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.733243 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.733514 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.733949 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.734452 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.735148 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.735655 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.736180 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.736432 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.736883 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.740834 #3014] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:15.741779 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.742970 #3014] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.743522 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.744597 #3014] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:15.745372 #3014] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:15.745939 #3014] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:15.746637 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.747128 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.747670 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.748255 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.748560 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.749014 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.749587 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.749833 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.750370 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.750943 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.751357 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.752082 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.752620 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.753019 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.753561 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.754164 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.754402 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.754864 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.755371 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.755601 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.756100 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.756683 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.757178 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.757902 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:15.758946 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:15.759377 #3014] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:15.760141 #3014] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:15.760694 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.761246 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.761768 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.762348 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.762614 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.763124 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.763733 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.763985 #3014] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:15.764439 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:15.765017 #3014] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:15.765544 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.766600 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.767008 #3014] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:15.767716 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.768151 #3014] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:15.769055 #3014] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.769474 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:15.770371 #3014] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:15.771056 #3014] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:15.771550 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.772134 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.772771 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.773084 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.773903 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:15.774408 #3014] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:15.775370 #3014] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:15.776456 #3014] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:15.776894 #3014] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:15.777408 #3014] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:15.778054 #3014] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:15.778484 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:15.778964 #3014] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:15.779526 #3014] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:16.983727 #3018] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:03:16.984501 #3018] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:16.985500 #3018] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:16.987483 #3018] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:16.988405 #3018] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:16.989106 #3018] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:16.989961 #3018] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:16.990649 #3018] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:17.012993 #3018] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:17.015821 #3018] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.016575 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.019025 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.020296 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.020935 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.022719 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.023822 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:17.024411 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.025131 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.026236 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:17.026903 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.027416 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.028182 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:17.028860 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.032881 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.036846 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:17.037934 #3018] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:17.039055 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:17.039776 #3018] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:17.040599 #3018] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:17.041363 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.041885 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.042451 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.042681 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.043100 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.043657 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.044116 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.046968 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.047622 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.050689 #3018] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:17.051420 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.052171 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.052399 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.053864 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.054459 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:17.055187 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.055375 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.056418 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.056812 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:17.057335 #3018] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:17.057517 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.058029 #3018] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:17.058501 #3018] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:17.059082 #3018] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:17.060837 #3018] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.061358 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.061924 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.062570 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.062852 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.063313 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.063886 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.064161 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.064622 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:17.065133 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.065451 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.065967 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:17.066445 #3018] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:17.066723 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.067308 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.067819 #3018] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:17.068106 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.068668 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.069205 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.069664 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.070448 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:17.070895 #3018] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:17.071288 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:17.071863 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.072169 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.072804 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.073533 #3018] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:17.074176 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:17.074766 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.076753 #3018] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:17.077699 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.078385 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.079068 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.079452 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.080088 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.080755 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.081106 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.081747 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.082357 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.083224 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.083906 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.084538 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.084730 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.086034 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.086553 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:17.087242 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.087417 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.088420 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.088796 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:17.089400 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.089891 #3018] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:17.092635 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:17.093550 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.094335 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.095028 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.095324 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.095800 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.096252 #3018] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:17.096480 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.096954 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.097506 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.098101 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.098572 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.099247 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.099435 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.100627 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.101066 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:17.101625 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.101813 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.102720 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.103107 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:17.103678 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.104132 #3018] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:17.105154 #3018] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:17.106662 #3018] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:17.107607 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.108221 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.108827 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.109106 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.109596 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.110163 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.110411 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.110919 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.111443 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.112882 #3018] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:17.113439 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.114078 #3018] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:17.114515 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:17.115077 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.115456 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.115914 #3018] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:17.116668 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:17.117197 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.117722 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.118234 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.118466 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.118901 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.119415 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.119684 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.120192 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.120795 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.121417 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.121910 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.122497 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.122633 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.123662 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.124071 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:17.124706 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.124855 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.125675 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.125999 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:17.126653 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.127298 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.127816 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.128307 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.128864 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.129142 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.129651 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.130280 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.130534 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.131075 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.131630 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.132212 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.132685 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.133187 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.133326 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.134310 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.134704 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:17.135280 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.135498 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.136574 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.137027 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:17.137794 #3018] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:17.138819 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.139669 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.140307 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.140982 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.141290 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.141878 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.142456 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.142819 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.143422 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.144050 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.144940 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.145564 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.146111 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.146382 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.146918 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.150511 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.151288 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.152178 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.152636 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.153667 #3018] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:17.154423 #3018] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:17.154927 #3018] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:17.155528 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.155973 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.156469 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.156987 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.157213 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.157682 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.158244 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.158587 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.159273 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.159844 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.160174 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.160824 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.161385 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.161793 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.162333 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.162936 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.163177 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.163648 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.164194 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.164488 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.165078 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.165684 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.166290 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.167195 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:17.168424 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:17.168942 #3018] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:17.169700 #3018] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:17.170408 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.171019 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.171656 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.172273 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.172542 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.173076 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.173642 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.173950 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.174517 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:17.175138 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.175687 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.176811 #3018] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.177268 #3018] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:17.177938 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.178432 #3018] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:17.179594 #3018] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.180104 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:17.180909 #3018] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:17.181815 #3018] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:17.182369 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.183056 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.183659 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.183983 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.184571 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:17.185106 #3018] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:17.186566 #3018] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:17.187419 #3018] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:17.188148 #3018] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:17.188678 #3018] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:17.189363 #3018] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:17.189802 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:17.190256 #3018] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:17.190761 #3018] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.335259 #3022] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:18.336122 #3022] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:18.337130 #3022] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:18.339095 #3022] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:18.340157 #3022] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:03:18.340926 #3022] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:18.341779 #3022] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:18.342518 #3022] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:18.366975 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.369856 #3022] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.370671 #3022] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:18.375164 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.376704 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.377413 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.379579 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.380974 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:18.381596 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.382397 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.383587 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:18.384088 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.384429 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.384893 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:18.385564 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.390936 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.395731 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:18.396847 #3022] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:18.397987 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:18.398687 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.399530 #3022] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:18.400334 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.400866 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.401490 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.401722 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.402123 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.402716 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.403091 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.405808 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.406494 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.408952 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.409737 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.410391 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.410609 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.412188 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.412823 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:18.413467 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.413652 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.414696 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.415104 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:18.415785 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.415973 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.416569 #3022] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:18.417130 #3022] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:18.417912 #3022] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:18.419981 #3022] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.420597 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.421262 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.421998 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.422303 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.422830 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.423343 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.423607 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.424053 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:18.424604 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.424924 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.425425 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:18.425990 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.426255 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.426936 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.427543 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.427822 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.428328 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.428914 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.429336 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.430049 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:18.430486 #3022] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:18.430880 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:18.431486 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.431793 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.432411 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.433146 #3022] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:18.433791 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:18.434435 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.436530 #3022] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:18.437352 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.437952 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.438477 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.438743 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.439157 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.439782 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.440031 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.440501 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.441108 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.441678 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.442135 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.442768 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.442940 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.444618 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.445157 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:18.445915 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.446203 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.447205 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.447577 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:18.448246 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.448891 #3022] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:18.452094 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:18.453077 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.453769 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.454652 #3022] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:18.455165 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.456109 #3022] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.456872 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.457200 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.457863 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.458681 #3022] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:18.459455 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.460115 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.460711 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.460905 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.462232 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.462720 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:18.463342 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.463550 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.464491 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.465024 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:18.465674 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.466200 #3022] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:18.467594 #3022] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:18.469688 #3022] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:18.470889 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.471614 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.472386 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.472759 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.473399 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.474051 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.474371 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.475027 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.475886 #3022] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:18.477437 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.478199 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.479044 #3022] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:18.479583 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:18.480403 #3022] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:18.481042 #3022] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.481672 #3022] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:18.482697 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:18.483324 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.483923 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.484634 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.485144 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.486138 #3022] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.487067 #3022] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:18.487626 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.488661 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.489363 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.490121 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.490736 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.491453 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.491639 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.493021 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.493527 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:18.494202 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.494419 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.495642 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.496125 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:18.496832 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.497675 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.498323 #3022] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:18.498888 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.499471 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.499734 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.500215 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.500740 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.500999 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.501524 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.502020 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.502606 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.503093 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.503657 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.503819 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.504797 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.505180 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:18.505850 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.506012 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.506877 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.507229 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:18.507831 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.508375 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.508906 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.509425 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.509980 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.510221 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.510663 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.511198 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.511601 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.512115 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.512782 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.513508 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.513999 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.514568 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.514801 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.515227 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.519352 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.520313 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.521471 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.521963 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.522988 #3022] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:18.523678 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.524157 #3022] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:18.524833 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.525327 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.525822 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.526430 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.526645 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.527077 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.527633 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.527855 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.528355 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.528915 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.529419 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.530230 #3022] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.530792 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.531205 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.531753 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.532309 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.532534 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.532977 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.533533 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.533779 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.534257 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.534802 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.535309 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.536040 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:18.537013 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:18.537440 #3022] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:18.538054 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.538565 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.539045 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.539537 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.540038 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.540292 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.540775 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.541263 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.541556 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.542040 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:18.542566 #3022] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:18.543090 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.544063 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.544489 #3022] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:18.545131 #3022] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:18.545612 #3022] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:18.546525 #3022] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.546875 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:18.547730 #3022] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:18.548456 #3022] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:18.548915 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.549439 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.550075 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.550303 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.550769 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:18.551391 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.552575 #3022] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:18.553132 #3022] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:18.553523 #3022] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:18.553967 #3022] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:18.554648 #3022] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:18.555275 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:18.555700 #3022] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:18.556164 #3022] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.616776 #3026] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:19.617622 #3026] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:19.618587 #3026] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:19.620579 #3026] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:19.621443 #3026] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:19.622208 #3026] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:19.623040 #3026] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:19.623772 #3026] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:19.645232 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.647487 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.648360 #3026] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:19.651683 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.653148 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.653909 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.655551 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.656827 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:19.657483 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.658369 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.659397 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:19.660135 #3026] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:19.660575 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.661167 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:19.661828 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.665939 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.670436 #3026] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:19.671590 #3026] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:19.672742 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:19.673454 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.674293 #3026] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:19.675043 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.675563 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.676193 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.676511 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.676999 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.677573 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.678004 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.680937 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.681425 #3026] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:19.683585 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.684085 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.684613 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.684766 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.685956 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.686499 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:19.687186 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.687354 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.688381 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.688781 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:19.689380 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.689548 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.690080 #3026] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:19.690559 #3026] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:19.691216 #3026] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:19.693015 #3026] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.693573 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.694134 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.694755 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.695078 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.695694 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.696274 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.696514 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.696927 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:19.697503 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.697792 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.698266 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:19.698856 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.699111 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.699638 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.700251 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.700503 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.700977 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.701618 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.702272 #3026] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:19.704114 #3026] DEBUG -- : SQL (0.6ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:19.704625 #3026] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:19.705062 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:19.708724 #3026] DEBUG -- :  (3.4ms) commit transaction D, [2015-08-02T09:03:19.709226 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.710197 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.711113 #3026] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:19.711906 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:19.714298 #3026] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:03:19.716702 #3026] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:19.717699 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.718448 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.722098 #3026] DEBUG -- :  (3.4ms) commit transaction D, [2015-08-02T09:03:19.722507 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.723155 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.723777 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.724101 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.724783 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.725385 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.726122 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.726709 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.727349 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.727569 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.729220 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.729770 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:19.730546 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.730754 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.731844 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.732283 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:19.732915 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.733546 #3026] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:19.736653 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:19.737611 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.738303 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.738909 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.739173 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.739646 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.740168 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.740418 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.740970 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.741447 #3026] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:19.742031 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.742520 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.743166 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.743363 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.744779 #3026] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.745324 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:19.745942 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.746140 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.747188 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.747604 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:19.748269 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.748749 #3026] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:19.749814 #3026] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:19.751341 #3026] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:19.752242 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.752851 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.753441 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.753706 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.754143 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.754764 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.754998 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.755450 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.756027 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.757248 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.757754 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.758325 #3026] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:19.758775 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:19.759432 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.760002 #3026] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.760620 #3026] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:19.761631 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:19.762229 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.762833 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.763446 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.763740 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.764223 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.764751 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.764997 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.765510 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.766048 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.766749 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.767313 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.767939 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.768111 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.769327 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.769777 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:19.770358 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.770496 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.771324 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.771654 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:19.772265 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.772915 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.773422 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.773898 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.774500 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.774770 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.775269 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.775741 #3026] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:19.775987 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.776502 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.776981 #3026] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:19.777729 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.778368 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.778928 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.779087 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.780123 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.780521 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:19.781178 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.781344 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.782184 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.782531 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:19.783114 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.783603 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.784147 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.784629 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.785194 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.785439 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.785911 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.786503 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.786793 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.787250 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.787922 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.788558 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.789024 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.789631 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.789921 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.790408 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.794551 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.795431 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.796429 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.796843 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.797911 #3026] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:19.798757 #3026] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:19.799244 #3026] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:19.799911 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.800373 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.800889 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.801540 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.801827 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.802348 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.802954 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.803178 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.803649 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.804262 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.804635 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.805319 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.805880 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.806313 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.806875 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.807516 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.807804 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.808388 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.808996 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.809293 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.809917 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.810461 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.811048 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.811936 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:19.812977 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:19.813406 #3026] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:19.814141 #3026] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:19.814670 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.815210 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.815878 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.816484 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.816757 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.817289 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.817942 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.818302 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.818920 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:19.819656 #3026] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:19.820221 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.821484 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.821971 #3026] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:19.822648 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.823125 #3026] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:19.823986 #3026] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.824554 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:19.825429 #3026] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:19.826325 #3026] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:19.826806 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.827392 #3026] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.827927 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.828279 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.828860 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:19.829441 #3026] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:19.830826 #3026] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:19.831547 #3026] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:19.832263 #3026] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:19.832750 #3026] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:19.833541 #3026] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:19.833968 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:19.834397 #3026] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:19.834879 #3026] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:20.996348 #3034] DEBUG -- :  (0.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:20.997121 #3034] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:20.997983 #3034] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:21.000524 #3034] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:21.001436 #3034] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:03:21.002197 #3034] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:21.003089 #3034] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:21.003889 #3034] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:21.031135 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.035549 #3034] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.036303 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.039291 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.040546 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.041203 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.043079 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.044280 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:21.044855 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.045628 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.046834 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:21.047475 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.047852 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.048360 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:21.048959 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.054087 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.057982 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:21.059008 #3034] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:21.060281 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:21.060918 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.061847 #3034] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:21.062720 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.063279 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.063980 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.064321 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.064765 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.065212 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.065624 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.068276 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.068825 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.072102 #3034] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:21.072946 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.073551 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.073732 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.075032 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.075573 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:21.076142 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.076309 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.077261 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.077626 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:21.078156 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.078321 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.078838 #3034] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:21.079342 #3034] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:21.080054 #3034] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:21.081978 #3034] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.082490 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.083006 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.083589 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.083829 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.084261 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.084849 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.085176 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.085685 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:21.086203 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.086474 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.087079 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:21.087644 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.087893 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.088428 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.088985 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.089338 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.089986 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.090678 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.091155 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.091882 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:21.092289 #3034] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:21.092642 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:21.093286 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.093672 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.094385 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.095129 #3034] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:21.095773 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:21.096402 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.098824 #3034] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:21.099798 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.100466 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.101097 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.101402 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.101881 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.102399 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.102681 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.103211 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.103820 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.104438 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.104929 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.105499 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.105721 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.107143 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.107660 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:21.108322 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.108468 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.109301 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.109634 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:21.110299 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.110737 #3034] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:21.114111 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:21.114850 #3034] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:21.115626 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.116221 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.116481 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.116954 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.117496 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.117759 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.118267 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.118849 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.119446 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.119922 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.120526 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.120673 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.121768 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.122174 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:21.122752 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.123039 #3034] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:21.124238 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.124700 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:21.125423 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.126054 #3034] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:21.127437 #3034] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:21.129467 #3034] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:21.130363 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.130945 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.131543 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.131827 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.132273 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.132796 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.133016 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.133473 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.133995 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.135286 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.135763 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.136309 #3034] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:21.136728 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:21.137275 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.137651 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.138096 #3034] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:21.138986 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:21.139442 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.139938 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.140470 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.140693 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.141161 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.141738 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.142058 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.142597 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.143218 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.143958 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.144499 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.145051 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.145202 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.146388 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.146838 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:21.147516 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.147667 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.148552 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.148925 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:21.149565 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.150234 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.150759 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.151241 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.151866 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.152164 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.152630 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.153142 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.153423 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.153969 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.154555 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.155179 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.155662 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.156247 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.156399 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.157425 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.157816 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:21.158475 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.158717 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.159848 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.160321 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:21.160942 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.161541 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.162296 #3034] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:21.162993 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.163572 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.163881 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.164399 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.164947 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.165226 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.165680 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.166210 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.167025 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.167644 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.168224 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.168493 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.168995 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.173079 #3034] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:21.174033 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.175091 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.175523 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.176619 #3034] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:21.177326 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.177809 #3034] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:21.178477 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.178957 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.179505 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.180132 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.180363 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.180827 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.181322 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.181573 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.182078 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.182596 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.182982 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.183699 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.184272 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.184787 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.185390 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.185960 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.186210 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.186723 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.187177 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.187437 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.187984 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.188478 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.189071 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.189972 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:21.191025 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:21.191465 #3034] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:21.192073 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.192620 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.193106 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.193672 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.194230 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.194503 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.195014 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.195511 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.195834 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.196380 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:21.196896 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.197378 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.198370 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.198746 #3034] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:21.199301 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.199659 #3034] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:21.200389 #3034] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.200854 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:21.201596 #3034] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:21.202328 #3034] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:21.202762 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.203293 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.203799 #3034] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:21.204049 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.204477 #3034] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:21.204950 #3034] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:21.206158 #3034] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:21.206886 #3034] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:21.207590 #3034] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:21.208152 #3034] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:21.208814 #3034] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:21.209341 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:21.209853 #3034] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:21.210389 #3034] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.385363 #3040] DEBUG -- :  (0.8ms) DROP TABLE "authors" D, [2015-08-02T09:03:22.386152 #3040] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:22.387057 #3040] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:22.389447 #3040] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:22.390433 #3040] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:03:22.391199 #3040] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:22.392090 #3040] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:22.392774 #3040] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:22.420406 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.423361 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.424083 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.427272 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.428782 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.429470 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.431602 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.432870 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:22.433569 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.434468 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.435725 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:22.436413 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.436805 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.437354 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:03:22.437867 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.443096 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.447678 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:03:22.448672 #3040] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:22.450123 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:03:22.450732 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.451575 #3040] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:03:22.452386 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.452974 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.453520 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.453797 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.454266 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.454840 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.455275 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.458030 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.458805 #3040] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:22.462385 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.463171 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.463885 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.464069 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.465430 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.465997 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:03:22.466624 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.466804 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.467774 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.468159 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:03:22.468784 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.468970 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.469591 #3040] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:22.470151 #3040] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:22.470784 #3040] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:22.472887 #3040] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.473535 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.474223 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.474848 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.475117 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.475591 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.476122 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.476375 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.476875 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:22.477408 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.477715 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.478219 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:22.478769 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.479036 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.479560 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.480210 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.480580 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.481268 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.481902 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.482444 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.483422 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:03:22.483926 #3040] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:22.484344 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:03:22.484960 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.485345 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.486136 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.486937 #3040] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:03:22.487684 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:22.488347 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.490360 #3040] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:03:22.491162 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.491746 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.492559 #3040] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:22.493104 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.494035 #3040] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.494710 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.495054 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.495775 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.496409 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.497031 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.497526 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.498077 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.498284 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.499690 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.500206 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:22.500863 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.501055 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.502088 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.502512 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:22.503222 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.503781 #3040] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:22.507333 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:22.508262 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.508990 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.509650 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.510013 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.510596 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.511195 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.511510 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.512094 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.512691 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.513353 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.513885 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.514431 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.514621 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.515903 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.516394 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:22.517045 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.517210 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.518118 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.518502 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:03:22.519219 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.519778 #3040] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:03:22.521357 #3040] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:03:22.523520 #3040] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:03:22.524595 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.525228 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.525823 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.526107 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.526532 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.527079 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.527382 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.528100 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.528641 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.530310 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.530963 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.531655 #3040] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:22.532167 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:22.532869 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.533333 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.533824 #3040] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:03:22.534829 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:03:22.535344 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.535904 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.536452 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.536704 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.537143 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.537668 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.537921 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.538413 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.539108 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.540363 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.541384 #3040] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.542160 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.542331 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.543486 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.543946 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:22.544688 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.544951 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.545979 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.546361 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:22.546896 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.547669 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.548238 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.548793 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.549401 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.549759 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.550378 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.551029 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.551278 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.551768 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.552335 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.552996 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.553552 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.554137 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.554326 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.555513 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.555926 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:03:22.556495 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.556659 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.557492 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.557832 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:03:22.558436 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.558947 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.559440 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.559946 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.560426 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.560654 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.561081 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.561560 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.561828 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.562283 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.562804 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.563433 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.563904 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.564468 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.564712 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.565193 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.565719 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.570073 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.571231 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.571667 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.572627 #3040] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:03:22.573298 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.573763 #3040] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:22.574417 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.574889 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.575399 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.575922 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.576194 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.576701 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.577287 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.577612 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.578197 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.578791 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.579189 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.580029 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.580614 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.580975 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.581558 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.582097 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.582330 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.582805 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.583381 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.583667 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.584227 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.584782 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.585305 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.586065 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:22.587043 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:03:22.587492 #3040] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:03:22.588118 #3040] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:22.588633 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.589078 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.589608 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.590079 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.590329 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.590743 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.591262 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.591527 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.592053 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:22.592549 #3040] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:22.593093 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.594619 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.595158 #3040] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:22.595740 #3040] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:22.596282 #3040] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:22.597192 #3040] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.597664 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:22.598630 #3040] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:22.599316 #3040] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:22.600005 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.600577 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.601546 #3040] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:03:22.602066 #3040] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:22.603119 #3040] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:22.604092 #3040] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:22.606037 #3040] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:22.606815 #3040] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:22.607390 #3040] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:22.608380 #3040] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:03:22.609188 #3040] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:22.609686 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:03:22.610223 #3040] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:03:22.610821 #3040] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.683381 #3044] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:23.684479 #3044] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:23.685996 #3044] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:03:23.688817 #3044] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:23.689865 #3044] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:23.690638 #3044] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:23.691578 #3044] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:23.692215 #3044] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:23.739270 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.741105 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.743408 #3044] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:03:23.745705 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.746364 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.746937 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.747331 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.748907 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.749489 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.755877 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.756697 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.757530 #3044] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:23.757802 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.763221 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.764035 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:23.764905 #3044] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:23.765217 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.766663 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.767200 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:23.767843 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.768004 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.768351 #3044] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:23.769298 #3044] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:23.769761 #3044] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:23.771525 #3044] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.772044 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.772579 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.773171 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.773464 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.773946 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.774543 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.775986 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.776551 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:23.777041 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.777745 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.778520 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:23.779108 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.779532 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.780161 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.780700 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.780942 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.781438 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.781931 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.782495 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.783898 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:23.784304 #3044] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:23.784740 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:23.785309 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.785616 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.786240 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.786755 #3044] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:23.787186 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:23.787842 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.789009 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:23.789543 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.790039 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.790673 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.790914 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.791313 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.791919 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.792144 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.792564 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.793144 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.793761 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.794202 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.794735 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.794877 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.795771 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.796181 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:23.796748 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.796883 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.797592 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.797963 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:23.798548 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.798883 #3044] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:23.800005 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:23.800661 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.801179 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.801784 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.802020 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.802405 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.802981 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.803286 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.803779 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.804314 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.804868 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.805281 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.805971 #3044] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:23.806139 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.807445 #3044] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.807937 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:23.813094 #3044] DEBUG -- :  (5.0ms) commit transaction D, [2015-08-02T09:03:23.813396 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.814562 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.815104 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:23.819098 #3044] DEBUG -- :  (3.8ms) commit transaction D, [2015-08-02T09:03:23.819569 #3044] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:23.820933 #3044] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:23.822657 #3044] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:23.823611 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.824230 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.827574 #3044] DEBUG -- :  (3.1ms) commit transaction D, [2015-08-02T09:03:23.827939 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.828787 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.829368 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.829709 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.830241 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.830712 #3044] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:23.831487 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.831927 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.832417 #3044] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:23.832919 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:23.833572 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.834070 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.834541 #3044] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:23.835412 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:23.835881 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.836398 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.836929 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.837157 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.837547 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.838020 #3044] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:23.838254 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.838687 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.839342 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.840604 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.841604 #3044] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.842404 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.842555 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.843747 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.844236 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:23.844896 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.845084 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.845944 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.846368 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:23.846901 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.847580 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.848154 #3044] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:23.848631 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.849188 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.849463 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.849853 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.850391 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.850619 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.851054 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.851653 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.852426 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.853011 #3044] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.853593 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.853722 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.854610 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.855114 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:23.855841 #3044] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:23.856022 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.856871 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.857295 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:23.857796 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.858319 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.858792 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.859235 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.859764 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.860003 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.860374 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.860861 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.861102 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.861494 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.862008 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.862702 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.863168 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.863761 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.863993 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.864401 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.864961 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.865688 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.866495 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.866859 #3044] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.867849 #3044] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:23.868685 #3044] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:23.869097 #3044] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:23.869597 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.869980 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.870424 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.870995 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.871233 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.871604 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.872125 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.872367 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.872775 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.873315 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.873564 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.874163 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.874728 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.875050 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.875454 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.876023 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.876280 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.876696 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.877257 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.877520 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.878048 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.878786 #3044] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:23.879298 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.880028 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:23.880814 #3044] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:23.881251 #3044] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:23.881894 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.882450 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.882990 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.883570 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.884145 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.884415 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.884866 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.885466 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.885733 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.886240 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:23.886796 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.887307 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.888200 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.888658 #3044] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:23.889285 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.889657 #3044] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:23.890281 #3044] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.890605 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:23.891120 #3044] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:23.891572 #3044] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:23.891967 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.892406 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.892923 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.893143 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.893540 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:23.894036 #3044] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:23.894681 #3044] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:23.895243 #3044] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:23.895615 #3044] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:23.896098 #3044] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:23.896737 #3044] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:23.897079 #3044] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:23.897446 #3044] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:23.897811 #3044] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:24.988697 #3048] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:03:24.989572 #3048] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:24.990525 #3048] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:24.992439 #3048] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:24.993386 #3048] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:03:24.994110 #3048] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:24.994883 #3048] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:24.995595 #3048] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:25.038716 #3048] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:25.042096 #3048] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.044976 #3048] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:03:25.047615 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.048512 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.049168 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.049562 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.051295 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.051904 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.057871 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.058476 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.059327 #3048] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:25.059623 #3048] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:25.065902 #3048] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.066779 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:25.067484 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.067676 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.068710 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.069191 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:25.069841 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.069985 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.070295 #3048] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:25.071234 #3048] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:25.071713 #3048] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:25.073306 #3048] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.073807 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.074446 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.075027 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.075270 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.075670 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.076198 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.077541 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.078155 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:25.078819 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.079531 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.080436 #3048] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:25.081043 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.081326 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.081945 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.082443 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.082682 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.083115 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.083599 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.084147 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.085579 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:25.086023 #3048] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:25.086443 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:25.087038 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.087302 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.087868 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.088356 #3048] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:25.088767 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:25.089283 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.090422 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:25.090894 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.091337 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.091904 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.092148 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.092555 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.093143 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.093407 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.093830 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.094385 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.094959 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.095381 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.095910 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.096056 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.096895 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.097303 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:25.097861 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.097989 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.098641 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.098996 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:25.099614 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.099993 #3048] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:25.101104 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:25.101725 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.102198 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.102824 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.103053 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.103442 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.103972 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.104196 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.104622 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.105180 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.105797 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.106230 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.106779 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.106907 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.107747 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.108163 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:25.108718 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.108842 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.109495 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.109863 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:25.110460 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.110835 #3048] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:25.111965 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:25.113651 #3048] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:25.114681 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.115311 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.116169 #3048] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:25.116667 #3048] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:25.117500 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.118198 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.118501 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.119060 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.119673 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.120559 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.121111 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.121698 #3048] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:25.122269 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:25.122869 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.123268 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.123683 #3048] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:25.124630 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:25.125099 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.125626 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.126203 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.126507 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.127051 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.128117 #3048] DEBUG -- :  (0.9ms) commit transaction D, [2015-08-02T09:03:25.128578 #3048] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:25.129437 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.130088 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.130840 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.131394 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.131982 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.132136 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.133096 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.133613 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:25.134247 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.134397 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.135196 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.135591 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:25.136180 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.137007 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.137655 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.138232 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.138810 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.139075 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.139523 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.140127 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.140359 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.140803 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.141300 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.141850 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.142271 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.142839 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.142964 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.143781 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.144204 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:25.144793 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.144924 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.145622 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.146027 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:25.146724 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.147288 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.147863 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.148503 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.149135 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.149411 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.149927 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.150536 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.150897 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.151463 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.152025 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.152877 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.153398 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.153947 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.154196 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.154682 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.155328 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.156318 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.157419 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.157874 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.158991 #3048] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:25.159781 #3048] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:25.160332 #3048] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:25.160990 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.161481 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.162015 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.162533 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.162794 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.163247 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.163758 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.164016 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.164467 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.164957 #3048] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:25.165239 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.165877 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.166471 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.166804 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.167256 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.167766 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.167981 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.168365 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.168870 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.169098 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.169551 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.170076 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.170610 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.171363 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:25.172207 #3048] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:25.172698 #3048] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:25.173322 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.173800 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.174277 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.174786 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.175259 #3048] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:25.175489 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.175879 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.176337 #3048] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:25.176588 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.177057 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:25.177570 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.178201 #3048] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:25.179211 #3048] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.179674 #3048] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:25.180235 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.180666 #3048] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:25.181388 #3048] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.181734 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:25.182282 #3048] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:25.182788 #3048] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:25.183243 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.183761 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.184244 #3048] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:25.184486 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.184912 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:25.185448 #3048] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:25.186205 #3048] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:25.186735 #3048] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:25.187091 #3048] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:25.187575 #3048] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:25.188194 #3048] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:25.188567 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:25.188976 #3048] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:25.189400 #3048] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.246550 #3055] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:03:26.247406 #3055] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:26.248366 #3055] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:26.250308 #3055] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:26.251186 #3055] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:26.251915 #3055] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:26.252795 #3055] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:26.253515 #3055] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:26.295625 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.297392 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.299886 #3055] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:03:26.303606 #3055] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:26.304420 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.305056 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.305551 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.307557 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.308190 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.314555 #3055] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:26.315295 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.316049 #3055] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:26.316247 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.320321 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.320923 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:26.321532 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.321673 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.322507 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.322860 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:26.323424 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.323536 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.323786 #3055] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:26.324507 #3055] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:26.324893 #3055] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:26.326363 #3055] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.326850 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.327363 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.327914 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.328233 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.328711 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.329395 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.331070 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.331756 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:26.332384 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.333184 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.333880 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:26.334483 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.334772 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.335255 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.335858 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.336109 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.336542 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.337086 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.337650 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.339106 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:26.339532 #3055] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:26.339965 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:26.340648 #3055] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:26.340933 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.341572 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.342118 #3055] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:26.342572 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:26.343198 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.344598 #3055] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:26.345203 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.345777 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.346349 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.346652 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.347107 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.347638 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.347917 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.348407 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.348924 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.349578 #3055] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:26.350045 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.350590 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.350748 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.351814 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.352263 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:26.352926 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.353081 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.353933 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.354337 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:26.354975 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.355299 #3055] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:26.356479 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:26.357144 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.357675 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.358305 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.358611 #3055] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:26.359051 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.359625 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.359988 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.360561 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.361053 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.362118 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.362689 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.363289 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.363479 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.364583 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.365038 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:26.365588 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.365740 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.366589 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.366960 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:26.367487 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.367820 #3055] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:26.368939 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:26.370376 #3055] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:26.371221 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.371727 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.372283 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.372523 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.372891 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.373462 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.373678 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.374107 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.374657 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.375391 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.375815 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.376281 #3055] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:26.376935 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:26.377556 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.377946 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.378360 #3055] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:26.379569 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:26.380249 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.380784 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.381384 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.381639 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.382031 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.382612 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.382842 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.383255 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.383798 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.384363 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.384772 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.385353 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.385509 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.386581 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.387010 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:26.387649 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.387836 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.388881 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.389351 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:26.389982 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.390717 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.391310 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.391808 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.392337 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.392607 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.393015 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.393642 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.394010 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.394555 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.395212 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.395879 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.396363 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.396935 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.397092 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.398160 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.398612 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:26.399139 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.399296 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.400189 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.400577 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:26.401204 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.401684 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.402188 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.402646 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.403112 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.403330 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.403707 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.404231 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.404518 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.404955 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.405452 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.406140 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.406597 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.407115 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.407360 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.407778 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.408262 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.409010 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.409834 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.410238 #3055] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.411216 #3055] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:26.411859 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.412281 #3055] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:26.412854 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.413299 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.413820 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.414394 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.414645 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.415048 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.415537 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.415776 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.416214 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.416713 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.417035 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.417695 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.418225 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.418621 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.419108 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.419611 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.419847 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.420234 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.420666 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.420894 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.421322 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.421752 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.422256 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.422943 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:26.423852 #3055] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:26.424304 #3055] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:26.424886 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.425338 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.425785 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.426232 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.426704 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.426948 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.427326 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.427789 #3055] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:26.428073 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.428808 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:26.429405 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.429993 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.431204 #3055] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.431682 #3055] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:26.432193 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.432543 #3055] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:26.433197 #3055] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.433517 #3055] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:26.434030 #3055] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:26.434493 #3055] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:26.434930 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.435376 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.435955 #3055] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:26.436249 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.436739 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:26.437399 #3055] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:26.438194 #3055] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:26.438750 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:26.439184 #3055] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:26.439742 #3055] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:26.440535 #3055] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:26.440917 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:26.441359 #3055] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:26.441818 #3055] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.489593 #3059] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:27.490406 #3059] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:27.491388 #3059] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:27.493299 #3059] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:27.494177 #3059] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:27.494903 #3059] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:27.495873 #3059] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:27.496573 #3059] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:27.539945 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.541701 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.544251 #3059] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:03:27.546358 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.546994 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.547642 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.548004 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.549477 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.550150 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.555997 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.556661 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.557362 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.557546 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.562329 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.563267 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:27.564004 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.564205 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.565335 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.565750 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:27.566287 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.566405 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.566672 #3059] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:27.567538 #3059] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:27.568150 #3059] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:27.569676 #3059] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.570139 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.570621 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.571192 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.571426 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.571808 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.572393 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.573721 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.574232 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:27.574742 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.575281 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.575759 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:27.576269 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.576507 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.576966 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.577490 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.577740 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.578275 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.578888 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.579617 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.581243 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:27.581708 #3059] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:27.582134 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:27.582646 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.582892 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.583457 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.583957 #3059] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:27.584363 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:27.584901 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.586074 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:27.586563 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.586988 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.587539 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.587802 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.588211 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.588828 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.589094 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.589503 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.590107 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.590806 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.591359 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.592046 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.592206 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.593182 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.593699 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:27.594270 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.594444 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.595420 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.595845 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:27.596519 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.596857 #3059] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:27.598086 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:27.598746 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.599237 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.599849 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.600104 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.600517 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.601061 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.601301 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.601727 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.602256 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.602800 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.603212 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.603890 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.604052 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.605082 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.605498 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:27.606110 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.606240 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.606992 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.607337 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:27.607900 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.608233 #3059] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:27.609316 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:27.610734 #3059] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:27.611615 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.612283 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.612881 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.613139 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.613546 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.614142 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.614376 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.614833 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.615448 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.616176 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.616591 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.617067 #3059] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:27.617563 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:27.618136 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.618512 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.618903 #3059] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:27.619822 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:27.620291 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.620775 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.621327 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.621548 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.621922 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.622460 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.622694 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.623111 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.623619 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.624158 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.624558 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.625092 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.625265 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.626231 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.626696 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:27.627243 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.627398 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.628394 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.628848 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:27.629493 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.630115 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.630640 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.631063 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.631643 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.631996 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.632482 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.632987 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.633234 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.633669 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.634262 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.634846 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.635251 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.635866 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.636033 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.637028 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.637449 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:27.638035 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.638159 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.638914 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.639256 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:27.639817 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.640250 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.640708 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.641118 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.641645 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.641857 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.642213 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.642803 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.643110 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.643530 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.644111 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.644729 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.645126 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.645677 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.645991 #3059] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:27.646367 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.646882 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.647673 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.648579 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.648950 #3059] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.649943 #3059] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:27.650614 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.650972 #3059] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:27.651484 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.651896 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.652306 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.652868 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.653076 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.653432 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.653993 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.654248 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.654673 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.655218 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.655483 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.656074 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.656660 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.657108 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.657645 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.658309 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.658558 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.659004 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.659540 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.659924 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.660701 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.661334 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.661925 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.662742 #3059] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:27.663736 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:27.664288 #3059] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:27.665002 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.665563 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.666067 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.666577 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.667183 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.667408 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.667771 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.668337 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.668607 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.669035 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:27.669623 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.670119 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.671099 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.671606 #3059] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:27.672204 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.672595 #3059] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:27.673224 #3059] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.673518 #3059] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:27.674017 #3059] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:27.674474 #3059] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:27.674870 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.675297 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.675814 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.676049 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.676430 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:27.677001 #3059] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:27.677774 #3059] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:27.678356 #3059] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:27.678823 #3059] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:27.679291 #3059] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:27.679932 #3059] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:27.680357 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:27.680758 #3059] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:27.681196 #3059] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.742975 #3063] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:03:28.744292 #3063] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:28.745915 #3063] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:28.748594 #3063] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:28.749561 #3063] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:28.750309 #3063] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:28.751326 #3063] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:28.752375 #3063] DEBUG -- :  (0.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:28.795919 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.797710 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.800099 #3063] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:03:28.802577 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.803400 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.804077 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.804571 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.806414 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.807025 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.813063 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.813681 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.814385 #3063] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:28.814560 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.818960 #3063] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.819768 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:28.820442 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.820624 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.821680 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.822125 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:28.822763 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.822897 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.823184 #3063] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:28.824041 #3063] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:28.824518 #3063] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:28.826302 #3063] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.826838 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.827421 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.828037 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.828332 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.828852 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.829410 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.830772 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.831315 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:28.831759 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.832402 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.832997 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:28.833456 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.833736 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.834247 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.834768 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.835068 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.835548 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.836061 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.836822 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.838739 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:28.839257 #3063] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:28.839759 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:28.840418 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.840782 #3063] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:28.841559 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.842244 #3063] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:28.842815 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:28.843518 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.845267 #3063] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:28.845975 #3063] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:28.846597 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.847421 #3063] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:28.847932 #3063] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:28.848475 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.849043 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.849331 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.850017 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.850619 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.851390 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.851942 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.852590 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.852742 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.854100 #3063] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.854613 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:28.859078 #3063] DEBUG -- :  (4.3ms) commit transaction D, [2015-08-02T09:03:28.859330 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.860612 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.861140 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:28.863703 #3063] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:03:28.864214 #3063] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:28.865821 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:28.866663 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.867331 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.871641 #3063] DEBUG -- :  (4.1ms) commit transaction D, [2015-08-02T09:03:28.872023 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.872610 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.873369 #3063] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:28.873898 #3063] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:28.874704 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.875312 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.876121 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.876682 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.877276 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.877458 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.878744 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.879431 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:28.880180 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.880349 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.881410 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.882012 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:28.882540 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.882912 #3063] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:28.884119 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:28.885677 #3063] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:28.886565 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.887072 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.887710 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.887934 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.888296 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.888823 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.889034 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.889435 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.889947 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.890718 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.891193 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.891666 #3063] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:28.892142 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:28.892708 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.893231 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.893748 #3063] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:28.894738 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:28.895370 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.896055 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.896722 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.897026 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.897526 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.898119 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.898439 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.899025 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.899633 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.900387 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.900923 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.901489 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.901641 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.902833 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.903326 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:28.903870 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.904031 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.904885 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.905284 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:28.905871 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.906523 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.907055 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.907528 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.908116 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.908354 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.908716 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.909272 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.909491 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.909894 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.910462 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.911020 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.911422 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.911939 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.912084 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.913022 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.913449 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:28.913974 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.914119 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.915031 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.915410 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:28.915998 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.916470 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.916982 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.917429 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.918042 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.918309 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.918715 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.919199 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.919481 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.919894 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.920503 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.921247 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.921765 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.922231 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.922447 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.922831 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.923304 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.924089 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.924930 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.925324 #3063] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.926267 #3063] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:28.926828 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.927249 #3063] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:28.927896 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.928525 #3063] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:28.929165 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.929792 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.930050 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.930448 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.930918 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.931195 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.931669 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.932223 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.932582 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.933304 #3063] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.933803 #3063] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:28.934193 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.934707 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.935262 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.935484 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.935863 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.936370 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.936632 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.937063 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.937549 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.938055 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.938721 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:28.939622 #3063] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:28.940094 #3063] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:28.940705 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.941208 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.941694 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.942159 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.942699 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.942969 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.943376 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.943889 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.944144 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.944581 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:28.945092 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.945558 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.946474 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.946903 #3063] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:28.947449 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.947962 #3063] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:28.948837 #3063] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.949278 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:28.950005 #3063] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:28.950655 #3063] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:28.951302 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.951820 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.952461 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.952714 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.953130 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:28.953696 #3063] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:28.954352 #3063] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:28.954827 #3063] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:28.955188 #3063] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:28.955673 #3063] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:28.956286 #3063] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:28.956672 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:28.957110 #3063] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:28.957533 #3063] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.016530 #3068] DEBUG -- :  (2.3ms) DROP TABLE "authors" D, [2015-08-02T09:03:30.017225 #3068] DEBUG -- :  (0.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:30.018215 #3068] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:30.020381 #3068] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:30.021322 #3068] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:30.022050 #3068] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:30.022950 #3068] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:30.023623 #3068] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:30.068164 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.070148 #3068] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.072919 #3068] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:03:30.076709 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.077567 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.078304 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.078856 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.081011 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.081793 #3068] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:30.088399 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.089085 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.089709 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.089853 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.094342 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.095120 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:30.095777 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.096001 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.097095 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.097603 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:30.098250 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.098377 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.098649 #3068] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:30.099567 #3068] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:30.100041 #3068] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:30.101776 #3068] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.102318 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.102850 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.103496 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.103824 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.104350 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.104889 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.106358 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.106952 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:30.107739 #3068] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:30.108934 #3068] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:30.109815 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:30.110466 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.110747 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.111341 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.111885 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.112205 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.112776 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.113409 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.114070 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.115766 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:30.116312 #3068] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:30.116824 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:30.117410 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.117717 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.118388 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.118996 #3068] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:30.119447 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:30.119977 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.121259 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:30.121747 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.122174 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.122806 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.123045 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.123407 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.123969 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.124203 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.124605 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.125137 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.125636 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.126032 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.126618 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.126782 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.127836 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.128247 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:30.128896 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.129036 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.129843 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.130256 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:30.130890 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.131204 #3068] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:30.132370 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:30.133005 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.133459 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.134008 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.134220 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.134574 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.135132 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.135361 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.135765 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.136328 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.136900 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.137364 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.137944 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.138116 #3068] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:30.139079 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.139505 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:30.140043 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.140184 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.141001 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.141374 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:30.141943 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.142268 #3068] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:30.143396 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:30.144860 #3068] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:30.145963 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.146556 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.147196 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.147410 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.147777 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.148296 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.148485 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.148864 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.149352 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.149990 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.150382 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.150819 #3068] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:30.151409 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:30.151972 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.152460 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.152951 #3068] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:30.154061 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:30.154599 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.155153 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.155822 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.156088 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.156538 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.157149 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.157407 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.157879 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.158499 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.159097 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.159559 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.160136 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.160286 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.161271 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.161680 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:30.162168 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.162350 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.163307 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.163719 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:30.164285 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.164906 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.165420 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.165847 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.166399 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.166626 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.166987 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.167577 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.167810 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.168219 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.168756 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.169282 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.169681 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.170222 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.170375 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.171446 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.171968 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:30.172553 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.172741 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.174230 #3068] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.174825 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:30.175566 #3068] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:30.176130 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.176721 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.177225 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.177775 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.178055 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.178555 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.179120 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.179446 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.179950 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.180538 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.181248 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.181762 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.182292 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.182556 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.182978 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.183463 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.184175 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.184994 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.185350 #3068] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.186244 #3068] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:30.186917 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.187253 #3068] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:30.187759 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.188228 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.188772 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.189363 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.189665 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.190110 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.190575 #3068] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:30.190825 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.191291 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.191834 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.192156 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.192815 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.193351 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.193937 #3068] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:30.194575 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.195115 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.195368 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.195900 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.196422 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.196675 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.197139 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.197631 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.198154 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.198854 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:30.199752 #3068] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:30.200216 #3068] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:30.200841 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.201263 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.201701 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.202173 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.202699 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.202981 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.203440 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.204005 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.204304 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.204826 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:30.205390 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.205940 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.206978 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.207431 #3068] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:30.208208 #3068] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:30.208988 #3068] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:30.210150 #3068] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.210593 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:30.211290 #3068] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:30.212013 #3068] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:30.212582 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.213214 #3068] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.213823 #3068] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:30.214087 #3068] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:30.214549 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:30.215273 #3068] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:30.216575 #3068] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:30.217689 #3068] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:30.218323 #3068] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:30.218998 #3068] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:30.219774 #3068] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:30.220267 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:30.220822 #3068] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:30.221372 #3068] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.276863 #3075] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:31.278167 #3075] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:31.279767 #3075] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:31.282364 #3075] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:31.283338 #3075] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:31.284066 #3075] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:31.284984 #3075] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:31.285680 #3075] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:31.331126 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.332968 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.335798 #3075] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:03:31.338578 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.339627 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.340312 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.340774 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.342787 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.343444 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.350117 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.350847 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.351562 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.351714 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.357262 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.357977 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:31.358662 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.358836 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.359797 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.360196 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:31.360815 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.360948 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.361292 #3075] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:31.362164 #3075] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:31.362647 #3075] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:31.364647 #3075] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.365228 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.365770 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.366342 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.366623 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.367069 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.367598 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.369089 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.369624 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:31.370375 #3075] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:31.371616 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.372452 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:31.373078 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.373407 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.374025 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.374680 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.374978 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.375532 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.376167 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.376804 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.378729 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:31.379246 #3075] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:31.379710 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:31.380358 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.380699 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.381474 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.382125 #3075] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:31.382655 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:31.383276 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.384639 #3075] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:31.385148 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.385620 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.386415 #3075] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:31.386889 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.387683 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.388400 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.388698 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.389250 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.389892 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.390443 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.390871 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.391499 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.391670 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.392790 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.393258 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:31.393948 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.394116 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.395031 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.395470 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:31.396109 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.396516 #3075] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:31.397964 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:31.398718 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.399280 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.399961 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.400285 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.400744 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.401339 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.401648 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.402197 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.402836 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.403557 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.404081 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.404667 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.404845 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.405926 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.406421 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:31.407035 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.407200 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.408083 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.408489 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:31.409056 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.409385 #3075] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:31.410535 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:31.412272 #3075] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:31.413240 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.413761 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.414328 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.414550 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.414981 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.415533 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.415723 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.416107 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.416658 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.417330 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.417733 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.418184 #3075] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:31.418629 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:31.419274 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.419750 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.420237 #3075] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:31.421366 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:31.421879 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.422328 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.422950 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.423223 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.423679 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.424213 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.424488 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.424980 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.425516 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.426114 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.426565 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.427252 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.427546 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.428797 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.429356 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:31.430041 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.430207 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.431083 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.431487 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:31.432072 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.432878 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.433487 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.434053 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.434728 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.435138 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.435980 #3075] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.436761 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.437110 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.437761 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.438439 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.439352 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.440080 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.440712 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.440897 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.442072 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.442543 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:31.443183 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.443402 #3075] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:31.444519 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.444986 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:31.445732 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.446371 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.446932 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.447465 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.448061 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.448312 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.448736 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.449355 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.449635 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.450073 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.450578 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.451201 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.451618 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.452169 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.452370 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.452723 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.453320 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.454005 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.454744 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.455102 #3075] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.456015 #3075] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:31.456778 #3075] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:31.457229 #3075] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:31.457833 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.458248 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.458693 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.459143 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.459371 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.459742 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.460175 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.460428 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.460851 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.461325 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.461610 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.462325 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.462954 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.463340 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.463863 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.464369 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.464615 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.465048 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.465561 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.465850 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.466467 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.466958 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.467479 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.468175 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:31.469065 #3075] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:31.469524 #3075] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:31.470043 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.470464 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.470872 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.471301 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.471761 #3075] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:31.471987 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.472356 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.472909 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.473184 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.473640 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:31.474199 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.474794 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.475860 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.476307 #3075] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:31.476929 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.477303 #3075] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:31.477933 #3075] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.478259 #3075] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:31.478861 #3075] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:31.479395 #3075] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:31.479815 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.480279 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.480912 #3075] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:31.481245 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.481784 #3075] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:31.482377 #3075] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:31.483094 #3075] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:31.483581 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:31.483950 #3075] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:31.484425 #3075] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:31.485126 #3075] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:31.485507 #3075] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:31.485907 #3075] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:31.486300 #3075] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.548537 #3081] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:32.549815 #3081] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:32.551392 #3081] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:32.553677 #3081] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:32.554674 #3081] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:32.555401 #3081] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:32.556335 #3081] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:32.556981 #3081] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:32.603433 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.605260 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.608045 #3081] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:03:32.611580 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.612443 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.613266 #3081] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:32.613752 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.615650 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.616276 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.622962 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.623614 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.624253 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.624427 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.628389 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.629040 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:32.629728 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.629908 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.630882 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.631319 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:32.631961 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.632085 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.632343 #3081] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:32.633121 #3081] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:32.633503 #3081] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:32.634960 #3081] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.635419 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.635876 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.636483 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.636731 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.637143 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.637722 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.639046 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.639680 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:32.640254 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.640872 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.641420 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:32.642015 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.642299 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.642779 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.643318 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.643579 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.644066 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.644669 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.645244 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.646898 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:32.647310 #3081] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:32.647723 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:32.648294 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.648590 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.649148 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.649647 #3081] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:32.650065 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:32.650578 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.651776 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:32.652251 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.652683 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.653268 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.653510 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.653892 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.654478 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.654746 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.655175 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.655709 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.656261 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.656678 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.657211 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.657341 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.658241 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.658636 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:32.659221 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.659356 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.660086 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.660451 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:32.661029 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.661348 #3081] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:32.662723 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:32.663363 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.663882 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.664508 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.664758 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.665175 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.665751 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.666010 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.666495 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.667049 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.667650 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.668080 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.668627 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.668794 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.669860 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.670331 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:32.670948 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.671144 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.672039 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.672444 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:32.673006 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.673359 #3081] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:32.674521 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:32.677850 #3081] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:32.678968 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.679617 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.680120 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.680371 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.680826 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.681374 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.681584 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.681988 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.682449 #3081] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:32.683125 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.683569 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.684036 #3081] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:32.684592 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:32.685279 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.685681 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.686059 #3081] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:32.686958 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:32.687451 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.687965 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.688483 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.688713 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.689126 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.689663 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.689895 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.690318 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.690933 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.691499 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.691908 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.692458 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.692588 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.693525 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.693961 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:32.694569 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.694718 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.695569 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.695957 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:32.696508 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.697125 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.697628 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.698056 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.698655 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.698923 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.699289 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.699838 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.700083 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.700551 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.701136 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.701701 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.702122 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.702661 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.702799 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.703657 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.704054 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:32.704639 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.704788 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.705516 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.705877 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:32.706462 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.706937 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.707383 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.708072 #3081] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.713750 #3081] DEBUG -- :  (5.5ms) commit transaction D, [2015-08-02T09:03:32.714225 #3081] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:32.714884 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.719211 #3081] DEBUG -- :  (4.1ms) commit transaction D, [2015-08-02T09:03:32.719755 #3081] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:32.720461 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.727177 #3081] DEBUG -- :  (6.5ms) commit transaction D, [2015-08-02T09:03:32.728677 #3081] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:32.729408 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.730111 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.730433 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.731025 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.731665 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.732620 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.733787 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.734247 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.735367 #3081] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:32.736136 #3081] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:32.736601 #3081] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:32.737215 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.737665 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.738141 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.738753 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.739071 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.739628 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.740272 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.740591 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.741116 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.741689 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.742032 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.742762 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.743378 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.743806 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.744312 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.744848 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.745076 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.745474 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.745988 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.746223 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.746670 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.747221 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.747860 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.748712 #3081] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:32.749735 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:32.750261 #3081] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:32.750956 #3081] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:32.751389 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.751820 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.752234 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.752804 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.753029 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.753385 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.753965 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.754215 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.754639 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:32.755195 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.755658 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.756523 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.756936 #3081] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:32.757535 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.757860 #3081] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:32.758483 #3081] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.758799 #3081] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:32.759314 #3081] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:32.759803 #3081] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:32.760210 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.760637 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.761210 #3081] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:32.761437 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.761917 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:32.762515 #3081] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:32.763240 #3081] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:32.763816 #3081] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:32.764200 #3081] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:32.764755 #3081] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:32.765439 #3081] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:32.765791 #3081] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:32.766225 #3081] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:32.766625 #3081] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.833393 #3085] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:03:33.834193 #3085] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:33.835113 #3085] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:03:33.836990 #3085] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:33.837936 #3085] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:03:33.838631 #3085] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:33.839548 #3085] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:33.840339 #3085] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:33.883832 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.885637 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.888430 #3085] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:03:33.892309 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.893139 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.893801 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.894228 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.896122 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.896747 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.903212 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.903996 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.904670 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.904832 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.910478 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.911203 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:33.912004 #3085] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:33.912303 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.914111 #3085] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.914934 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:33.915845 #3085] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:33.916119 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.916613 #3085] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:33.917617 #3085] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:33.918151 #3085] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:33.920090 #3085] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:33.920663 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.921270 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.921962 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.922250 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.922725 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.923323 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.924850 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.925466 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:33.926031 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.926689 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.927250 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:33.927778 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.928029 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.928498 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.928993 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.929251 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.929764 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.930338 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.930969 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.932552 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:33.933019 #3085] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:33.933434 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:33.934031 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.934316 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.934904 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.935430 #3085] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:33.935865 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:33.936420 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.938022 #3085] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:33.938602 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.939143 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.939768 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.940030 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.940474 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.941064 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.941335 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.941777 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.942333 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.942868 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.943315 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.943891 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.944048 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.945052 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.945470 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:33.946027 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.946158 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.946880 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.947219 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:33.947822 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.948132 #3085] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:33.949239 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:33.949821 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.950261 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.950860 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.951081 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.951443 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.952036 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.952262 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.952661 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.953213 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.953727 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.954135 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.954678 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.954875 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.956017 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.956453 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:33.957034 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.957188 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.958012 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.958404 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:33.958973 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.959317 #3085] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:33.960392 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:33.961918 #3085] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:33.962979 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.963689 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.964333 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.964607 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.965015 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.965463 #3085] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:33.965677 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.966083 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.966586 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.967406 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.967879 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.968366 #3085] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:33.968836 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:33.969388 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.969728 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.970064 #3085] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:33.970937 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:33.971389 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.971831 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.972384 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.972591 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.972946 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.973507 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.973810 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.974371 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.974955 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.975688 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.976198 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.976795 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.976970 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.978263 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.978845 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:33.979539 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.979761 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.981123 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.981686 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:33.982369 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.983150 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:33.983738 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.984272 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.984883 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.985189 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.985653 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.986244 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.986522 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.987017 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:33.987645 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.988378 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.988884 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.989459 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:33.989633 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.990802 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.991286 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:33.991960 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.992129 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:33.993075 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:33.993513 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:33.994157 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.995151 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:33.996063 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.997035 #3085] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:33.997808 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:33.998224 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:33.999018 #3085] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:33.999803 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:34.000130 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.000630 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.001156 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.001877 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.002392 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.002924 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.003128 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.003505 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:34.004000 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.004699 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.005476 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.005822 #3085] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:34.006921 #3085] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:34.007622 #3085] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:34.007985 #3085] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:34.008495 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:34.008868 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.009278 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.009863 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:34.010120 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.010518 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:34.011064 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.011313 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.011746 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:34.012217 #3085] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:34.012519 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.013199 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:34.013799 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.014412 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:34.014978 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.015546 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.015887 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:34.016278 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:34.016761 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.016993 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.017430 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:34.017851 #3085] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:34.018316 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.018977 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:34.019843 #3085] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:34.020300 #3085] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:34.020884 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:34.021363 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:34.021825 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.022319 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.022965 #3085] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:34.023193 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.023586 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:34.024125 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.024420 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.024960 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:34.025530 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.026110 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.027229 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:34.027760 #3085] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:34.028288 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.028662 #3085] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:34.029365 #3085] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:34.029729 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:34.030304 #3085] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:34.030784 #3085] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:34.031311 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.031844 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.032596 #3085] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:34.033166 #3085] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:34.034032 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:34.034619 #3085] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:34.035511 #3085] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:34.036210 #3085] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:34.036691 #3085] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:34.037345 #3085] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:34.038170 #3085] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:34.038643 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:34.039147 #3085] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:34.039626 #3085] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.104121 #3089] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:35.104900 #3089] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:35.105871 #3089] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:35.107798 #3089] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:35.108729 #3089] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:35.109436 #3089] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:35.110325 #3089] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:35.111007 #3089] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:35.155465 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.157453 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.160068 #3089] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:03:35.162732 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.163660 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.164311 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.164777 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.166740 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.167381 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.174077 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.174893 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.175547 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.175710 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.181478 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.182152 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:35.182743 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.182904 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.183771 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.184193 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:35.184815 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.184938 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.185208 #3089] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:35.186141 #3089] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:35.186595 #3089] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:35.188509 #3089] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.189161 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.189705 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.190452 #3089] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:35.191063 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.192038 #3089] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.192984 #3089] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:35.195077 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.195856 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:35.196497 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.197380 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.198208 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:35.199061 #3089] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:35.199667 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.200753 #3089] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.201392 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.201921 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.202698 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.203386 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.204107 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.206220 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:35.206790 #3089] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:35.207348 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:35.207981 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.208283 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.209032 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.209666 #3089] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:35.210176 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:35.210816 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.212279 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:35.212763 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.213253 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.213809 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.214037 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.214435 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.215007 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.215243 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.215687 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.216187 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.216685 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.217137 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.217652 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.217849 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.219154 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.219772 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:35.220469 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.220663 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.221532 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.221991 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:35.222613 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.223260 #3089] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:35.224915 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:35.225770 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.226500 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.227182 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.227490 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.228036 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.228635 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.229027 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.229753 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.230370 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.231112 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.231710 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.232432 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.232643 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.233977 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.234610 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:35.235409 #3089] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:35.235755 #3089] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:35.237345 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.237911 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:35.238529 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.238986 #3089] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:35.240473 #3089] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:35.242460 #3089] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:35.243421 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.244054 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.244623 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.244867 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.245313 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.245801 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.246023 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.246510 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.246966 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.247833 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.248438 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.249119 #3089] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:35.249780 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:35.250401 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.250818 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.251220 #3089] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:35.252165 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:35.252618 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.253124 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.253704 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.253931 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.254324 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.254829 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.255065 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.255509 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.256079 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.256609 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.257043 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.257549 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.257677 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.258579 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.259015 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:35.259676 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.259809 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.260575 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.260971 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:35.261552 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.262181 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.262642 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.263090 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.263616 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.263878 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.264334 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.264855 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.265096 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.265546 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.266108 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.266667 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.267134 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.267700 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.267830 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.268775 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.269233 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:35.269861 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.269997 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.270778 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.271216 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:35.271857 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.272448 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.272966 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.273494 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.274146 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.274373 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.274791 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.275278 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.275548 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.275987 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.276460 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.277127 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.277644 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.278095 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.278303 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.278755 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.279339 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.280352 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.281398 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.281844 #3089] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.282902 #3089] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:35.283571 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.284067 #3089] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:35.284728 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.285163 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.285711 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.286270 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.286554 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.287047 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.287582 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.287891 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.288483 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.288980 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.289294 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.289938 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.290451 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.290786 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.291283 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.291745 #3089] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:35.291957 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.292391 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.292975 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.293215 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.293672 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.294272 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.294753 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.295455 #3089] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:35.296533 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:35.297028 #3089] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:35.297770 #3089] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:35.298263 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.298710 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.299197 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.299783 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.300022 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.300421 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.301012 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.301241 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.301703 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:35.302273 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.302795 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.303770 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.304227 #3089] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:35.304853 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.305235 #3089] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:35.305914 #3089] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.306274 #3089] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:35.306830 #3089] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:35.307388 #3089] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:35.307800 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.308246 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.308867 #3089] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:35.309089 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.309486 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:35.310072 #3089] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:35.310721 #3089] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:35.311278 #3089] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:35.311709 #3089] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:35.312256 #3089] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:35.312983 #3089] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:35.313404 #3089] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:35.313888 #3089] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:35.314356 #3089] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.379697 #3096] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:36.380531 #3096] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:03:36.381482 #3096] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:03:36.383342 #3096] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:36.384242 #3096] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:36.384945 #3096] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:03:36.385762 #3096] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:36.386405 #3096] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:36.429293 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.431135 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.433616 #3096] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:03:36.435991 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.436716 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.437359 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.437712 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.439232 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.439962 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.446369 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.447128 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.447765 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.447972 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.454211 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.454968 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:03:36.455723 #3096] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:36.455912 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.456998 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.457549 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:03:36.458253 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.458409 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.458754 #3096] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:36.459780 #3096] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:36.460322 #3096] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:36.462183 #3096] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.462737 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.463390 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.463985 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.464239 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.464704 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.465175 #3096] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:36.466528 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.467095 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:36.467535 #3096] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:36.468172 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.468749 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:03:36.469264 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.469597 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.470205 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.470698 #3096] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:36.470954 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.471433 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.472040 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.472794 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.474959 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:36.475510 #3096] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:36.476059 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:03:36.476677 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.476993 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.477733 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.478341 #3096] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:36.478890 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:03:36.479527 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.481157 #3096] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:03:36.481721 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.482275 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.482814 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.483037 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.483432 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.484003 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.484222 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.484663 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.485254 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.485769 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.486212 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.486785 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.486918 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.487823 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.488246 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:03:36.488864 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.489020 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.489858 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.490260 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:03:36.490833 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.491209 #3096] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:36.492396 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:36.493012 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.493501 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.494089 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.494329 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.494779 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.495402 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.495620 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.496101 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.496708 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.497337 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.497852 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.498408 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.498553 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.499614 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.500083 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:03:36.500711 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.500850 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.501699 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.502142 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:03:36.502706 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.503058 #3096] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:36.504201 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:36.505701 #3096] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:36.506482 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.506967 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.507547 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.507759 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.508148 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.508718 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.508922 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.509353 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.509918 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.510584 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.511044 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.511624 #3096] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:36.512261 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:03:36.512981 #3096] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:36.513417 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.513825 #3096] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:36.514764 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:36.515244 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.515774 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.516383 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.516590 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.516998 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.517567 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.517796 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.518243 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.518814 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.519374 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.519820 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.520333 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.520453 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.521391 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.521819 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:03:36.522428 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.522596 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.523429 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.523832 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:03:36.524383 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.525168 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.525752 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.526358 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.526994 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.527419 #3096] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:36.527982 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.528583 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.528826 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.529366 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.529868 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.530589 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.531180 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.531771 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.531956 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.533049 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.533577 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:03:36.534268 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.534419 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.535360 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.535828 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:03:36.536368 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.536936 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.537455 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.537974 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.538528 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.538750 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.539158 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.539655 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.539941 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.540401 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.540909 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.541530 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.541973 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.542429 #3096] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:36.542625 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.543005 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.543483 #3096] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:36.544176 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.545104 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.545592 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.546833 #3096] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:03:36.547712 #3096] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:36.548159 #3096] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:36.548792 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.549188 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.549687 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.550255 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.550484 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.550880 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.551398 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.551628 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.552085 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.552620 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.552868 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.553459 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.553992 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.554285 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.554725 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.555240 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.555442 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.555816 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.556353 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.556554 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.556984 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.557524 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.557963 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.558642 #3096] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:03:36.559536 #3096] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:36.560016 #3096] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:03:36.560674 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.561121 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.561520 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.562048 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.562620 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.562910 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.563412 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.564018 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.564282 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.564723 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:03:36.565297 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.565800 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.566813 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.567354 #3096] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:03:36.567979 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.568493 #3096] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:36.569245 #3096] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.569626 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:36.570223 #3096] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:36.570743 #3096] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:36.571193 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.571708 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.572352 #3096] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:36.572622 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.573103 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:36.573660 #3096] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:36.574258 #3096] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:36.574767 #3096] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:03:36.575126 #3096] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:36.575637 #3096] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:03:36.576397 #3096] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:36.576787 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:36.577209 #3096] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:36.577704 #3096] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.649576 #3100] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:03:37.650847 #3100] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:03:37.652468 #3100] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:37.655345 #3100] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:37.656328 #3100] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:37.657055 #3100] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:03:37.657871 #3100] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:37.658610 #3100] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:37.693343 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.695094 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.695933 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.698019 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.698593 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.699261 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.700817 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.701358 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.701997 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.708552 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.709191 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.709997 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.710234 #3100] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:37.714816 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.715779 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:03:37.716558 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.716718 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.717906 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.718476 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:03:37.719101 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.719218 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.719592 #3100] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:37.721025 #3100] DEBUG -- : SpecialTag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:37.721696 #3100] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:37.725507 #3100] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.726268 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.726982 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.727739 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.728122 #3100] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:37.728619 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.729320 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.730942 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.731616 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:37.732142 #3100] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:37.733060 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.733786 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:37.734493 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.734977 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.735649 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:37.736258 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.736621 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.737184 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:03:37.737892 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.738656 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.740919 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:37.741696 #3100] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:37.742181 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:03:37.743046 #3100] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:37.743830 #3100] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:37.745857 #3100] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.747135 #3100] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:37.747800 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:03:37.748613 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.750741 #3100] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:03:37.751428 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.752027 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.752735 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.753047 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.753499 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.754179 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.754493 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.754965 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.755600 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.756296 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.756766 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.757380 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.757516 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.758629 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.759150 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:03:37.759782 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.759913 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.765297 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.765901 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:03:37.766490 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.766881 #3100] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:37.768626 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:37.769459 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.770063 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.770708 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.771005 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.771455 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.771989 #3100] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:37.772330 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.772826 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.773380 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.774101 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.774594 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.775192 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.775350 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.776588 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.777171 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:03:37.777780 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.777946 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.779291 #3100] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.779917 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:03:37.780480 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.780923 #3100] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:37.782389 #3100] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:37.784172 #3100] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:37.785203 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.785764 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.786452 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.786771 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.787267 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.787984 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.788331 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.788797 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.789388 #3100] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:37.790294 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.790806 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.791375 #3100] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:37.791865 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:03:37.792495 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.793047 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.793503 #3100] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:37.794714 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:37.795323 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.795911 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.796542 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.796851 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.797299 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.797897 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.798200 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.798628 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.799216 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.799924 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.800371 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.801015 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.801172 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.802301 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.802862 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:03:37.803433 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.803545 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.804510 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.805002 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:03:37.805609 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.806296 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.806912 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.807414 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.808071 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.808318 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.808720 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.809341 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.809613 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.810048 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.810697 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.811318 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.811757 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.812378 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.812518 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.814097 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.814705 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:03:37.815346 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.815484 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.816598 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.817128 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:03:37.817742 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.818273 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.818893 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.819324 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.819927 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.820199 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.820609 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.821278 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.821632 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.822101 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.822876 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.824861 #3100] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:37.825863 #3100] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.826742 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.827109 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.827609 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.828240 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.829327 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.830699 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.831276 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:03:37.832499 #3100] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:03:37.833382 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.834013 #3100] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:37.834787 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.835334 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.835862 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.836592 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.836838 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.837243 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.837847 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.838249 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.838907 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.839659 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.839977 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.840784 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.841424 #3100] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:37.841896 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.842402 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.843012 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.843288 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.843733 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.844328 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.844666 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.845247 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.845815 #3100] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:37.846375 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.847195 #3100] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:03:37.848398 #3100] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:37.848997 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:03:37.849810 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.850324 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.850876 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.851356 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.851952 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.852329 #3100] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:37.852705 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.853317 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.853658 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.854161 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:37.854779 #3100] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:37.855315 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.856484 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:37.857046 #3100] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:03:37.857739 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.858118 #3100] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:37.858814 #3100] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.859143 #3100] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:37.859882 #3100] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:37.860355 #3100] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:37.860851 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.861298 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:37.861960 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.862263 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.862769 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:37.863492 #3100] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:37.864551 #3100] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:37.865204 #3100] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:37.865707 #3100] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:03:37.866349 #3100] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:03:37.867091 #3100] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:37.867742 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:37.868389 #3100] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:37.868880 #3100] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:38.951912 #3104] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:03:38.953195 #3104] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:03:38.954755 #3104] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:38.957540 #3104] DEBUG -- :  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:38.958972 #3104] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:03:38.959812 #3104] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:03:38.960789 #3104] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:03:38.961507 #3104] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:39.011027 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.013149 #3104] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.015642 #3104] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:03:39.017840 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.018518 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.019185 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.021256 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.022006 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.022645 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.030529 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.031226 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.031942 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.032086 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.035933 #3104] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.036754 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:03:39.037524 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.037684 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.038713 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.039169 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:03:39.039901 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.040018 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.040370 #3104] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:39.041259 #3104] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:39.041707 #3104] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:39.044806 #3104] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.045338 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.045970 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.046793 #3104] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:39.047137 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.047655 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.048259 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.049511 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.049978 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:39.050505 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.051052 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.051547 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:39.052231 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.052514 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.053057 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:39.053634 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.053906 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.054403 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:03:39.055027 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.055627 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.057379 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:39.058063 #3104] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:39.058517 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:03:39.059201 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.059619 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.060312 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.061240 #3104] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:39.061820 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:03:39.062602 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.064457 #3104] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:03:39.065015 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.065569 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.066234 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.066585 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.067141 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.067855 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.068218 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.068866 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.069588 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.070267 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.070758 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.071406 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.071562 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.072788 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.073370 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:03:39.074079 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.074212 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.075159 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.075657 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:03:39.076276 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.076654 #3104] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:39.078442 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:39.079154 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.079915 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.080560 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.080862 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.081342 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.081854 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.082125 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.082659 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.083358 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.084000 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.084444 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.085079 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.085232 #3104] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:39.086230 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.086713 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:03:39.087428 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.087658 #3104] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:39.089556 #3104] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.090511 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:03:39.091325 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.091669 #3104] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:39.093015 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:39.094645 #3104] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:39.095574 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.096301 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.097016 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.097288 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.097689 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.098144 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.098352 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.098764 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.099230 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.099947 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.100381 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.100890 #3104] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:39.101343 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:03:39.101928 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.102576 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.103033 #3104] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:39.104337 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:39.104949 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.105579 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.106156 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.106431 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.106864 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.107467 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.107725 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.108203 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.108810 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.109491 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.110009 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.110703 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.110864 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.112038 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.112554 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:03:39.113203 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.113351 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.114372 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.114858 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:03:39.115573 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.116275 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.116832 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.117324 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.117960 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.118201 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.118592 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.119252 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.119494 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.119940 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.120569 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.121182 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.121641 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.122191 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.122430 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.123501 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.124002 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:03:39.124821 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.124984 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.126155 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.126767 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:03:39.127497 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.128063 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.128619 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.129173 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.129838 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.130202 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.130862 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.131502 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.131891 #3104] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:39.132435 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.133043 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.133817 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.134315 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.134902 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.135138 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.135545 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.136043 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.136962 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.137827 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.138284 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:03:39.139323 #3104] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:03:39.140117 #3104] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:39.140647 #3104] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:39.141320 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.141709 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.142156 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.142696 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.142947 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.143359 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.143858 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.144142 #3104] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:39.144633 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.145141 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.145451 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.146254 #3104] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.146935 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.147360 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.147901 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.148437 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.148692 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.149092 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.149581 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.149843 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.150304 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.150758 #3104] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:39.151242 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.151936 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:03:39.152878 #3104] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:39.153403 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:03:39.154138 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.154607 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.155050 #3104] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:39.155512 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.156154 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.156409 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.156837 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.157474 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.157717 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.158171 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:39.158748 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.159240 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.160196 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:39.160702 #3104] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:03:39.161381 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.161823 #3104] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:39.162486 #3104] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.162800 #3104] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:39.163530 #3104] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:39.163990 #3104] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:39.164432 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.164935 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:39.165610 #3104] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:39.165836 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.166229 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:39.166792 #3104] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:39.167570 #3104] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:39.168152 #3104] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:39.168620 #3104] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:03:39.169230 #3104] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:03:39.170329 #3104] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:03:39.170851 #3104] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:39.171320 #3104] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:39.171677 #3104] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.264984 #3109] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:03:40.266181 #3109] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:03:40.267737 #3109] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:03:40.269892 #3109] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:40.270868 #3109] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:03:40.271568 #3109] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:03:40.272489 #3109] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:03:40.273152 #3109] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:03:40.317690 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.319474 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.322346 #3109] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:03:40.326583 #3109] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:40.327477 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.328281 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.330491 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.331254 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.331987 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.338857 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.339476 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.340239 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.340400 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.344129 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.344982 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:03:40.345942 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.346148 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.347397 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.347912 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:03:40.348674 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.348829 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.349303 #3109] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:03:40.350230 #3109] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:40.350797 #3109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:03:40.354470 #3109] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.354997 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.355586 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.356166 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.356422 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.356942 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.357508 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.358822 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.359336 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:03:40.359967 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.360582 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.361193 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:40.361777 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.362187 #3109] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:40.363102 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:03:40.363909 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.364297 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.364891 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:03:40.365416 #3109] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:40.366214 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.368337 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:03:40.369616 #3109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:03:40.370117 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:03:40.370864 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.371308 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.372094 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.372964 #3109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:03:40.373437 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:03:40.374121 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.375834 #3109] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:03:40.376360 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.376869 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.377530 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.377791 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.378205 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.378741 #3109] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:40.378997 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.379464 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.380064 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.380670 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.381148 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.381762 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.381907 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.382953 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.383417 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:03:40.384121 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.384266 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.385398 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.385929 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:03:40.386649 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.387043 #3109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:03:40.388980 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:03:40.389829 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.390485 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.391140 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.391430 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.391959 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.392575 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.392816 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.393310 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.393906 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.394629 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.395108 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.395672 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.395823 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.397275 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.397943 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:03:40.398644 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.398793 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.399843 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.400328 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:03:40.401150 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.401491 #3109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:03:40.402882 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:03:40.404542 #3109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:03:40.405398 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.405904 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.406481 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.406715 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.407136 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.407616 #3109] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:03:40.407843 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.408380 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.409092 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.410115 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.410665 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.411226 #3109] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:40.411724 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:03:40.412339 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.412961 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.413561 #3109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:03:40.415185 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:03:40.415912 #3109] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:40.416646 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.417303 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.417636 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.418155 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.418795 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.419075 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.419634 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.420274 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.421060 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.421595 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.422302 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.422504 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.424029 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.424714 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:03:40.425503 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.425659 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.426741 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.427257 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:03:40.427973 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.428824 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.429361 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.429852 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.430431 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.430654 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.431033 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.431562 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.431802 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.432249 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.432814 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.433380 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.433840 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.434398 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.434555 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.435569 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.436055 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:03:40.436824 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.436989 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.437972 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.438451 #3109] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:03:40.439174 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.439698 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.440243 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.440733 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.441400 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.441743 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.442336 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.443060 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.443339 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.443791 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.444475 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.445418 #3109] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:03:40.446470 #3109] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.447520 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.447910 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.448605 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.449262 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.450483 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.451651 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.452270 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:03:40.453495 #3109] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:03:40.454379 #3109] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:03:40.455076 #3109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:03:40.455978 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.456498 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.457070 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.457723 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.457972 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.458446 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.459123 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.459421 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.459933 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.460560 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.460863 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.461578 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.462304 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.462796 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.463433 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.464131 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.464481 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.465140 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.465745 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.466059 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.466621 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.467196 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.467768 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.468587 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:03:40.469736 #3109] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:03:40.470291 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:03:40.470981 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.471641 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.472152 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.472697 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.473338 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.473613 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.474115 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.474727 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.475016 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.475577 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:03:40.476207 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.476840 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.478338 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:03:40.479390 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:03:40.480249 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.480734 #3109] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:40.481528 #3109] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.481921 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:03:40.482759 #3109] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:03:40.483254 #3109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:03:40.483722 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.484325 #3109] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:03:40.485028 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.485260 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.485690 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:03:40.486311 #3109] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:03:40.487025 #3109] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:03:40.487573 #3109] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:03:40.488019 #3109] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:03:40.488591 #3109] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:03:40.489302 #3109] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:03:40.493861 #3109] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:03:40.494760 #3109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:03:40.495329 #3109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:05.158138 #5109] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:05.158363 #5109] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:05.161115 #5109] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:28:05.161838 #5109] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:05.162361 #5109] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:05.163023 #5109] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:28:05.165925 #5109] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:05.166319 #5109] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:05.166944 #5109] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:05.167641 #5109] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:05.168068 #5109] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:05.168696 #5109] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:05.169391 #5109] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:05.202993 #5109] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:05.210183 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.215876 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.217902 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:05.221738 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.222700 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:05.230145 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:05.230599 #5109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:05.231485 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:05.233240 #5109] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:05.234099 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.235014 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.236554 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.238634 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.240791 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:05.241188 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:05.241523 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:05.242859 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:05.243149 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:05.243400 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:05.244422 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:05.245190 #5109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:05.245317 #5109] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:05.245431 #5109] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:05.245853 #5109] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:05.246077 #5109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:05.246659 #5109] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:05.247289 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.248230 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.249181 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:05.250196 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.251178 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:05.252281 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:05.253801 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:05.254069 #5109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:05.254336 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:05.255499 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:05.255806 #5109] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:05.256090 #5109] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:05.258453 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:05.259153 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.260121 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.261089 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.262034 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.263271 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:05.263544 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:05.263815 #5109] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:05.264945 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:05.265192 #5109] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:05.265442 #5109] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:05.266232 #5109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:05.266676 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:05.267391 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.268350 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.269294 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.270254 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.271686 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:05.282078 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:05.282518 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:05.284700 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:05.285423 #5109] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:05.286020 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:05.287170 #5109] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:05.287897 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:05.288385 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:05.289352 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.290491 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.291607 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.293088 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:05.293735 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:05.294029 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:05.294294 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:05.295149 #5109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:05.295579 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:05.296270 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.297206 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.298092 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.299095 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.300287 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:05.300569 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:05.300874 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:05.302169 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:05.302578 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:05.302887 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:05.303703 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:05.304650 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.305521 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.306442 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.307382 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.308525 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:05.308793 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:05.309045 #5109] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:05.310361 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:05.310683 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:05.310981 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:05.312022 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:05.312915 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.313975 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.315161 #5109] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.316511 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.317562 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.319758 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.320075 #5109] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:05.320991 #5109] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:05.322093 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:05.322471 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:05.323129 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.324147 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.325086 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.326332 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:05.327472 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.328329 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.329279 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.330284 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:05.330892 #5109] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:05.331153 #5109] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:05.331462 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:05.332492 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:05.333126 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.334070 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.335035 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:05.336383 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:05.336711 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:05.337017 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:05.337834 #5109] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:05.338236 #5109] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:05.338554 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:05.338852 #5109] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:05.339182 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:05.339867 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:05.340863 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:05.344345 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:05.345009 #5109] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:05.345300 #5109] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:05.345664 #5109] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:05.346654 #5109] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:05.346946 #5109] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:06.400835 #5116] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:06.401068 #5116] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:06.403861 #5116] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:28:06.404639 #5116] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:06.405205 #5116] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:06.405782 #5116] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:28:06.408839 #5116] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:06.409225 #5116] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:06.409856 #5116] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:06.410592 #5116] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:06.411008 #5116] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:06.411616 #5116] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:28:06.412316 #5116] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:06.447599 #5116] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:06.455225 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.460785 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.463243 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:06.470223 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.472201 #5116] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:06.480239 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:06.480895 #5116] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:06.481643 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:06.484014 #5116] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:06.485202 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.486391 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.488119 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.489859 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.492055 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:06.492515 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:06.492860 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:06.494329 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:06.494724 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:06.495009 #5116] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:06.496230 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:06.497339 #5116] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:06.497583 #5116] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:06.497846 #5116] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:06.498314 #5116] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:06.498577 #5116] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:06.499283 #5116] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:06.500183 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.501369 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.511889 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:06.513211 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.514557 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:06.515768 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:06.517382 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:06.517816 #5116] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:06.518122 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:06.519780 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:06.520232 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:06.520528 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:06.523237 #5116] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:06.524274 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.525493 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.526895 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.528136 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.529775 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:06.530214 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:06.530543 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:06.531983 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:06.532359 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:06.532633 #5116] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:06.533628 #5116] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:06.534145 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:06.535324 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.536847 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.538045 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.539384 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.540974 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:06.541409 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:06.541719 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:06.543126 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:06.543511 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:06.543785 #5116] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:06.544843 #5116] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:06.545513 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:06.546074 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:06.547198 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.548514 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.549869 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.551579 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:06.552404 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:06.552811 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:06.553137 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:06.554040 #5116] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:06.554483 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:06.555481 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.558702 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.559919 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.561161 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.562714 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:06.563143 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:06.563461 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:06.564804 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:06.565157 #5116] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:06.565428 #5116] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:06.566622 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:06.568066 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.569371 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.570802 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.572141 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.573879 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:06.574354 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:06.574701 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:06.576018 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:06.576380 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:06.576660 #5116] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:06.577739 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:06.579105 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.580530 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.581779 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.583422 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.584490 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.587247 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.587940 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:06.589003 #5116] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:06.590191 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:06.590658 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:06.591554 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.592690 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.593903 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.595390 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:06.596745 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.597933 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.599067 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.600327 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:06.601316 #5116] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:06.601724 #5116] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:06.602100 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:06.603399 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:06.604530 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.607811 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.609110 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:06.610882 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:06.611367 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:06.611721 #5116] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:06.612615 #5116] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:06.613051 #5116] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:06.613392 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:06.613788 #5116] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:06.614188 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:06.615073 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:06.616242 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:06.617932 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:06.619025 #5116] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:06.619762 #5116] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:06.620264 #5116] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:06.621526 #5116] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:06.621863 #5116] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:07.685860 #5120] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:07.686118 #5120] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:07.688897 #5120] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:28:07.690132 #5120] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:07.691101 #5120] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:07.692058 #5120] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:07.706482 #5120] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:07.707063 #5120] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:07.707733 #5120] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:07.708497 #5120] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:07.708982 #5120] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:07.709663 #5120] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:07.710899 #5120] DEBUG -- : SQL (1.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:07.744605 #5120] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:07.754278 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.760139 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.762976 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:07.767680 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.769054 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:07.775107 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:07.775682 #5120] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:07.776424 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:07.778519 #5120] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:07.779465 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.780657 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.782450 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.784585 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.786950 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:07.787433 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:07.787723 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:07.789092 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:07.789400 #5120] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:07.789650 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:07.790769 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:07.791758 #5120] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:07.791953 #5120] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:07.792165 #5120] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:07.792684 #5120] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:07.792931 #5120] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:07.795653 #5120] DEBUG -- : SQL (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:07.796578 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.798566 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.799982 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:07.801338 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.803718 #5120] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:07.805184 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:07.806776 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:07.807167 #5120] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:07.807456 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:07.809248 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:07.809697 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:07.810054 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:07.813063 #5120] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:07.814104 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.815604 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.817146 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.818629 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.820346 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:07.820775 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:07.821087 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:07.822760 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:07.823167 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:07.823497 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:07.824592 #5120] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:07.825152 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:07.826237 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.827471 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.828596 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.829844 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.831564 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:07.831965 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:07.832379 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:07.833947 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:07.834331 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:07.834597 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:07.835611 #5120] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:07.836475 #5120] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:07.837283 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:07.838481 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.839800 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.841014 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.842704 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:07.843668 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:07.844109 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:07.844439 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:07.845559 #5120] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:07.848192 #5120] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:07.849370 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.850729 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.852098 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.853693 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.855286 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:07.855697 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:07.856132 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:07.857639 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:07.857995 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:07.858259 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:07.859288 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:07.860380 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.861621 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.862920 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.864213 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.865776 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:07.866167 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:07.866487 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:07.868127 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:07.868529 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:07.868802 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:07.869817 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:07.870952 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.872063 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.873229 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.874809 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.875929 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.878283 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.878792 #5120] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:07.879637 #5120] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:07.880751 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:07.881182 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:07.882025 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.883099 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.884196 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.885857 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:07.887404 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.888517 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.889834 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.891175 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:07.892143 #5120] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:07.892515 #5120] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:07.892884 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:07.894738 #5120] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:07.898004 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.899371 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.900734 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:07.902619 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:07.903076 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:07.903421 #5120] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:07.904671 #5120] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:07.905255 #5120] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:07.905694 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:07.906487 #5120] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:07.907296 #5120] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:07.908635 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:07.910237 #5120] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:07.912358 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:07.913388 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:07.914001 #5120] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:07.914477 #5120] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:07.916464 #5120] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:07.917053 #5120] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:08.979709 #5124] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:08.979941 #5124] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:08.982835 #5124] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:28:08.984143 #5124] DEBUG -- : SQL (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:08.985137 #5124] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:08.986225 #5124] DEBUG -- : SQL (1.0ms) DROP TABLE "posts" D, [2015-08-02T09:28:09.000056 #5124] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:09.000608 #5124] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:09.001256 #5124] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:09.002177 #5124] DEBUG -- : SQL (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:09.002673 #5124] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:09.009698 #5124] DEBUG -- : SQL (6.9ms) DROP TABLE "tags" D, [2015-08-02T09:28:09.015519 #5124] DEBUG -- : SQL (5.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:09.053080 #5124] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:09.062746 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.068524 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.071756 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:09.078264 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.079631 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:09.088265 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:09.088873 #5124] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:09.089640 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:09.091441 #5124] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:09.092530 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.093885 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.095668 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.097652 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.099827 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:09.100294 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:09.100595 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:09.102247 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:09.102672 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:09.102973 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:09.104554 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:09.105674 #5124] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:09.105899 #5124] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:09.106089 #5124] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:09.106580 #5124] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:09.106840 #5124] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:09.107479 #5124] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:09.108298 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.109547 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.110628 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:09.113882 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.115214 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:09.116435 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:09.117970 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:09.118306 #5124] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:09.118565 #5124] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:09.120002 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:09.120331 #5124] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:09.120585 #5124] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:09.123199 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:09.124133 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.125351 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.126615 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.127879 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.129449 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:09.129830 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:09.130119 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:09.131643 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:09.131998 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:09.132289 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:09.133413 #5124] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:09.133964 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:09.135007 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.136252 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.137558 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.138876 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.140617 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:09.141053 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:09.141357 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:09.142853 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:09.143232 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:09.143512 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:09.144548 #5124] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:09.145176 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:09.145727 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:09.146869 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.148035 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.149253 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.151046 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:09.152095 #5124] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:09.152647 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:09.152988 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:09.154039 #5124] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:09.154492 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:09.155584 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.156721 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.157908 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.159200 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.160802 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:09.161973 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:09.162288 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:09.163856 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:09.164197 #5124] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:09.164453 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:09.165513 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:09.166532 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.167754 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.168934 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.170475 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.172056 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:09.172446 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:09.172730 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:09.174156 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:09.174499 #5124] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:09.174766 #5124] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:09.175748 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:09.176738 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.177931 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.179227 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.180874 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.182050 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.184537 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.185039 #5124] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:09.185987 #5124] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:09.187293 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:09.187702 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:09.188602 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.189748 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.190923 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.192389 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:09.193799 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.194882 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.196062 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.197301 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:09.198226 #5124] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:09.198586 #5124] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:09.198959 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:09.200080 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:09.200904 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.202084 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.203460 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:09.205134 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:09.205570 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:09.205897 #5124] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:09.206877 #5124] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:09.207317 #5124] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:09.207642 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:09.208019 #5124] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:09.208395 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:09.209247 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:09.212145 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:09.214349 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:09.215412 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:09.216064 #5124] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:09.216590 #5124] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:09.217855 #5124] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:09.218223 #5124] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:10.281215 #5128] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:10.281449 #5128] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:10.284365 #5128] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:28:10.285137 #5128] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:10.285779 #5128] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:10.286384 #5128] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:28:10.299605 #5128] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:10.300083 #5128] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:10.300655 #5128] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:28:10.301368 #5128] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:10.301720 #5128] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:10.302430 #5128] DEBUG -- : SQL (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:28:10.303087 #5128] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:10.335204 #5128] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:10.344753 #5128] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.350308 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.352764 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:10.357087 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.358263 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:10.363941 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:10.364659 #5128] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:10.365725 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:10.367548 #5128] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:10.368645 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.369832 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.371607 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.373512 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.375543 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:10.375967 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:10.376248 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:10.377655 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:10.377972 #5128] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:10.378230 #5128] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:10.379449 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:10.380433 #5128] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:10.380634 #5128] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:10.380835 #5128] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:10.381316 #5128] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:10.381575 #5128] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:10.382239 #5128] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:10.383016 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.384237 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.385366 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:10.388958 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.390352 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:10.391451 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:10.393023 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:10.393364 #5128] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:10.393641 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:10.395160 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:10.395491 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:10.395750 #5128] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:10.398463 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:10.399385 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.400578 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.401831 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.403131 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.404621 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:10.405001 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:10.405300 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:10.406716 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:10.407051 #5128] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:10.407307 #5128] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:10.408451 #5128] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:10.408949 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:10.409958 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.411160 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.412291 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.413497 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.415020 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:10.415374 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:10.415646 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:10.417039 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:10.417358 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:10.417604 #5128] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:10.418699 #5128] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:10.419311 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:10.419909 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:10.421150 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.422278 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.423442 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.424926 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:10.425726 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:10.426076 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:10.426365 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:10.427307 #5128] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:10.427733 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:10.428636 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.429755 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.430990 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.432232 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.433757 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:10.435008 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:10.435352 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:10.437207 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:10.437590 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:10.437894 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:10.438932 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:10.439946 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.441033 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.442184 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.443508 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.445044 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:10.445431 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:10.445716 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:10.447088 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:10.447414 #5128] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:10.447659 #5128] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:10.448686 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:10.449645 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.450789 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.452021 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.453769 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.454932 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.457394 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.457864 #5128] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:10.458783 #5128] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:10.459978 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:10.460393 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:10.461196 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.462345 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.463659 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.464993 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:10.466316 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.467455 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.468763 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.470100 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:10.471071 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:10.471438 #5128] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:10.471787 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:10.473100 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:10.473896 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.475010 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.476169 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:10.477853 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:10.478213 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:10.478503 #5128] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:10.479443 #5128] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:10.479859 #5128] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:10.480177 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:10.480553 #5128] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:10.480940 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:10.481784 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:10.484741 #5128] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:10.486462 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:10.487326 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:10.487846 #5128] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:10.488286 #5128] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:10.489427 #5128] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:10.489781 #5128] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:11.532595 #5136] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:11.532815 #5136] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:11.535502 #5136] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:28:11.536428 #5136] DEBUG -- : SQL (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:11.537348 #5136] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:11.538333 #5136] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:28:11.552403 #5136] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:11.553188 #5136] DEBUG -- : SQL (0.4ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:11.553900 #5136] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:11.554575 #5136] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:11.554903 #5136] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:11.555520 #5136] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:11.556202 #5136] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:11.588169 #5136] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:11.597277 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.603138 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.605537 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:11.609444 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.610615 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:11.615110 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:11.615612 #5136] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:11.616260 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:11.617597 #5136] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:11.618767 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.619949 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.621754 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.623108 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.624762 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:11.625195 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:11.625504 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:11.626921 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:11.627227 #5136] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:11.627458 #5136] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:11.628730 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:11.629870 #5136] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:11.630055 #5136] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:11.630243 #5136] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:11.630718 #5136] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:11.630965 #5136] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:11.631617 #5136] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:11.632372 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.633486 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.634549 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:11.635984 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.639792 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:11.640937 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:11.642634 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:11.643012 #5136] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:11.643274 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:11.644739 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:11.645101 #5136] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:11.645365 #5136] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:11.647194 #5136] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:11.648230 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.649558 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.651068 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.652734 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.654544 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:11.655034 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:11.655395 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:11.657048 #5136] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:11.657460 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:11.657738 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:11.658835 #5136] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:11.659375 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:11.660419 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.661683 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.662928 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.664126 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.665722 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:11.666087 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:11.666371 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:11.667792 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:11.668151 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:11.668435 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:11.669328 #5136] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:11.669900 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:11.670517 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:11.671734 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.673091 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.674522 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.675721 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:11.676653 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:11.677063 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:11.677425 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:11.678449 #5136] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:11.678916 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:11.679893 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.680918 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.682016 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.683315 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.684919 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:11.685334 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:11.685663 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:11.688494 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:11.688893 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:11.689201 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:11.690182 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:11.691179 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.692392 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.693571 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.694884 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.696507 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:11.696894 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:11.697169 #5136] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:11.698681 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:11.699012 #5136] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:11.699257 #5136] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:11.700262 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:11.701266 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.702475 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.703681 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.705282 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.706394 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.708292 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.708748 #5136] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:11.709681 #5136] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:11.710824 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:11.711222 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:11.711999 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.713141 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.714299 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.715615 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:11.716912 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.718112 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.719257 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.720702 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:11.721671 #5136] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:11.722036 #5136] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:11.722403 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:11.723547 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:11.724343 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.725461 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.726627 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:11.728177 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:11.728549 #5136] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:11.728833 #5136] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:11.729845 #5136] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:11.730245 #5136] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:11.730565 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:11.730935 #5136] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:11.731303 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:11.732085 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:11.733210 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:11.736408 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:11.737236 #5136] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:11.737742 #5136] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:11.738156 #5136] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:11.739289 #5136] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:11.739621 #5136] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:12.777400 #5142] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:12.777624 #5142] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:12.780593 #5142] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:28:12.781836 #5142] DEBUG -- : SQL (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:12.782804 #5142] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:12.783765 #5142] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:12.797659 #5142] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:12.798138 #5142] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:12.798756 #5142] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:12.799488 #5142] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:12.799817 #5142] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:12.800441 #5142] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:12.801133 #5142] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:12.832654 #5142] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:12.840136 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.848327 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.851261 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:12.856215 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.857835 #5142] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:12.867686 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:12.868274 #5142] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:12.869099 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:12.876722 #5142] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:12.878031 #5142] DEBUG -- : AREL (0.4ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.880029 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.882520 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.884313 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.886290 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:12.886790 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:12.887170 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:12.888697 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:12.889097 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:12.889387 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:12.890649 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:12.891618 #5142] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:12.891815 #5142] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:12.892014 #5142] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:12.892489 #5142] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:12.892738 #5142] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:12.893396 #5142] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:12.894171 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.895338 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.896431 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:12.897733 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.899137 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:12.902460 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:12.904075 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:12.904483 #5142] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:12.904761 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:12.906127 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:12.906457 #5142] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:12.906730 #5142] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:12.908293 #5142] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:12.909142 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.910424 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.911754 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.913030 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.914587 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:12.914966 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:12.915272 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:12.916651 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:12.916981 #5142] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:12.917274 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:12.918362 #5142] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:12.918896 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:12.920118 #5142] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.921342 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.922502 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.923719 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.925160 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:12.925528 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:12.925815 #5142] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:12.927488 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:12.927959 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:12.928264 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:12.929407 #5142] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:12.930082 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:12.930727 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:12.931894 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.933129 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.934404 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.935409 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:12.936157 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:12.936496 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:12.936787 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:12.937808 #5142] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:12.938233 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:12.939121 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.940447 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.941697 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.942916 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.944459 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:12.944835 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:12.945135 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:12.946503 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:12.946846 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:12.947104 #5142] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:12.948885 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:12.949880 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.950920 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.952274 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.953801 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.955468 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:12.955852 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:12.956149 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:12.957607 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:12.957926 #5142] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:12.958174 #5142] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:12.959286 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:12.960234 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.961411 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.962700 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.964231 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.965313 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.967226 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.967713 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:12.968643 #5142] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:12.970030 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:12.970433 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:12.971371 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.972661 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.973795 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.975136 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:12.976463 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.977535 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.978637 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.979855 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:12.980700 #5142] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:12.981042 #5142] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:12.981411 #5142] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:12.982593 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:12.983381 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.984509 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.985741 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:12.987589 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:12.987986 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:12.988293 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:12.989256 #5142] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:12.989660 #5142] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:12.989967 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:12.990331 #5142] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:12.990721 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:12.991546 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:12.992703 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:12.993874 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:12.994700 #5142] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:12.995197 #5142] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:12.995597 #5142] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:12.998679 #5142] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:12.999065 #5142] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:14.071293 #5146] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:14.071512 #5146] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:14.074365 #5146] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:28:14.075584 #5146] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:14.076548 #5146] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:14.077506 #5146] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:14.091477 #5146] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:14.092121 #5146] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:14.092935 #5146] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:28:14.093704 #5146] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:14.094124 #5146] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:14.094720 #5146] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:28:14.095514 #5146] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:14.127901 #5146] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:14.136926 #5146] DEBUG -- : AREL (1.7ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.144623 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.147700 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:14.152648 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.153887 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:14.159323 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:14.159899 #5146] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:14.160613 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:14.161842 #5146] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:14.162804 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.163975 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.165766 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.167134 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.168885 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:14.169301 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:14.169680 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:14.171354 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:14.171696 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:14.171929 #5146] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:14.173124 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:14.174012 #5146] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:14.174197 #5146] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:14.174393 #5146] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:14.174850 #5146] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:14.175085 #5146] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:14.175733 #5146] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:14.176487 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.177833 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.179194 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:14.180879 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.182448 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:14.185939 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:14.187608 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:14.188017 #5146] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:14.188331 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:14.189830 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:14.190177 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:14.190455 #5146] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:14.192029 #5146] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:14.193019 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.194177 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.195318 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.196564 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.198134 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:14.198507 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:14.198795 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:14.200161 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:14.200491 #5146] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:14.200746 #5146] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:14.201852 #5146] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:14.202385 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:14.203497 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.204777 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.206142 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.207487 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.209012 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:14.209403 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:14.209699 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:14.212223 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:14.212677 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:14.213007 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:14.214115 #5146] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:14.214848 #5146] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:14.215592 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:14.216906 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.218406 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.220125 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.221295 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:14.222205 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:14.222629 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:14.222978 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:14.223998 #5146] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:14.224467 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:14.225435 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.226685 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.227866 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.229203 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.230747 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:14.231129 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:14.231421 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:14.232792 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:14.233136 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:14.233394 #5146] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:14.235563 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:14.236827 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.238392 #5146] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.239913 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.241467 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.243251 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:14.243714 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:14.244062 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:14.245722 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:14.246117 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:14.246417 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:14.247526 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:14.248506 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.249678 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.250863 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.252450 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.253695 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.255558 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.256048 #5146] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:14.257046 #5146] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:14.258286 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:14.258690 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:14.259500 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.260731 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.261883 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.263239 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:14.264671 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.265776 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.267020 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.268430 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:14.269544 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:14.269919 #5146] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:14.270301 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:14.271412 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:14.272228 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.273298 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.274435 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:14.276015 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:14.276390 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:14.276675 #5146] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:14.277877 #5146] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:14.278433 #5146] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:14.278845 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:14.279364 #5146] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:14.279897 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:14.280956 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:14.282383 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:14.283710 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:14.284673 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:14.285283 #5146] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:14.285840 #5146] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:14.289003 #5146] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:14.289403 #5146] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:15.367192 #5150] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:15.367432 #5150] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:15.369965 #5150] DEBUG -- : SQL (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:28:15.370843 #5150] DEBUG -- : SQL (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:15.371346 #5150] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:15.371962 #5150] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:28:15.384694 #5150] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:15.385199 #5150] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:15.385742 #5150] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:28:15.386556 #5150] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:15.386912 #5150] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:15.387510 #5150] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:28:15.388278 #5150] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:15.421097 #5150] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:15.430691 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.436332 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.438755 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:15.442891 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.444072 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:15.448936 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:15.449630 #5150] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:15.450960 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:15.452353 #5150] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:15.453516 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.454931 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.456810 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.458273 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.460074 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:15.460560 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:15.460893 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:15.462374 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:15.462740 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:15.462996 #5150] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:15.464344 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:15.465292 #5150] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:15.465487 #5150] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:15.465693 #5150] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:15.466206 #5150] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:15.466459 #5150] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:15.467108 #5150] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:15.467931 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.469202 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.470435 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:15.471786 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.473033 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:15.476317 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:15.478390 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:15.478850 #5150] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:15.479219 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:15.481087 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:15.481564 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:15.481905 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:15.483796 #5150] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:15.484937 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.486260 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.487611 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.488944 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.490624 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:15.491101 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:15.491394 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:15.492988 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:15.493350 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:15.493620 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:15.494651 #5150] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:15.495183 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:15.496195 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.497366 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.498542 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.499889 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.501569 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:15.501965 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:15.502246 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:15.503949 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:15.504377 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:15.504657 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:15.505690 #5150] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:15.506356 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:15.506992 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:15.508218 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.509367 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.510623 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.511656 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:15.512440 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:15.512797 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:15.513101 #5150] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:15.514287 #5150] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:15.514880 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:15.516094 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.517402 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.518746 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.520359 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.522022 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:15.522419 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:15.522732 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:15.524260 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:15.524663 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:15.524979 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:15.527005 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:15.528087 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.529235 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.530374 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.531717 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.533487 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:15.533878 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:15.534197 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:15.535758 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:15.536135 #5150] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:15.536397 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:15.537425 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:15.538421 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.539588 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.540951 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.542762 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.543918 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.545855 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.546368 #5150] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:15.547357 #5150] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:15.548561 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:15.548974 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:15.549834 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.551059 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.552345 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.553945 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:15.555387 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.556559 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.557751 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.559110 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:15.560046 #5150] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:15.560416 #5150] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:15.560787 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:15.562008 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:15.563033 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.564281 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.565574 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:15.567504 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:15.567957 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:15.568317 #5150] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:15.569613 #5150] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:15.570172 #5150] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:15.570591 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:15.571076 #5150] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:15.571584 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:15.572665 #5150] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:15.574086 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:15.575503 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:15.576562 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:15.579042 #5150] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:15.579565 #5150] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:15.580868 #5150] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:15.581219 #5150] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:16.643056 #5157] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:16.643292 #5157] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:16.645857 #5157] DEBUG -- : SQL (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:28:16.646613 #5157] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:16.647098 #5157] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:16.647775 #5157] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:28:16.660091 #5157] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:16.660571 #5157] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:16.661128 #5157] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:28:16.661822 #5157] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:16.662163 #5157] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:16.662780 #5157] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:16.663489 #5157] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:16.695815 #5157] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:16.705175 #5157] DEBUG -- : AREL (2.0ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.712897 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.717197 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:16.722343 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.723601 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:16.729228 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:16.729750 #5157] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:16.730469 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:16.731636 #5157] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:16.732484 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.733656 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.735544 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.737103 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.739526 #5157] DEBUG -- : AREL (0.4ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:16.739995 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:16.740346 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:16.746522 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:16.746978 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:16.747265 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:16.752350 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:16.753469 #5157] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:16.753686 #5157] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:16.753899 #5157] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:16.754430 #5157] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:16.754689 #5157] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:16.755363 #5157] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:16.756254 #5157] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.760320 #5157] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.761588 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:16.763054 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.764591 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:16.767981 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:16.769875 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:16.770316 #5157] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:16.770637 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:16.772236 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:16.772617 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:16.772910 #5157] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:16.774496 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:16.775394 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.776523 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.777701 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.778966 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.780651 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:16.781114 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:16.781394 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:16.782829 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:16.783170 #5157] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:16.783421 #5157] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:16.784415 #5157] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:16.784897 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:16.785984 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.787458 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.788636 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.789885 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.791512 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:16.791909 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:16.792198 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:16.793709 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:16.794058 #5157] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:16.794313 #5157] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:16.795229 #5157] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:16.795796 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:16.796349 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:16.797445 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.798559 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.799749 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.800852 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:16.801619 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:16.801979 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:16.802271 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:16.803229 #5157] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:16.803665 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:16.804724 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.805857 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.806988 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.808268 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.809823 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:16.810206 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:16.810504 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:16.811956 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:16.812316 #5157] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:16.812570 #5157] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:16.814506 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:16.815530 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.816745 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.817886 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.819126 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.820855 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:16.821277 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:16.821587 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:16.823016 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:16.823368 #5157] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:16.823628 #5157] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:16.824745 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:16.825743 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.826889 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.828153 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.829834 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.830896 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.832767 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.833257 #5157] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:16.834256 #5157] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:16.835546 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:16.836039 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:16.837031 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.838218 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.839291 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.840719 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:16.842090 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.843305 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.844524 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.845772 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:16.846687 #5157] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:16.847042 #5157] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:16.847396 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:16.848676 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:16.849500 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.850921 #5157] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.852581 #5157] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:16.854636 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:16.855146 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:16.855534 #5157] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:16.856599 #5157] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:16.857115 #5157] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:16.857511 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:16.857993 #5157] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:16.858490 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:16.859486 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:16.860775 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:16.861970 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:16.862892 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:16.865279 #5157] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:16.865762 #5157] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:16.866976 #5157] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:16.867289 #5157] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:17.931126 #5161] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:17.931355 #5161] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:17.933996 #5161] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:28:17.934806 #5161] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:17.935328 #5161] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:17.935997 #5161] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:28:17.951201 #5161] DEBUG -- : SQL (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:17.951755 #5161] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:17.952445 #5161] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:17.953251 #5161] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:17.953769 #5161] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:17.954423 #5161] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:17.955130 #5161] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:17.990658 #5161] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:17.999202 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.004618 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.007612 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:18.012467 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.013808 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:18.019486 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:18.020135 #5161] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:18.021154 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:18.022496 #5161] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:18.023646 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.025029 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.027014 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.028785 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.030783 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:18.031320 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:18.031709 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:18.034326 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:18.034809 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:18.035153 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:18.036810 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:18.038072 #5161] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:18.038321 #5161] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:18.038574 #5161] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:18.039204 #5161] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:18.039519 #5161] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:18.040288 #5161] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:18.041227 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.043180 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.045104 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:18.046828 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.048364 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:18.051749 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:18.053467 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:18.053893 #5161] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:18.054213 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:18.056923 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:18.057479 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:18.057776 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:18.059768 #5161] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:18.060972 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.062362 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.063941 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.065459 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.067341 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:18.068019 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:18.068636 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:18.070678 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:18.071090 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:18.071405 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:18.073039 #5161] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:18.074159 #5161] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:18.076303 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.077790 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.079438 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.081272 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.083279 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:18.083802 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:18.084190 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:18.086203 #5161] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:18.086770 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:18.087170 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:18.088403 #5161] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:18.089187 #5161] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:18.089911 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:18.091328 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.092650 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.093947 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.095008 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:18.095842 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:18.096224 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:18.096548 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:18.097569 #5161] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:18.098052 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:18.099023 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.100233 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.101467 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.102981 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.104715 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:18.105146 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:18.105469 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:18.107143 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:18.107597 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:18.107919 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:18.109965 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:18.111064 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.112988 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.114231 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.115470 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.117046 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:18.117436 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:18.117743 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:18.119257 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:18.119635 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:18.119916 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:18.120890 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:18.121949 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.123139 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.124460 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.126185 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.127228 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.129109 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.129646 #5161] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:18.130505 #5161] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:18.131616 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:18.132060 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:18.132932 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.134018 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.135289 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.136949 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:18.138334 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.139517 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.140837 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.142140 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:18.143131 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:18.143520 #5161] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:18.143897 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:18.145091 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:18.146011 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.147140 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.148263 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:18.149997 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:18.150422 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:18.150760 #5161] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:18.151786 #5161] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:18.152245 #5161] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:18.152684 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:18.153140 #5161] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:18.153577 #5161] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:18.154494 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:18.155717 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:18.156987 #5161] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:18.157984 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:18.160499 #5161] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:18.160989 #5161] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:18.162779 #5161] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:18.163461 #5161] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:19.259981 #5165] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:19.260206 #5165] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:19.262518 #5165] DEBUG -- : SQL (2.2ms) DROP TABLE "authors" D, [2015-08-02T09:28:19.263151 #5165] DEBUG -- : SQL (0.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:19.263656 #5165] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:19.264200 #5165] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:28:19.276367 #5165] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:19.276844 #5165] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:19.277495 #5165] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:19.278310 #5165] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:19.278810 #5165] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:19.279459 #5165] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:19.280105 #5165] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:19.312622 #5165] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:19.322294 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.328566 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.331524 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:19.337162 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.338491 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:19.343710 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:19.344274 #5165] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:19.344995 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:19.346128 #5165] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:19.347005 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.348741 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.350577 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.352039 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.353813 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:19.354284 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:19.354628 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:19.356858 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:19.357352 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:19.357699 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:19.359491 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:19.360909 #5165] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:19.361208 #5165] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:19.361491 #5165] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:19.362207 #5165] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:19.362561 #5165] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:19.363469 #5165] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:19.364550 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.366206 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.367584 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:19.369878 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.371919 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:19.376804 #5165] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:19.379799 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:19.380368 #5165] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:19.380796 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:19.384067 #5165] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:19.384814 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:19.385386 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:19.388002 #5165] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:19.389909 #5165] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.391987 #5165] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.393761 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.395403 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.397354 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:19.397867 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:19.398233 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:19.400070 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:19.400487 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:19.400793 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:19.401839 #5165] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:19.402411 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:19.403761 #5165] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.405083 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.406214 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.407555 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.408948 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:19.409342 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:19.409636 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:19.411184 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:19.411574 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:19.411842 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:19.412824 #5165] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:19.413376 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:19.413912 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:19.415024 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.416259 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.417483 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.418626 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:19.419449 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:19.419821 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:19.420145 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:19.421115 #5165] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:19.421563 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:19.422475 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.423614 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.424776 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.426167 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.427824 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:19.428241 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:19.428546 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:19.430002 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:19.430350 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:19.430604 #5165] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:19.432491 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:19.433529 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.434711 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.435884 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.437275 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.439057 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:19.439482 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:19.439814 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:19.441253 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:19.441621 #5165] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:19.441878 #5165] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:19.442945 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:19.443963 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.445137 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.446505 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.448151 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.449232 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.451136 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.451647 #5165] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:19.452641 #5165] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:19.454190 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:19.454671 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:19.455590 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.456807 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.458043 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.459528 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:19.460835 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.461917 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.463023 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.464244 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:19.465188 #5165] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:19.465569 #5165] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:19.465941 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:19.467169 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:19.468100 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.469397 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.470611 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:19.472308 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:19.472719 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:19.473030 #5165] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:19.473893 #5165] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:19.474311 #5165] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:19.474642 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:19.475023 #5165] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:19.475426 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:19.476307 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:19.477518 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:19.478881 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:19.479935 #5165] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:19.482208 #5165] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:19.482656 #5165] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:19.483855 #5165] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:19.484202 #5165] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:20.554903 #5172] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:20.555127 #5172] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:20.557899 #5172] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:28:20.559119 #5172] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:20.560062 #5172] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:20.561021 #5172] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:20.574154 #5172] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:20.574631 #5172] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:20.575355 #5172] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:28:20.576080 #5172] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:20.576426 #5172] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:20.577079 #5172] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:20.577698 #5172] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:20.609780 #5172] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:20.619459 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.625023 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.627365 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:20.631485 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.632684 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:20.637234 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:20.637733 #5172] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:20.638417 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:20.639663 #5172] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:20.640907 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.642162 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.644003 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.645523 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.647314 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:20.647739 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:20.648047 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:20.649766 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:20.650240 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:20.650547 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:20.652012 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:20.653298 #5172] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:20.653545 #5172] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:20.653774 #5172] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:20.654324 #5172] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:20.654597 #5172] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:20.655312 #5172] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:20.656150 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.657307 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.658336 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:20.659584 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.660846 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:20.664575 #5172] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:20.672635 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:20.673138 #5172] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:20.673488 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:20.678815 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:20.679393 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:20.679827 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:20.686686 #5172] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:20.688233 #5172] DEBUG -- : AREL (0.5ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.689788 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.691240 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.692821 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.695600 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:20.696210 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:20.696563 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:20.698271 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:20.698653 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:20.698937 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:20.700052 #5172] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:20.700585 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:20.701638 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.702952 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.704288 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.705592 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.707350 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:20.707790 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:20.708105 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:20.709975 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:20.710480 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:20.710790 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:20.711923 #5172] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:20.712586 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:20.713169 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:20.714366 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.715767 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.717141 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.718425 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:20.719904 #5172] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:20.720566 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:20.721199 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:20.722867 #5172] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:20.723851 #5172] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:20.724905 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.726204 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.727548 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.729951 #5172] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.732625 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:20.733174 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:20.733588 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:20.735737 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:20.736264 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:20.736649 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:20.739156 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:20.740614 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.742136 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.743692 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.745317 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.747401 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:20.747954 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:20.748381 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:20.750068 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:20.750517 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:20.750842 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:20.752185 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:20.753628 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.754865 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.755991 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.757678 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.759008 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.760901 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.761394 #5172] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:20.762395 #5172] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:20.763648 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:20.764197 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:20.765265 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.766436 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.767534 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.768899 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:20.770384 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.771539 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.772666 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.773939 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:20.774897 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:20.775279 #5172] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:20.775668 #5172] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:20.777439 #5172] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:20.778731 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.780235 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.781681 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:20.783889 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:20.784450 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:20.784829 #5172] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:20.786230 #5172] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:20.786839 #5172] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:20.787303 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:20.787849 #5172] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:20.788397 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:20.789647 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:20.791175 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:20.792563 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:20.793738 #5172] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:20.796308 #5172] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:20.796906 #5172] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:20.798264 #5172] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:20.798651 #5172] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:21.880905 #5177] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:21.881133 #5177] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:21.884015 #5177] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:28:21.885295 #5177] DEBUG -- : SQL (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:21.886289 #5177] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:21.887347 #5177] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:28:21.901660 #5177] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:21.902148 #5177] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:21.902763 #5177] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:28:21.903462 #5177] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:21.903861 #5177] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:21.904454 #5177] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:28:21.905076 #5177] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:21.937149 #5177] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:21.948734 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:21.954454 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:21.956721 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:21.960649 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:21.961811 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:21.966248 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:21.966900 #5177] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:21.967886 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:21.969130 #5177] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:21.970128 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:21.971404 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:21.973664 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:21.975431 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:21.977386 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:21.977880 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:21.978211 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:21.979745 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:21.980139 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:21.980407 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:21.981638 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:21.982581 #5177] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:21.982778 #5177] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:21.982978 #5177] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:21.983457 #5177] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:21.983712 #5177] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:21.984431 #5177] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:21.985264 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:21.986538 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:21.988041 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:21.989716 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:21.991409 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:21.995209 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:21.997296 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:21.997768 #5177] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:21.998118 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:21.999922 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:22.000381 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:22.000679 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:22.002649 #5177] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:22.003902 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.005201 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.006368 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.007600 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.009127 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:22.009520 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:22.009818 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:22.011255 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:22.011593 #5177] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:22.011851 #5177] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:22.012982 #5177] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:22.013473 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:22.014512 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.015681 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.016843 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.018152 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.019692 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:22.020070 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:22.020373 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:22.021944 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:22.022333 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:22.022599 #5177] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:22.023637 #5177] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:22.024341 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:22.024947 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:22.026192 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.027408 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.028718 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.029843 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:22.030679 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:22.031064 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:22.031378 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:22.032419 #5177] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:22.032894 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:22.033904 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.035080 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.036515 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.038342 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.039992 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:22.040378 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:22.040666 #5177] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:22.042207 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:22.042578 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:22.042834 #5177] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:22.044711 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:22.045717 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.047140 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.048464 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.049754 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.051478 #5177] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:22.052013 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:22.052403 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:22.054147 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:22.054535 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:22.054816 #5177] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:22.055770 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:22.056932 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.058278 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.059628 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.061368 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.062504 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.064396 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.064886 #5177] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:22.065871 #5177] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:22.067137 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:22.067559 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:22.068531 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.069815 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.071043 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.072619 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:22.073944 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.074967 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.076103 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.077307 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:22.078286 #5177] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:22.078675 #5177] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:22.079058 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:22.080167 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:22.081052 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.082086 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.083158 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:22.084757 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:22.085154 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:22.085469 #5177] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:22.086445 #5177] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:22.087005 #5177] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:22.087424 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:22.087855 #5177] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:22.088290 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:22.089297 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:22.090631 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:22.091961 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:22.093059 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:22.095467 #5177] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:22.096015 #5177] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:22.097322 #5177] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:22.097676 #5177] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:23.155983 #5183] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:23.156220 #5183] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:23.158838 #5183] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:28:23.159621 #5183] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:23.160120 #5183] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:23.160701 #5183] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:28:23.173077 #5183] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:23.173534 #5183] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:23.174228 #5183] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:23.174950 #5183] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:23.175289 #5183] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:23.176004 #5183] DEBUG -- : SQL (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:28:23.176732 #5183] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:23.209269 #5183] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:23.218761 #5183] DEBUG -- : AREL (2.0ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.224319 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.226745 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:23.230920 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.232138 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:23.236685 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:23.237187 #5183] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:23.237877 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:23.239138 #5183] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:23.240301 #5183] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.241562 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.243454 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.245069 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.246809 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:23.247247 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:23.247552 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:23.249041 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:23.249377 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:23.249616 #5183] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:23.250897 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:23.251864 #5183] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:23.252055 #5183] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:23.252263 #5183] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:23.252779 #5183] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:23.253139 #5183] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:23.254009 #5183] DEBUG -- : SQL (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:23.254928 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.256125 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.257057 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:23.258229 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.259474 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:23.262839 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:23.264531 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:23.264915 #5183] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:23.265201 #5183] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:23.266651 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:23.267020 #5183] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:23.267283 #5183] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:23.268865 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:23.269763 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.270895 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.272120 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.273393 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.275135 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:23.275521 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:23.275803 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:23.277279 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:23.277615 #5183] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:23.277867 #5183] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:23.278863 #5183] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:23.279356 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:23.280377 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.281578 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.282815 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.284406 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.286193 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:23.286638 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:23.286966 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:23.288606 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:23.289013 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:23.289304 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:23.290229 #5183] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:23.290804 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:23.291344 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:23.292409 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.293526 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.294691 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.295714 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:23.296478 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:23.296833 #5183] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:23.297116 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:23.298210 #5183] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:23.298654 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:23.299537 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.300731 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.301964 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.303338 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.305407 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:23.305819 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:23.306134 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:23.307795 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:23.308164 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:23.308424 #5183] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:23.310411 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:23.311539 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.312722 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.313864 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.315094 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.316617 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:23.316975 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:23.317273 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:23.318946 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:23.319448 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:23.319805 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:23.321018 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:23.322443 #5183] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.323750 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.325071 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.327466 #5183] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.328721 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.331090 #5183] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.331801 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:23.332776 #5183] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:23.334041 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:23.334460 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:23.335387 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.336578 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.337772 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.339122 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:23.340528 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.341747 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.343002 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.344372 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:23.345406 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:23.345815 #5183] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:23.346195 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:23.347294 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:23.348142 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.349257 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.350442 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:23.352098 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:23.352544 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:23.352911 #5183] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:23.353956 #5183] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:23.354413 #5183] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:23.354758 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:23.355148 #5183] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:23.355551 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:23.356474 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:23.357683 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:23.358799 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:23.359674 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:23.361991 #5183] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:23.362511 #5183] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:23.363717 #5183] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:23.364037 #5183] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:24.419596 #5187] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:24.419824 #5187] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:24.422806 #5187] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:28:24.424030 #5187] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:28:24.424964 #5187] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:24.425940 #5187] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:24.440365 #5187] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:24.440946 #5187] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:24.441791 #5187] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:28:24.443001 #5187] DEBUG -- : SQL (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:28:24.443760 #5187] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:28:24.444741 #5187] DEBUG -- : SQL (0.8ms) DROP TABLE "tags" D, [2015-08-02T09:28:24.445612 #5187] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:24.479392 #5187] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:28:24.488938 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.494594 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.496992 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:24.500942 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.502270 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:28:24.506697 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:28:24.507184 #5187] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:24.507921 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:24.509319 #5187] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:28:24.510441 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.511721 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.513540 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.514995 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.516667 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:28:24.517088 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:24.517382 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:28:24.518827 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:28:24.519219 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:28:24.519487 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:28:24.520787 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:24.522078 #5187] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:24.522283 #5187] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:24.522498 #5187] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:28:24.523001 #5187] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:24.523258 #5187] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:28:24.523901 #5187] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:28:24.524658 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.525816 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.526807 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:28:24.528209 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.531522 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:28:24.532997 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:28:24.534792 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:28:24.535196 #5187] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:24.535464 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:24.537155 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:28:24.537531 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:24.537817 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:28:24.539408 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:28:24.540326 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.541451 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.542634 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.543942 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.545571 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:28:24.545926 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:28:24.546209 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:28:24.547630 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:28:24.547971 #5187] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:24.548221 #5187] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:28:24.549204 #5187] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:28:24.549707 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:28:24.550732 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.552040 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.553442 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.554937 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.556801 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:28:24.557245 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:28:24.557564 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:28:24.559294 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:28:24.559682 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:24.559973 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:28:24.561576 #5187] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:28:24.562659 #5187] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:28:24.563385 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:28:24.564818 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.566298 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.567751 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.569011 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:24.570093 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:28:24.570653 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:24.571164 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:28:24.572427 #5187] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:24.572977 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:28:24.574097 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.575389 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.576634 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.578048 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.579772 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:28:24.580168 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:28:24.580485 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:28:24.581970 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:28:24.582336 #5187] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:28:24.583404 #5187] DEBUG -- : AREL (0.9ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:28:24.584582 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:24.585605 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.586775 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.587936 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.589327 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.591095 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:28:24.591547 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:28:24.591855 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:28:24.593781 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:28:24.594218 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:28:24.594514 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:28:24.595597 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:24.596717 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.598020 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.599409 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.601254 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.602475 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.604345 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.604875 #5187] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:28:24.605725 #5187] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:28:24.606973 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:28:24.607401 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:28:24.608455 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.609758 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.610911 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.612393 #5187] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:28:24.613987 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.615031 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.616067 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.617331 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:28:24.618310 #5187] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:28:24.618687 #5187] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:28:24.619099 #5187] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:24.620449 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:24.621457 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.622585 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.623814 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:28:24.625524 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:28:24.625950 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:24.626257 #5187] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:28:24.627188 #5187] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:24.627611 #5187] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:28:24.627947 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:28:24.628346 #5187] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:24.628763 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:24.629728 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:28:24.630952 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:28:24.632348 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:28:24.633301 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:28:24.635668 #5187] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:28:24.636132 #5187] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:28:24.637598 #5187] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:28:24.637925 #5187] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:28:25.731807 #5194] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:25.734650 #5194] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:28:25.735544 #5194] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:28:25.736694 #5194] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:28:25.751065 #5194] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:25.752378 #5194] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:25.753143 #5194] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:28:25.754149 #5194] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:28:25.754934 #5194] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:25.805531 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.811430 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.814792 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:28:25.819757 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:28:25.831904 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.842466 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:28:25.843536 #5194] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:25.844282 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:25.845232 #5194] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:28:25.846234 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.847361 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.849048 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.851840 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.853617 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.854058 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:28:25.855729 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.856136 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:28:25.857428 #5194] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:28:25.857752 #5194] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:28:25.859276 #5194] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:28:25.860158 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.861383 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.862443 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:28:25.863730 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:28:25.867165 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.868436 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.870077 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:28:25.870528 #5194] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:25.870839 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:25.872300 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.872773 #5194] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:25.873090 #5194] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:28:25.875388 #5194] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:28:25.877327 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.879420 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.880796 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.882200 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.883840 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.884217 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:28:25.885810 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.886143 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:28:25.887161 #5194] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:28:25.888303 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:28:25.889225 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.890353 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.891561 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.893176 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.895240 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.895719 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:28:25.898334 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.898768 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:28:25.899892 #5194] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:28:25.901328 #5194] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:28:25.902691 #5194] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:28:25.904052 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.905690 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.907329 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.911310 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.911999 #5194] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:25.912444 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:28:25.913365 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:28:25.914070 #5194] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:28:25.914886 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:28:25.926210 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.928483 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.930683 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.932906 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.935688 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.936304 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:28:25.938330 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.938741 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:28:25.939728 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:28:25.940963 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.942326 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.943739 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.945238 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.947149 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.947628 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:28:25.949279 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.949659 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:28:25.950544 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:28:25.951476 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.952766 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.954132 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.955936 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.957312 #5194] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.959726 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.960269 #5194] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.961203 #5194] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:28:25.962373 #5194] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:28:25.962809 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:28:25.963751 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.964870 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.966018 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.967349 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:28:25.968768 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.969840 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.970979 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.972713 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:28:25.973748 #5194] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:28:25.974169 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:28:25.975189 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:28:25.976131 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.977247 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.978395 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:25.979965 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.980314 #5194] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:28:25.981167 #5194] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:28:25.981600 #5194] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:28:25.981847 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:28:25.982303 #5194] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:28:25.982786 #5194] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:28:25.983635 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.984814 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:25.986672 #5194] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:25.987418 #5194] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:25.987878 #5194] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:28:25.988792 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:28:25.989276 #5194] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:28:25.989616 #5194] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:28:27.067047 #5198] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:28:27.070138 #5198] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:28:27.071413 #5198] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:28:27.073320 #5198] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:28:27.077319 #5198] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:27.078456 #5198] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:28:27.079293 #5198] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:28:27.080399 #5198] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:28:27.081110 #5198] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:28:27.144167 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.149527 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.152286 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:28:27.156202 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:28:27.157425 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.170796 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:28:27.171688 #5198] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:28:27.172416 #5198] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:28:27.173514 #5198] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:28:27.174752 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.176117 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.178140 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.181443 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.183599 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.184802 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.185846 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:28:27.187089 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:28:27.188430 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.189662 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.191315 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:28:27.191789 #5198] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:28:27.192125 #5198] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:28:27.193572 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:27.194136 #5198] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:28:27.194453 #5198] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:28:27.197151 #5198] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:28:27.198545 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.199910 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.201399 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.202900 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.205275 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.206618 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.207858 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.209212 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.211047 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.222817 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.223981 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.226310 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:27.226853 #5198] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:28:27.227183 #5198] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:28:27.228048 #5198] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:28:27.228809 #5198] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:28:27.229889 #5198] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:28:27.231086 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.232357 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.233612 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.234923 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.236807 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.237987 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.239178 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.240496 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.242283 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.243440 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.244634 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.246365 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.247402 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.249366 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.249928 #5198] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:27.250875 #5198] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:28:27.251894 #5198] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:28:27.252326 #5198] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:28:27.253247 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.254503 #5198] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.255830 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.257279 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:28:27.258614 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.259683 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.261790 #5198] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.263856 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:28:27.265603 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.266693 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.267790 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:28:27.269575 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.270851 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:28:27.272648 #5198] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:28:27.273180 #5198] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 26], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:28:27.273635 #5198] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 26 D, [2015-08-02T09:28:27.274464 #5198] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:28:27.274914 #5198] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 26]] D, [2015-08-02T09:28:27.275266 #5198] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 26 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:30:42.936324 #5456] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:42.936544 #5456] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:42.939418 #5456] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:30:42.941168 #5456] DEBUG -- : SQL (1.4ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:42.942169 #5456] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:42.943120 #5456] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:30:42.946923 #5456] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:42.947456 #5456] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:42.948062 #5456] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:30:42.948808 #5456] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:42.949243 #5456] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:42.949875 #5456] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:42.950606 #5456] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:42.987093 #5456] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:42.994297 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:42.999868 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.002193 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:43.006838 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.007889 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:43.016384 #5456] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:43.016849 #5456] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:43.017560 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:43.019053 #5456] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:43.019784 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.020786 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.022419 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.024098 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.025835 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:43.026148 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:43.026407 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:43.027659 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:43.027930 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:43.028179 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:43.029350 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:43.030132 #5456] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:43.030263 #5456] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:43.030357 #5456] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:43.030752 #5456] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:43.030984 #5456] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:43.031536 #5456] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:43.032167 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.032986 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.033811 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:43.034698 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.035590 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:43.036554 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:43.037699 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:43.037940 #5456] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:43.038167 #5456] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:43.039165 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:43.039424 #5456] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:43.039660 #5456] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:43.042078 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:43.042893 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.043957 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.045137 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.046414 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.047830 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:43.048185 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:43.048522 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:43.049765 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:43.050065 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:43.050361 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:43.051324 #5456] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:43.051912 #5456] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:43.052777 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.053902 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.055046 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.056144 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.057463 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:43.067234 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:43.067596 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:43.069464 #5456] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:43.069829 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:43.070179 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:43.071550 #5456] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:43.072637 #5456] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:43.073150 #5456] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:43.074131 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.075334 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.076532 #5456] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.078617 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:43.079507 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:43.079861 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:43.080220 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:43.081105 #5456] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:43.081620 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:43.082459 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.083553 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.084515 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.085584 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.086883 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:43.087189 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:43.087479 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:43.088878 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:43.089187 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:43.089418 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:43.090218 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:43.091046 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.091954 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.092846 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.093885 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.095181 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:43.095495 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:43.095769 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:43.096930 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:43.097177 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:43.097401 #5456] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:43.098220 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:43.099009 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.099880 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.100905 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.102144 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.103028 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.105017 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.105318 #5456] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:43.106267 #5456] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:43.107453 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:43.107822 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:43.108444 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.109354 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.110317 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.111436 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:43.112564 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.113478 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.114410 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.115398 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:43.116040 #5456] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:43.116310 #5456] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:43.116649 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:43.117623 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:43.118235 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.119210 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.120276 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:43.121519 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:43.121844 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:43.122150 #5456] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:43.122958 #5456] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:43.123342 #5456] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:43.123633 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:43.123921 #5456] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:43.124234 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:43.124871 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:43.125828 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:43.129442 #5456] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:43.130513 #5456] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:43.130904 #5456] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:43.131321 #5456] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:43.132419 #5456] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:43.132863 #5456] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:44.198382 #5460] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:44.198583 #5460] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:44.201193 #5460] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:30:44.202009 #5460] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:44.202486 #5460] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:44.203080 #5460] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:30:44.206055 #5460] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:44.206436 #5460] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:44.207064 #5460] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:44.207821 #5460] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:44.208255 #5460] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:44.208859 #5460] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:44.209516 #5460] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:44.242549 #5460] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:44.249937 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.258038 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.261201 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:44.269013 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.270180 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:44.276348 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:44.276857 #5460] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:44.277553 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:44.279185 #5460] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:44.280369 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.281529 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.283238 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.285175 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.287393 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:44.287890 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:44.288189 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:44.289678 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:44.290036 #5460] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:44.290302 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:44.291491 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:44.292562 #5460] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:44.292788 #5460] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:44.293042 #5460] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:44.293544 #5460] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:44.293828 #5460] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:44.294536 #5460] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:44.295427 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.306033 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.307151 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:44.308405 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.309733 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:44.311000 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:44.312623 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:44.313010 #5460] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:44.313308 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:44.314980 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:44.315415 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:44.315689 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:44.318274 #5460] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:44.319208 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.320352 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.321477 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.322734 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.324203 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:44.324583 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:44.324870 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:44.326371 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:44.326728 #5460] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:44.327042 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:44.327943 #5460] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:44.328440 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:44.329444 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.330637 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.331590 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.332670 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.334239 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:44.334655 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:44.334991 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:44.336378 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:44.336727 #5460] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:44.336987 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:44.337883 #5460] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:44.338474 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:44.339213 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:44.340456 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.341851 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.343339 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.345073 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:44.345999 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:44.346410 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:44.346730 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:44.347759 #5460] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:44.348289 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:44.351213 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.352580 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.353917 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.355489 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.357274 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:44.357736 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:44.358070 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:44.359568 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:44.359924 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:44.360200 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:44.361295 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:44.362395 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.363654 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.365030 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.366430 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.367968 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:44.368388 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:44.368684 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:44.370188 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:44.370561 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:44.370821 #5460] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:44.371863 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:44.372809 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.373978 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.375205 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.376959 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.378068 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.381132 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.381825 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:44.383032 #5460] DEBUG -- : AREL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:44.384332 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:44.384888 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:44.386056 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.387270 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.388573 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.389975 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:44.391575 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.392808 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.394133 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.395521 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:44.396562 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:44.396959 #5460] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:44.397328 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:44.398534 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:44.401434 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.402810 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.404081 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:44.405781 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:44.406262 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:44.406593 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:44.407576 #5460] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:44.408058 #5460] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:44.408409 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:44.408831 #5460] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:44.409246 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:44.410166 #5460] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:44.412149 #5460] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:44.414350 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:44.415445 #5460] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:44.416022 #5460] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:44.416448 #5460] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:44.417729 #5460] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:44.418037 #5460] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:45.474344 #5464] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:45.474583 #5464] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:45.477315 #5464] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:30:45.478090 #5464] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:45.478638 #5464] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:45.479229 #5464] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:30:45.491233 #5464] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:45.491735 #5464] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:45.492396 #5464] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:45.493119 #5464] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:45.493435 #5464] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:45.494109 #5464] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:45.494806 #5464] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:45.526732 #5464] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:45.536121 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.542370 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.545121 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:45.550049 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.552095 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:45.560070 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:45.560839 #5464] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:45.561600 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:45.563417 #5464] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:45.564505 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.565710 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.567502 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.569435 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.572014 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:45.572582 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:45.573013 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:45.574660 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:45.575061 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:45.575381 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:45.576684 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:45.577796 #5464] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:45.578011 #5464] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:45.578265 #5464] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:45.578839 #5464] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:45.579163 #5464] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:45.582203 #5464] DEBUG -- : SQL (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:45.583144 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.584393 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.585539 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:45.586855 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.588299 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:45.589524 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:45.591179 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:45.591513 #5464] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:45.591771 #5464] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:45.593188 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:45.593512 #5464] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:45.593877 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:45.596730 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:45.597889 #5464] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.602826 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.609441 #5464] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.616748 #5464] DEBUG -- : AREL (0.5ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.618650 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:45.619093 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:45.619429 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:45.620968 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:45.621317 #5464] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:45.621599 #5464] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:45.622637 #5464] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:45.623138 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:45.624107 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.625237 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.626463 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.627741 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.629407 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:45.629886 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:45.630210 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:45.631950 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:45.632388 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:45.632706 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:45.633781 #5464] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:45.634438 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:45.635332 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:45.636521 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.637829 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.639185 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.640872 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:45.641726 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:45.642105 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:45.642388 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:45.643425 #5464] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:45.645905 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:45.646883 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.648068 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.649236 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.650477 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.652341 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:45.652821 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:45.653205 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:45.654926 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:45.655268 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:45.655525 #5464] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:45.656571 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:45.657667 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.658955 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.660387 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.661906 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.663549 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:45.663964 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:45.664279 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:45.665932 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:45.666356 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:45.666689 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:45.667839 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:45.668928 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.670188 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.671488 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.673814 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.675169 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.677689 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.678181 #5464] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:45.679168 #5464] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:45.680476 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:45.680889 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:45.681763 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.682967 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.684225 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.685576 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:45.687090 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.688218 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.689331 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.690637 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:45.691607 #5464] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:45.691992 #5464] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:45.692383 #5464] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:45.693596 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:45.696824 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.698146 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.700120 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:45.702429 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:45.703007 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:45.703415 #5464] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:45.704612 #5464] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:45.705172 #5464] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:45.705554 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:45.706001 #5464] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:45.706454 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:45.707468 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:45.708757 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:45.710771 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:45.711880 #5464] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:45.712595 #5464] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:45.713126 #5464] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:45.714438 #5464] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:45.714810 #5464] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:46.778631 #5468] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:46.778843 #5468] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:46.781489 #5468] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:30:46.782210 #5468] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:46.782705 #5468] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:46.783383 #5468] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:30:46.795557 #5468] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:46.796096 #5468] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:46.796757 #5468] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:46.797482 #5468] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:46.797822 #5468] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:46.798428 #5468] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:46.799071 #5468] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:46.831555 #5468] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:46.840757 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.848612 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.851592 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:46.858023 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.859349 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:46.866116 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:46.866664 #5468] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:46.867363 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:46.869060 #5468] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:46.869933 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.871248 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.873160 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.875243 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.877542 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:46.878013 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:46.878337 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:46.879865 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:46.880283 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:46.881062 #5468] DEBUG -- : AREL (0.5ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:46.882466 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:46.883558 #5468] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:46.883787 #5468] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:46.884002 #5468] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:46.884552 #5468] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:46.884911 #5468] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:46.885701 #5468] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:46.886659 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.888204 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.889561 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:46.893304 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.894962 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:46.896398 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:46.898133 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:46.898512 #5468] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:46.898817 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:46.900333 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:46.900671 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:46.900950 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:46.903683 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:46.904595 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.905833 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.907021 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.908281 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.909792 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:46.910162 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:46.910446 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:46.912055 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:46.912424 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:46.912729 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:46.913831 #5468] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:46.914395 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:46.915480 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.916705 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.917854 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.919072 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.920597 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:46.920956 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:46.921222 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:46.922622 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:46.922949 #5468] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:46.923170 #5468] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:46.924147 #5468] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:46.924815 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:46.925357 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:46.926488 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.927700 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.928936 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.930751 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:46.931547 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:46.931898 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:46.932181 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:46.933071 #5468] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:46.933508 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:46.934435 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.935530 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.936850 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.938040 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.939542 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:46.940745 #5468] DEBUG -- : SpecialPost Load (0.9ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:46.941075 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:46.942497 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:46.942839 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:46.943085 #5468] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:46.944083 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:46.945109 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.946205 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.947459 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.948880 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.950699 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:46.951162 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:46.951499 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:46.953050 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:46.953424 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:46.953714 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:46.954830 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:46.955908 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.957320 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.958685 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.960578 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.961837 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.964399 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.964904 #5468] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:46.965724 #5468] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:46.966837 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:46.967245 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:46.968025 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.969104 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.970230 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.971683 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:46.973178 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.974280 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.975398 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.976697 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:46.977704 #5468] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:46.978097 #5468] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:46.978511 #5468] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:46.979826 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:46.980831 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.981940 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.983253 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:46.984999 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:46.985417 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:46.985730 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:46.986686 #5468] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:46.987116 #5468] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:46.987452 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:46.987827 #5468] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:46.988217 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:46.989082 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:46.992396 #5468] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:46.994162 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:46.995035 #5468] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:46.995532 #5468] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:46.995928 #5468] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:46.997080 #5468] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:46.997423 #5468] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:48.056082 #5475] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:48.056308 #5475] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:48.059194 #5475] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:30:48.060434 #5475] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:48.060987 #5475] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:48.061723 #5475] DEBUG -- : SQL (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:30:48.066057 #5475] DEBUG -- : SQL (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:48.075780 #5475] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:48.076543 #5475] DEBUG -- : SQL (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:30:48.077228 #5475] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:48.077614 #5475] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:48.078293 #5475] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:48.079017 #5475] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:48.110970 #5475] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:48.118719 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.127664 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.132791 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:48.137644 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.138778 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:48.145230 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:48.145781 #5475] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:48.146570 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:48.148644 #5475] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:48.149590 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.151001 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.152964 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.155539 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.158021 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:48.158508 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:48.158892 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:48.160395 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:48.160772 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:48.161050 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:48.162398 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:48.163364 #5475] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:48.163574 #5475] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:48.163784 #5475] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:48.164255 #5475] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:48.164497 #5475] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:48.165132 #5475] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:48.165900 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.167117 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.168187 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:48.169514 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.170851 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:48.172104 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:48.173837 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:48.174194 #5475] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:48.176335 #5475] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:48.178130 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:48.178491 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:48.178783 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:48.182864 #5475] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:48.184050 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.186249 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.187916 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.189482 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.191455 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:48.191926 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:48.192281 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:48.193929 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:48.194319 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:48.194634 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:48.196374 #5475] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:48.196976 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:48.197980 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.199316 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.200455 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.201678 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.203212 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:48.203575 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:48.203856 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:48.205569 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:48.206039 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:48.206397 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:48.207617 #5475] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:48.208200 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:48.208729 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:48.209878 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.211136 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.212457 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.214115 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:48.214983 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:48.215352 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:48.215653 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:48.216697 #5475] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:48.217096 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:48.217988 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.219102 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.220355 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.221595 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.223090 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:48.223452 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:48.223746 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:48.225135 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:48.225468 #5475] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:48.225724 #5475] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:48.226760 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:48.227816 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.230830 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.232130 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.233519 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.235170 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:48.235559 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:48.235854 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:48.237600 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:48.238046 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:48.238376 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:48.239598 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:48.240891 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.242333 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.243926 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.246071 #5475] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.247390 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.250017 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.250531 #5475] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:48.251446 #5475] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:48.252577 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:48.253018 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:48.253826 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.254967 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.256194 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.257591 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:48.258963 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.260162 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.261354 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.262574 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:48.263550 #5475] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:48.263878 #5475] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:48.264215 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:48.265327 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:48.266093 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.267216 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.268419 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:48.269993 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:48.270354 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:48.270623 #5475] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:48.271689 #5475] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:48.272086 #5475] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:48.272392 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:48.272753 #5475] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:48.273119 #5475] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:48.273940 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:48.275021 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:48.276626 #5475] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:48.277413 #5475] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:48.277914 #5475] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:48.278312 #5475] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:48.279781 #5475] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:48.280484 #5475] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:49.339162 #5479] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:49.339387 #5479] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:49.342257 #5479] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:30:49.343722 #5479] DEBUG -- : SQL (1.2ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:49.344366 #5479] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:49.344970 #5479] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:30:49.348973 #5479] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:49.349508 #5479] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:49.350146 #5479] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:49.350892 #5479] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:49.359743 #5479] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:49.360500 #5479] DEBUG -- : SQL (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:30:49.361230 #5479] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:49.396113 #5479] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:49.403682 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.411569 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.417015 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:49.421892 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.423152 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:49.428537 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:49.429147 #5479] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:49.429919 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:49.431187 #5479] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:49.432098 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.433328 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.435171 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.436540 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.438125 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:49.438531 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:49.438860 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:49.440366 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:49.440714 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:49.440951 #5479] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:49.442247 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:49.443289 #5479] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:49.443499 #5479] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:49.443728 #5479] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:49.444254 #5479] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:49.444499 #5479] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:49.445169 #5479] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:49.446103 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.447545 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.448731 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:49.450019 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.451348 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:49.452576 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:49.454130 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:49.454514 #5479] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:49.454790 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:49.456173 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:49.456553 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:49.456846 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:49.460329 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:49.461397 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.462519 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.463711 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.465082 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.466642 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:49.467026 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:49.467329 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:49.468737 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:49.469106 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:49.469371 #5479] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:49.470387 #5479] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:49.470873 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:49.471844 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.473035 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.474653 #5479] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.486762 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.496083 #5479] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:49.496854 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:49.497289 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:49.499329 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:49.499803 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:49.500142 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:49.501287 #5479] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:49.502041 #5479] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:49.502724 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:49.504006 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.505371 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.506639 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.507892 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:49.508755 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:49.509157 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:49.509470 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:49.510669 #5479] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:49.511248 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:49.512462 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.513907 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.515279 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.516825 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.518688 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:49.519166 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:49.519554 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:49.521156 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:49.521555 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:49.521850 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:49.522925 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:49.523981 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.525199 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.526382 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.527868 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.531622 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:49.532032 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:49.532349 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:49.533819 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:49.534164 #5479] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:49.534405 #5479] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:49.535400 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:49.536605 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.537936 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.539338 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.541074 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.542260 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.544099 #5479] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.544574 #5479] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:49.545533 #5479] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:49.547014 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:49.547463 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:49.548306 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.549454 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.550599 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.551947 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:49.553352 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.554692 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.556011 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.557417 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:49.558444 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:49.558828 #5479] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:49.559208 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:49.560407 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:49.561219 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.562388 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.563506 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:49.565081 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:49.565457 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:49.565740 #5479] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:49.566683 #5479] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:49.567082 #5479] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:49.567384 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:49.567759 #5479] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:49.568166 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:49.568980 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:49.570219 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:49.571316 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:49.572070 #5479] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:49.572535 #5479] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:49.572929 #5479] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:49.574067 #5479] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:49.574371 #5479] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:50.640188 #5483] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:50.640402 #5483] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:50.642996 #5483] DEBUG -- : SQL (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:30:50.643719 #5483] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:50.644290 #5483] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:50.644882 #5483] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:30:50.657303 #5483] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:50.657796 #5483] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:50.658403 #5483] DEBUG -- : SQL (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:30:50.659100 #5483] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:50.659490 #5483] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:50.660058 #5483] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:30:50.660712 #5483] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:50.697642 #5483] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:50.705597 #5483] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.713202 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.715633 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:50.719449 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.720708 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:50.725317 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:50.725849 #5483] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:50.726769 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:50.728257 #5483] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:50.729322 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.730453 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.732407 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.733885 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.735561 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:50.735989 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:50.736292 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:50.737778 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:50.738121 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:50.738365 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:50.739573 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:50.740487 #5483] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:50.740667 #5483] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:50.740860 #5483] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:50.741339 #5483] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:50.741586 #5483] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:50.742224 #5483] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:50.742981 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.744227 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.745336 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:50.746778 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.748248 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:50.751778 #5483] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:50.753571 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:50.753934 #5483] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:50.754213 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:50.755757 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:50.756143 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:50.756456 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:50.758168 #5483] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:50.759036 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.760218 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.761670 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.763071 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.764644 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:50.765035 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:50.765348 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:50.766876 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:50.767247 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:50.767529 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:50.768581 #5483] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:50.769086 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:50.770097 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.771390 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.772623 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.773901 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.775400 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:50.775756 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:50.776064 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:50.777431 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:50.777767 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:50.778017 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:50.778909 #5483] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:50.779460 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:50.780023 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:50.781203 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.782451 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.783649 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.784747 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:50.785513 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:50.785867 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:50.786284 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:50.787221 #5483] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:50.787676 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:50.788549 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.789674 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.790785 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.792065 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.793613 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:50.794016 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:50.794334 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:50.795905 #5483] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:50.796325 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:50.796638 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:50.798630 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:50.799671 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.800783 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.801945 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.803156 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.804807 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:50.805186 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:50.805463 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:50.806854 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:50.807229 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:50.807484 #5483] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:50.808463 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:50.809419 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.810540 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.811736 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.813379 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.814578 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.816363 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.816832 #5483] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:50.817792 #5483] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:50.818944 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:50.819331 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:50.820152 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.821266 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.822409 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.823735 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:50.825170 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.826247 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.827355 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.828710 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:50.829694 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:50.830081 #5483] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:50.830461 #5483] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:50.831693 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:50.832556 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.833701 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.834840 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:50.836541 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:50.836910 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:50.837189 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:50.838121 #5483] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:50.838529 #5483] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:50.838887 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:50.839361 #5483] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:50.839763 #5483] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:50.840627 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:50.841859 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:50.843028 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:50.843825 #5483] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:50.844360 #5483] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:50.844747 #5483] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:50.848072 #5483] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:50.848506 #5483] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:51.929435 #5488] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:51.929688 #5488] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:51.932417 #5488] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:30:51.933645 #5488] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:51.934601 #5488] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:51.935594 #5488] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:30:51.949206 #5488] DEBUG -- : SQL (1.0ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:51.950225 #5488] DEBUG -- : SQL (0.2ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:51.951202 #5488] DEBUG -- : SQL (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:30:51.952453 #5488] DEBUG -- : SQL (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:51.953207 #5488] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:51.953894 #5488] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:51.954708 #5488] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:51.988897 #5488] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:51.998419 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.004338 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.006779 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:52.010663 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.011833 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:52.016740 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:52.017250 #5488] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:52.018200 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:52.019435 #5488] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:52.020455 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.021592 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.023407 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.024776 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.026531 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:52.026989 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:52.027311 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:52.028869 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:52.029257 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:52.029603 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:52.031014 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:52.032047 #5488] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:52.032239 #5488] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:52.032432 #5488] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:52.032949 #5488] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:52.033241 #5488] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:52.033975 #5488] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:52.034877 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.036088 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.037703 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:52.039371 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.041026 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:52.044781 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:52.046769 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:52.047216 #5488] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:52.047526 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:52.049001 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:52.049390 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:52.049679 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:52.051297 #5488] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:52.052144 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.053320 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.054631 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.055834 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.057299 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:52.057681 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:52.057967 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:52.059337 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:52.059675 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:52.059928 #5488] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:52.060962 #5488] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:52.061447 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:52.062426 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.063658 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.064900 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.066156 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.067673 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:52.068070 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:52.068363 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:52.069786 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:52.070127 #5488] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:52.070373 #5488] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:52.071296 #5488] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:52.071860 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:52.072402 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:52.073456 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.074647 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.075980 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.076998 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:52.077798 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:52.078191 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:52.078513 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:52.079712 #5488] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:52.080291 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:52.081444 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.082669 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.084164 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.085651 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.087413 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:52.087921 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:52.088253 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:52.089669 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:52.090050 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:52.090335 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:52.092269 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:52.093481 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.094638 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.095792 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.097003 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.098573 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:52.098984 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:52.099285 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:52.100729 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:52.101080 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:52.101351 #5488] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:52.102324 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:52.103286 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.104424 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.105642 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.107223 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.108447 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.110261 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.110729 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:52.111788 #5488] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:52.113136 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:52.113627 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:52.114557 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.115961 #5488] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.117444 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.119090 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:52.120637 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.121777 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.122899 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.124115 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:52.125009 #5488] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:52.125360 #5488] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:52.125706 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:52.126781 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:52.127571 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.128771 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.130151 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:52.131890 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:52.132325 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:52.132691 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:52.133659 #5488] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:52.134100 #5488] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:52.134420 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:52.134808 #5488] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:52.135234 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:52.136097 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:52.137244 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:52.138337 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:52.139121 #5488] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:52.139636 #5488] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:52.140039 #5488] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:52.143041 #5488] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:52.143412 #5488] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:53.226627 #5497] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:53.226865 #5497] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:53.229802 #5497] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:30:53.231008 #5497] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:53.231962 #5497] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:53.233000 #5497] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:30:53.246437 #5497] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:53.247017 #5497] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:53.247698 #5497] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:53.248430 #5497] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:53.248815 #5497] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:53.249448 #5497] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:53.250134 #5497] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:53.282730 #5497] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:53.292062 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.297984 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.300468 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:53.304456 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.305685 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:53.310400 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:53.310996 #5497] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:53.311905 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:53.313438 #5497] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:53.314517 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.315689 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.317557 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.319091 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.320809 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:53.321396 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:53.321704 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:53.323288 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:53.323644 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:53.323948 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:53.325179 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:53.326145 #5497] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:53.326353 #5497] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:53.326573 #5497] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:53.327060 #5497] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:53.327309 #5497] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:53.327986 #5497] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:53.328748 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.330021 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.331102 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:53.332284 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.335300 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:53.336697 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:53.338528 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:53.339003 #5497] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:53.339346 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:53.341076 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:53.341479 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:53.341805 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:53.343561 #5497] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:53.344535 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.345753 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.346933 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.348237 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.349878 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:53.350254 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:53.350545 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:53.352000 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:53.352389 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:53.352645 #5497] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:53.353637 #5497] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:53.354130 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:53.355147 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.356378 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.357664 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.358956 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.360571 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:53.360961 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:53.361251 #5497] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:53.362703 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:53.363051 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:53.363307 #5497] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:53.364414 #5497] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:53.365046 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:53.365650 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:53.366786 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.368349 #5497] DEBUG -- : AREL (0.4ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.377240 #5497] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.380977 #5497] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:53.382232 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:53.382761 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:53.383197 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:53.388519 #5497] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:53.389205 #5497] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:53.390619 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.392155 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.393615 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.395264 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.397143 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:53.397605 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:53.397964 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:53.399604 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:53.399975 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:53.401153 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:53.402155 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:53.403227 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.404407 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.405651 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.406959 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.408519 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:53.408907 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:53.409210 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:53.410788 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:53.411169 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:53.411449 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:53.412452 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:53.413488 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.414784 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.416070 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.417692 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.418818 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.420811 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.421315 #5497] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:53.422163 #5497] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:53.423316 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:53.423740 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:53.424572 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.425638 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.426696 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.428003 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:53.429452 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.430665 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.431727 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.432911 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:53.433954 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:53.434354 #5497] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:53.434727 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:53.435865 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:53.436695 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.437810 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.439034 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:53.440742 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:53.441153 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:53.441452 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:53.442551 #5497] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:53.442961 #5497] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:53.443314 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:53.443692 #5497] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:53.444092 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:53.444978 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:53.446258 #5497] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:53.447461 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:53.450092 #5497] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:53.450756 #5497] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:53.451172 #5497] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:53.452372 #5497] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:53.452695 #5497] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:54.526411 #5501] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:54.526643 #5501] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:54.529729 #5501] DEBUG -- : SQL (3.0ms) DROP TABLE "authors" D, [2015-08-02T09:30:54.530504 #5501] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:54.531057 #5501] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:54.531658 #5501] DEBUG -- : SQL (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:30:54.543847 #5501] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:54.544306 #5501] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:54.544955 #5501] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:54.545736 #5501] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:54.546110 #5501] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:54.546731 #5501] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:54.547462 #5501] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:54.580015 #5501] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:54.589658 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.595257 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.597660 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:54.601708 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.602854 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:54.607417 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:54.607944 #5501] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:54.608640 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:54.610005 #5501] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:54.611147 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.612448 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.614427 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.615911 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.617526 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:54.617950 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:54.618245 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:54.619649 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:54.619997 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:54.620245 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:54.621412 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:54.622375 #5501] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:54.622566 #5501] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:54.622782 #5501] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:54.623385 #5501] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:54.623635 #5501] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:54.624279 #5501] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:54.625014 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.626129 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.627249 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:54.628987 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.632775 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:54.634171 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:54.635953 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:54.636391 #5501] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:54.636679 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:54.638276 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:54.638685 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:54.639033 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:54.640644 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:54.641556 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.642720 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.643908 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.645211 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.646877 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:54.647284 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:54.647590 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:54.649236 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:54.649598 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:54.649876 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:54.650971 #5501] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:54.651535 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:54.652666 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.653785 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.654914 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.656234 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.657861 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:54.658241 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:54.658539 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:54.659964 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:54.660327 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:54.660580 #5501] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:54.661560 #5501] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:54.662122 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:54.662680 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:54.663866 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.665046 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.666398 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.667536 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:54.668368 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:54.668744 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:54.669047 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:54.670081 #5501] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:54.670529 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:54.671436 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.672573 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.673715 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.674976 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.676534 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:54.676915 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:54.677205 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:54.678825 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:54.679215 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:54.680493 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:54.681664 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:54.682736 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.683816 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.684897 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.686184 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.687764 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:54.688142 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:54.688442 #5501] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:54.690244 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:54.690734 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:54.691062 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:54.692259 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:54.693483 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.694723 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.696052 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.698089 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.699440 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.701716 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.702253 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:54.703198 #5501] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:54.704387 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:54.704839 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:54.705712 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.706855 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.708003 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.709464 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:54.710912 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.712017 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.713304 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.714674 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:54.715659 #5501] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:54.716053 #5501] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:54.716417 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:54.717570 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:54.718389 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.719535 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.720717 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:54.722492 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:54.722875 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:54.723171 #5501] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:54.724126 #5501] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:54.724566 #5501] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:54.724972 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:54.725391 #5501] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:54.725789 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:54.726637 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:54.727801 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:54.728943 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:54.731724 #5501] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:54.732359 #5501] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:54.732775 #5501] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:54.733994 #5501] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:54.734300 #5501] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:55.886014 #5505] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:55.886248 #5505] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:55.889208 #5505] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:30:55.890371 #5505] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:55.890868 #5505] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:55.891610 #5505] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:30:55.907036 #5505] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:55.907563 #5505] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:55.908235 #5505] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:55.908935 #5505] DEBUG -- : SQL (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:55.909355 #5505] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:55.909937 #5505] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:30:55.910635 #5505] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:55.946402 #5505] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:55.955864 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:55.963041 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:55.966177 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:55.970931 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:55.972969 #5505] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:55.979450 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:55.979927 #5505] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:55.980573 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:55.981651 #5505] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:55.982505 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:55.983612 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:55.985336 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:55.986746 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:55.988420 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:55.988808 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:55.989089 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:55.990521 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:55.990875 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:55.991123 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:55.992327 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:55.993239 #5505] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:55.993451 #5505] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:55.993650 #5505] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:55.994141 #5505] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:55.994407 #5505] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:55.995029 #5505] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:55.995982 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:55.997402 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:55.998789 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:56.000343 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.002022 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:56.005029 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:56.008100 #5505] DEBUG -- : AREL (0.3ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:56.008753 #5505] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:56.009130 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:56.011707 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:56.012201 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:56.012576 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:56.014724 #5505] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:56.015987 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.017427 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.018876 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.020481 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.022570 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:56.023135 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:56.023490 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:56.025269 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:56.025703 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:56.026025 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:56.027777 #5505] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:56.028468 #5505] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:56.029867 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.031242 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.032577 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.034109 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.035859 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:56.036326 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:56.036687 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:56.038299 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:56.038694 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:56.038987 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:56.039971 #5505] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:56.040560 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:56.041126 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:56.042256 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.043423 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.045005 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.046345 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:56.047478 #5505] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:56.048028 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:56.048413 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:56.049460 #5505] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:56.049922 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:56.050880 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.052068 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.053256 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.054638 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.056267 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:56.056684 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:56.056992 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:56.058518 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:56.058893 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:56.059161 #5505] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:56.061205 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:56.062320 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.063565 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.064760 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.066022 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.067767 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:56.068193 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:56.068532 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:56.070076 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:56.070464 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:56.070766 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:56.071813 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:56.072857 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.074025 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.075238 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.076919 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.078273 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.080398 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.080889 #5505] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:56.081859 #5505] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:56.083041 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:56.083446 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:56.084285 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.085419 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.086656 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.088260 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:56.089644 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.090792 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.091969 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.093259 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:56.094229 #5505] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:56.094611 #5505] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:56.094975 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:56.096173 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:56.097105 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.098270 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.099515 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:56.101107 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:56.101510 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:56.101813 #5505] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:56.102694 #5505] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:56.103125 #5505] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:56.103456 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:56.103854 #5505] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:56.104255 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:56.105131 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:56.106306 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:56.107621 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:56.108757 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:56.111216 #5505] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:56.111761 #5505] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:56.113190 #5505] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:56.113554 #5505] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:57.268141 #5509] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:57.268391 #5509] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:57.270899 #5509] DEBUG -- : SQL (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:30:57.271612 #5509] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:57.272228 #5509] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:57.272913 #5509] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:30:57.284730 #5509] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:57.285203 #5509] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:57.285837 #5509] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:57.286613 #5509] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:57.287091 #5509] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:57.287698 #5509] DEBUG -- : SQL (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:30:57.288282 #5509] DEBUG -- : SQL (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:57.321566 #5509] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:57.331321 #5509] DEBUG -- : AREL (2.0ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.336667 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.339078 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:57.343486 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.344681 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:57.350077 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:57.350760 #5509] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:57.351747 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:57.353060 #5509] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:57.354131 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.355518 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.357361 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.359070 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.360866 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:57.361337 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:57.361661 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:57.363379 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:57.363764 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:57.364072 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:57.365252 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:57.366219 #5509] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:57.366419 #5509] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:57.366630 #5509] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:57.367123 #5509] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:57.367374 #5509] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:57.368063 #5509] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:57.368893 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.370346 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.371661 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:57.373129 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.374486 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:57.377814 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:57.379500 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:57.379860 #5509] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:57.380146 #5509] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:57.381684 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:57.382070 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:57.382377 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:57.384093 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:57.385084 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.386298 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.387628 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.388994 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.390807 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:57.391277 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:57.391624 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:57.393128 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:57.393546 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:57.393838 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:57.394944 #5509] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:57.395465 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:57.396652 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.397942 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.399226 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.400626 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.402215 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:57.402622 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:57.402923 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:57.404477 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:57.404899 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:57.405205 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:57.406397 #5509] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:57.407201 #5509] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:57.407971 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:57.409479 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.410878 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.412497 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.413753 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:57.414757 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:57.415234 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:57.415614 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:57.416685 #5509] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:57.417201 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:57.418260 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.419435 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.421013 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.422585 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.424220 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:57.424621 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:57.424939 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:57.426910 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:57.427486 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:57.427838 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:57.430109 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:57.431334 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.432615 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.433997 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.435357 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.437104 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:57.437529 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:57.437879 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:57.439381 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:57.439777 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:57.440073 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:57.441180 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:57.443037 #5509] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.444539 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.446049 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.447758 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.448987 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.451019 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.451538 #5509] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:57.452506 #5509] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:57.453700 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:57.454151 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:57.455042 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.456231 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.457476 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.458890 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:57.460531 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.461799 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.463155 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.464572 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:57.465600 #5509] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:57.466017 #5509] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:57.466412 #5509] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:57.468091 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:57.469329 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.470562 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.471661 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:57.473305 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:57.473710 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:57.474031 #5509] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:57.475088 #5509] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:57.475536 #5509] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:57.475906 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:57.476324 #5509] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:57.476727 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:57.477707 #5509] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:57.479036 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:57.480141 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:57.481022 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:57.483280 #5509] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:57.483857 #5509] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:57.485371 #5509] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:57.485748 #5509] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:58.625990 #5516] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:58.626221 #5516] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:58.629117 #5516] DEBUG -- : SQL (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:30:58.630359 #5516] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:58.631332 #5516] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:58.632399 #5516] DEBUG -- : SQL (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:30:58.645315 #5516] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:58.645860 #5516] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:58.652769 #5516] DEBUG -- : SQL (6.8ms) DROP TABLE "taggings" D, [2015-08-02T09:30:58.658416 #5516] DEBUG -- : SQL (5.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:58.659385 #5516] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:58.666356 #5516] DEBUG -- : SQL (6.8ms) DROP TABLE "tags" D, [2015-08-02T09:30:58.667462 #5516] DEBUG -- : SQL (0.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:58.702811 #5516] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:58.712042 #5516] DEBUG -- : AREL (1.9ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.718540 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.721566 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:58.726520 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.728287 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:58.734080 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:58.734657 #5516] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:58.735468 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:58.736748 #5516] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:58.737766 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.739106 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.741165 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.742736 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.744453 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:30:58.744877 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:58.745203 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:30:58.746873 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:30:58.747314 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:30:58.747622 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:30:58.749003 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:58.750059 #5516] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:58.750270 #5516] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:58.750504 #5516] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:30:58.751054 #5516] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:58.751355 #5516] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:30:58.752182 #5516] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:30:58.753097 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.755134 #5516] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.756445 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:58.757982 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.760626 #5516] DEBUG -- : AREL (0.3ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:30:58.764791 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:30:58.766862 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:30:58.767372 #5516] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:30:58.767723 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:30:58.769697 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:30:58.770166 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:30:58.770543 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:30:58.772419 #5516] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:30:58.773490 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.774760 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.776826 #5516] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.778573 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.780209 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:30:58.780668 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:30:58.780999 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:30:58.783015 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:30:58.783533 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:58.783906 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:30:58.785113 #5516] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:30:58.785625 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:30:58.786702 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.787908 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.789215 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.790577 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.792237 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:30:58.792648 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:30:58.792949 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:30:58.794469 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:30:58.794867 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:58.795158 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:30:58.796303 #5516] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:30:58.797152 #5516] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:30:58.797752 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:30:58.798950 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.800137 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.801364 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.802459 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:58.803264 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:30:58.803635 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:58.803941 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:30:58.804909 #5516] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:30:58.805355 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:30:58.806310 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.807658 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.808854 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.810300 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.812030 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:30:58.812444 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:30:58.812763 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:30:58.814316 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:30:58.814689 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:30:58.814956 #5516] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:30:58.816985 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:58.818134 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.819373 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.820595 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.821874 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.823479 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:30:58.823868 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:30:58.824175 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:30:58.825813 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:30:58.826236 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:30:58.826544 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:30:58.827554 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:58.828742 #5516] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.830061 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.831458 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.833210 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.834524 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.836454 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.836967 #5516] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:30:58.837816 #5516] DEBUG -- : AREL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:30:58.839034 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:30:58.839472 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:30:58.840320 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.841449 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.842529 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.843893 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:30:58.845233 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.846336 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.847670 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.848923 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:30:58.849901 #5516] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:30:58.850309 #5516] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:30:58.850695 #5516] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:30:58.851785 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:58.852632 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.853769 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.855038 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:58.856798 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:30:58.857208 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:58.857528 #5516] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:30:58.858377 #5516] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:58.858796 #5516] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:30:58.859126 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:30:58.859518 #5516] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:30:58.859913 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:30:58.860791 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:58.861954 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:58.863055 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:30:58.863932 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:58.866177 #5516] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:30:58.866641 #5516] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:30:58.867927 #5516] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:30:58.868251 #5516] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:30:59.907252 #5520] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:30:59.907462 #5520] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:59.910439 #5520] DEBUG -- : SQL (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:30:59.911671 #5520] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:30:59.912658 #5520] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:59.913612 #5520] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:30:59.927103 #5520] DEBUG -- : SQL (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:59.927577 #5520] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:59.928304 #5520] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:30:59.929092 #5520] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:30:59.929435 #5520] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:30:59.930066 #5520] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:30:59.930762 #5520] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:30:59.963310 #5520] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:30:59.972715 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:59.978182 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:59.980584 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:30:59.984550 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:30:59.985738 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:30:59.990234 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:30:59.990725 #5520] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:30:59.991542 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:30:59.992890 #5520] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:30:59.994077 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:30:59.995285 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:30:59.997228 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:30:59.998587 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.000160 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:31:00.000564 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:00.000855 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:31:00.002295 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:31:00.002669 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:31:00.002922 #5520] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:31:00.004224 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:00.005164 #5520] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:00.005352 #5520] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:00.005594 #5520] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:00.006061 #5520] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:00.006302 #5520] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:00.006937 #5520] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:00.007912 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.009190 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.010406 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:31:00.011852 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.013282 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:31:00.017114 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:31:00.018696 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:31:00.019093 #5520] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:00.019370 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:00.020766 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:31:00.021117 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:00.021405 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:31:00.023269 #5520] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:31:00.024246 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.025561 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.026930 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.028314 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.030101 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:31:00.030567 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:31:00.030951 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:31:00.032594 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:31:00.033012 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:00.033324 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:31:00.034370 #5520] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:00.034877 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:31:00.035886 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.037030 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.038185 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.039501 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.041122 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:31:00.041490 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:31:00.041772 #5520] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:31:00.043171 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:31:00.043519 #5520] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:00.043765 #5520] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:31:00.044694 #5520] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:00.045256 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:31:00.045796 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:31:00.047011 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.048581 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.049740 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.050884 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:00.051658 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:31:00.052021 #5520] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:00.052323 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:31:00.053405 #5520] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:00.053868 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:31:00.054949 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.056349 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.057748 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.059263 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.061077 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:31:00.061601 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:31:00.061989 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:31:00.063927 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:31:00.064412 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:31:00.064746 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:31:00.066877 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:00.068054 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.069266 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.070464 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.071714 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.073377 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:31:00.073829 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:31:00.074131 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:31:00.075549 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:31:00.075908 #5520] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:31:00.076164 #5520] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:31:00.077109 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:00.078113 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.079304 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.080489 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.082250 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.083526 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.085416 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.086094 #5520] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:31:00.087016 #5520] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:31:00.088199 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:31:00.088619 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:31:00.089425 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.090540 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.091743 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.093084 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:31:00.094479 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.095839 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.097485 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.098929 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:31:00.099937 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:31:00.100333 #5520] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:31:00.100723 #5520] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:00.101924 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:00.102803 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.104103 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.105425 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:00.107203 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:31:00.107616 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:00.107910 #5520] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:31:00.108969 #5520] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:00.109399 #5520] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:00.109728 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:00.110138 #5520] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:00.110546 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:00.111467 #5520] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:00.112629 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:00.113750 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:31:00.114561 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:00.116578 #5520] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:31:00.117067 #5520] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:31:00.118870 #5520] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:31:00.119179 #5520] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:01.179981 #5524] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:01.180214 #5524] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:01.182987 #5524] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:01.184219 #5524] DEBUG -- : SQL (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:01.185161 #5524] DEBUG -- : SQL (0.2ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:31:01.186112 #5524] DEBUG -- : SQL (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:01.199175 #5524] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:01.199631 #5524] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:01.200322 #5524] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:01.201058 #5524] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:01.201406 #5524] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:31:01.202077 #5524] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:01.203005 #5524] DEBUG -- : SQL (0.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:01.236442 #5524] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:01.246078 #5524] DEBUG -- : AREL (2.0ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.253531 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.256452 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:31:01.260948 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.262983 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:31:01.270612 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:31:01.271298 #5524] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:01.272220 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:01.273708 #5524] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:01.275150 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.276580 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.278838 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.280719 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.282779 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:31:01.283298 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:01.283635 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:31:01.285387 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:31:01.285862 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:31:01.286167 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:31:01.287542 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:01.288725 #5524] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:01.288978 #5524] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:01.289217 #5524] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:01.289784 #5524] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:01.290069 #5524] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:01.290801 #5524] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:01.291667 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.293139 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.294480 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:31:01.296206 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.297900 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:31:01.301461 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:31:01.303160 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:31:01.303676 #5524] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:01.303948 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:01.305573 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:31:01.305947 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:01.306252 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:31:01.307899 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:31:01.308824 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.310061 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.311274 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.312618 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.314260 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:31:01.314740 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:31:01.315052 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:31:01.316605 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:31:01.316950 #5524] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:01.317213 #5524] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:31:01.318240 #5524] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:01.318742 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:31:01.319730 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.320931 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.322152 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.323493 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.325123 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:31:01.325499 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:31:01.325781 #5524] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:31:01.327225 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:31:01.327551 #5524] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:01.327805 #5524] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:31:01.328825 #5524] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:01.329395 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:31:01.329988 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:31:01.331407 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.332636 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.333799 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.334829 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:01.335608 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:31:01.335976 #5524] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:01.336272 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:31:01.337260 #5524] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:01.337730 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:31:01.338654 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.339740 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.340860 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.342129 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.343773 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:31:01.344158 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:31:01.344465 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:31:01.346421 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:31:01.347053 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:31:01.347491 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:31:01.349968 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:01.351157 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.353162 #5524] DEBUG -- : AREL (0.3ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.354418 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.355699 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.357710 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:31:01.358149 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:31:01.358502 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:31:01.360163 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:31:01.360628 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:31:01.360911 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:31:01.361982 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:01.363055 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.364316 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.365516 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.367155 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.368289 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.370177 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.370654 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:31:01.371600 #5524] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:31:01.372835 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:31:01.373311 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:31:01.374361 #5524] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.375588 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.376646 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.378043 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:31:01.379459 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.380740 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.381941 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.383251 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:31:01.384231 #5524] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:31:01.384628 #5524] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:31:01.385033 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:01.386158 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:01.387005 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.388055 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.389107 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:01.390811 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:31:01.391320 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:01.391770 #5524] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:31:01.392979 #5524] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:01.393436 #5524] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:01.393808 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:01.394230 #5524] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:01.394655 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:01.395595 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:01.396847 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:01.398081 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:31:01.399103 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:01.401660 #5524] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:31:01.402197 #5524] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:31:01.403514 #5524] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:31:01.403880 #5524] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:02.465727 #5529] DEBUG -- : SQL (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:02.465940 #5529] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:02.468608 #5529] DEBUG -- : SQL (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:02.469341 #5529] DEBUG -- : SQL (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:02.469818 #5529] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:31:02.470481 #5529] DEBUG -- : SQL (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:02.482651 #5529] DEBUG -- : SQL (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:02.483106 #5529] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:02.483804 #5529] DEBUG -- : SQL (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:02.484558 #5529] DEBUG -- : SQL (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:02.484904 #5529] DEBUG -- : SQL (0.1ms)  SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence'  D, [2015-08-02T09:31:02.485539 #5529] DEBUG -- : SQL (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:02.486244 #5529] DEBUG -- : SQL (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:02.518222 #5529] DEBUG -- : SQL (0.1ms) SELECT name FROM sqlite_master WHERE type = 'table' AND NOT name = 'sqlite_sequence' D, [2015-08-02T09:31:02.527554 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.532968 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.535651 #5529] DEBUG -- : AREL (0.3ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:31:02.544118 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 1, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.545554 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'SpecialGeneral', 0) D, [2015-08-02T09:31:02.558266 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (2, NULL, NULL, 'Post', 2) D, [2015-08-02T09:31:02.558851 #5529] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:02.559620 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:02.560798 #5529] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:02.561686 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.562839 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.564994 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.566790 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.568341 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 4) D, [2015-08-02T09:31:02.568755 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:02.569057 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 4 D, [2015-08-02T09:31:02.570398 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 4, 'SpecialTag', 'SpecialPost', 3) D, [2015-08-02T09:31:02.570736 #5529] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 LIMIT 1 D, [2015-08-02T09:31:02.570974 #5529] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 3 D, [2015-08-02T09:31:02.572364 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 4 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:02.573623 #5529] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:02.573891 #5529] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:02.574179 #5529] DEBUG -- : WARNING: Can't mass-assign protected attributes: type D, [2015-08-02T09:31:02.574794 #5529] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:02.575100 #5529] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 4 LIMIT 1 D, [2015-08-02T09:31:02.575884 #5529] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts".id = "taggings".taggable_id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("taggings".polytag_id = 4) AND ("taggings".polytag_type = 'SpecialTag')) D, [2015-08-02T09:31:02.576712 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.577973 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.579055 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "authors" ("name") VALUES ('Bob') D, [2015-08-02T09:31:02.580486 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, 2, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.583873 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', 2, 'IBM Watsons Jeopardy play', 'the body', 0) D, [2015-08-02T09:31:02.585115 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'SpecialGeneral', 0) D, [2015-08-02T09:31:02.586834 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'Post', 6) D, [2015-08-02T09:31:02.587214 #5529] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:02.587485 #5529] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:02.588904 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (6, NULL, NULL, 'SpecialPost', 7) D, [2015-08-02T09:31:02.589257 #5529] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:02.589540 #5529] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 7 D, [2015-08-02T09:31:02.591078 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings".taggable_id = "posts".id AND "taggings".taggable_type IN ('Post','SpecialPost') WHERE (("posts".author_id = 2)) D, [2015-08-02T09:31:02.591984 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.593151 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.594318 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.595641 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.597670 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 9) D, [2015-08-02T09:31:02.598193 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 LIMIT 1 D, [2015-08-02T09:31:02.598599 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 9 D, [2015-08-02T09:31:02.600583 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 8, 'SpecialTag', 'SpecialPost', 8) D, [2015-08-02T09:31:02.601031 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:02.601343 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 8 D, [2015-08-02T09:31:02.602557 #5529] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 8 LIMIT 1 D, [2015-08-02T09:31:02.603156 #5529] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 8 and "taggings"."polytag_type" IN ('Tag','SpecialTag')) D, [2015-08-02T09:31:02.604358 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.605624 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.606971 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.608249 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.609868 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 11) D, [2015-08-02T09:31:02.610243 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 LIMIT 1 D, [2015-08-02T09:31:02.610575 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 11 D, [2015-08-02T09:31:02.611959 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 10, 'SpecialTag', 'SpecialPost', 10) D, [2015-08-02T09:31:02.612314 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:02.612597 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 10 D, [2015-08-02T09:31:02.613789 #5529] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = 10 LIMIT 1 D, [2015-08-02T09:31:02.614723 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."polytag_id" = 10 and "taggings"."polytag_type" = 'SpecialTag' AND ("taggable_type" IN ('Post','SpecialPost'))) D, [2015-08-02T09:31:02.615294 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND ("posts"."id" IN (11,10)) D, [2015-08-02T09:31:02.616460 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.617819 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.618994 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.620072 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 13 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:02.620853 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (11, NULL, NULL, 'SpecialPost', 13) D, [2015-08-02T09:31:02.621238 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:02.621607 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 13 D, [2015-08-02T09:31:02.622553 #5529] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:02.622996 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings"."taggable_id" = 13 and "taggings"."taggable_type" IN ('Post','SpecialPost')) D, [2015-08-02T09:31:02.623918 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.625024 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.626170 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.627437 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.629029 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 15) D, [2015-08-02T09:31:02.629410 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 LIMIT 1 D, [2015-08-02T09:31:02.629756 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 15 D, [2015-08-02T09:31:02.631502 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 13, 'SpecialTag', 'SpecialPost', 14) D, [2015-08-02T09:31:02.631986 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 LIMIT 1 D, [2015-08-02T09:31:02.633436 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 14 D, [2015-08-02T09:31:02.634787 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 13 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:02.635950 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.637337 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.638660 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.640072 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.641744 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 17) D, [2015-08-02T09:31:02.642139 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 LIMIT 1 D, [2015-08-02T09:31:02.642426 #5529] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 17 D, [2015-08-02T09:31:02.644429 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 15, 'SpecialTag', 'SpecialPost', 16) D, [2015-08-02T09:31:02.644839 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 LIMIT 1 D, [2015-08-02T09:31:02.645118 #5529] DEBUG -- : AREL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 16 D, [2015-08-02T09:31:02.646321 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 15 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:02.647529 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.648895 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.650436 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.652331 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.653349 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.655138 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.655635 #5529] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (17, NULL, NULL, 'SpecialPost', 21) D, [2015-08-02T09:31:02.656607 #5529] DEBUG -- : AREL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 D, [2015-08-02T09:31:02.657855 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 21 LIMIT 1 D, [2015-08-02T09:31:02.658361 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 21 AND "taggings".taggable_type = 'SpecialPost') D, [2015-08-02T09:31:02.659276 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.660412 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.661591 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.662912 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 19, 'SpecialTag', NULL, NULL) D, [2015-08-02T09:31:02.664595 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.665660 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.666742 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.667996 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES (NULL, NULL, 'To Be or Not To Be?', 'the body', 0) D, [2015-08-02T09:31:02.668933 #5529] DEBUG -- : AREL (0.0ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 21, 'SpecialTag', 'Post', 24) D, [2015-08-02T09:31:02.669307 #5529] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 24 LIMIT 1 D, [2015-08-02T09:31:02.669669 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:02.670839 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 21 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:02.671766 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.672912 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.674294 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES ('SpecialTag', 'Special', 0) D, [2015-08-02T09:31:02.676212 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (NULL, 23, 'SpecialTag', 'SpecialPost', 25) D, [2015-08-02T09:31:02.676656 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:02.676981 #5529] DEBUG -- : AREL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 D, [2015-08-02T09:31:02.678081 #5529] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:02.678660 #5529] DEBUG -- : SQL (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') D, [2015-08-02T09:31:02.679103 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".polytag_id = 23 AND "taggings".polytag_type = 'SpecialTag') LIMIT 1 D, [2015-08-02T09:31:02.679626 #5529] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" = 'SpecialTag' AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:02.680202 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:02.681438 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Thinking', 'the body', 0) D, [2015-08-02T09:31:02.683468 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "tags" ("type", "name", "taggings_count") VALUES (NULL, 'Misc', 0) D, [2015-08-02T09:31:02.685514 #5529] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".tag_id = 24) LIMIT 1 D, [2015-08-02T09:31:02.688588 #5529] DEBUG -- : AREL (0.2ms) INSERT INTO "posts" ("type", "author_id", "title", "body", "taggings_count") VALUES ('SpecialPost', NULL, 'Budget Forecasts Bigger 2011 Deficit', 'the body', 0) D, [2015-08-02T09:31:02.689310 #5529] DEBUG -- : AREL (0.1ms) INSERT INTO "taggings" ("tag_id", "polytag_id", "polytag_type", "taggable_type", "taggable_id") VALUES (24, NULL, NULL, 'SpecialPost', 27) D, [2015-08-02T09:31:02.689828 #5529] DEBUG -- : AREL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 D, [2015-08-02T09:31:02.691189 #5529] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" = 'SpecialPost' AND "posts"."id" = 27 LIMIT 1 D, [2015-08-02T09:31:02.691579 #5529] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE ("taggings".taggable_id = 27 AND "taggings".taggable_type = 'SpecialPost') LIMIT 1 D, [2015-08-02T09:31:03.766916 #5538] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:03.770015 #5538] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:03.771241 #5538] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:03.773054 #5538] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:03.786144 #5538] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:03.787157 #5538] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:03.787824 #5538] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:03.788705 #5538] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:03.789453 #5538] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:03.840924 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.847608 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.850848 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:03.855593 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:03.869272 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.881665 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:03.882545 #5538] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:03.883270 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:03.884203 #5538] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:03.885215 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.886446 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.888235 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.891025 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.892994 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.893462 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:03.895051 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.895374 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:03.896571 #5538] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:03.896882 #5538] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:03.898348 #5538] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:03.899245 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.900446 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.901499 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:03.902741 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:03.905948 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.907293 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.908792 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:03.909214 #5538] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:03.909508 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:03.910838 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.911279 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:03.911589 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:03.913311 #5538] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:03.914530 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.915974 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.917190 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.918703 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.920607 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.921029 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:03.922599 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.922923 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:03.923932 #5538] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:03.924961 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:03.926002 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.927296 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.928561 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.929921 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.931720 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.932082 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:03.933550 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.933861 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:03.934694 #5538] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:03.935720 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:03.936677 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:03.937736 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.938817 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.939970 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.942529 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.943092 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:03.943460 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:03.944327 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:03.945052 #5538] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:03.945942 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:03.956890 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.958991 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.960452 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.961966 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.963997 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.964464 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:03.966087 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.966424 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:03.967316 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:03.968377 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.969664 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.971174 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.972609 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.974295 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.974721 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:03.976748 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.977201 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:03.978134 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:03.979173 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.980527 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.982049 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.983973 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.985386 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.987649 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.988294 #5538] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:03.989337 #5538] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:03.990557 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:03.991058 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:03.992106 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.993394 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:03.994872 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:03.996521 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:03.998081 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:03.999239 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:04.000455 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:04.002193 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:04.003281 #5538] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:04.003742 #5538] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:04.004921 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:04.005846 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:04.007239 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:04.008591 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:04.010446 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:04.010902 #5538] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:04.011867 #5538] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:04.012402 #5538] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:04.012699 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:04.013226 #5538] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:04.013757 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:04.014962 #5538] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:04.016338 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:04.018072 #5538] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:04.018563 #5538] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:04.018988 #5538] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:04.020020 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:04.020661 #5538] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:04.021127 #5538] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:05.106000 #5542] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:05.109183 #5542] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:05.110386 #5542] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:05.112306 #5542] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:05.116303 #5542] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:05.117406 #5542] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:05.118202 #5542] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:05.119228 #5542] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:05.119981 #5542] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:05.185645 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.191233 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.193828 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:05.197555 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:05.198719 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.211646 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:05.212506 #5542] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:05.213237 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:05.214381 #5542] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:05.215403 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.216638 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.218257 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.220877 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.222596 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.223156 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:05.224556 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.224897 #5542] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:05.226098 #5542] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:05.226419 #5542] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:05.227775 #5542] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:05.228649 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.229842 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.230971 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:05.232274 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:05.233616 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.234714 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.236241 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:05.236690 #5542] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:05.236981 #5542] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:05.238358 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.238861 #5542] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:05.239284 #5542] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:05.240866 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:05.241830 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.243042 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.244350 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.245553 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.258040 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.258496 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:05.260283 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.260701 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:05.261811 #5542] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:05.262877 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:05.264351 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.265606 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.266946 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.268217 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.269913 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.270281 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:05.271904 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.272253 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:05.273114 #5542] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:05.274152 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:05.275128 #5542] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:05.276172 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.277275 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.278486 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.280689 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.281188 #5542] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:05.281474 #5542] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:05.282333 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:05.282894 #5542] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:05.283537 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:05.284794 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.286029 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.287412 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.289005 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.290788 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.291178 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:05.292580 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.292891 #5542] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:05.293769 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:05.294654 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.295808 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.296988 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.298323 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.299994 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.300366 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:05.301817 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.302159 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:05.303024 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:05.304121 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.305437 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.306687 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.308409 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.309487 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.311403 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.312030 #5542] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.312924 #5542] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:05.314152 #5542] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:05.314618 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:05.315689 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.316947 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.318381 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.320061 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:05.321479 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.322594 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.323956 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.325747 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:05.326910 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:05.327413 #5542] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:05.328497 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:05.329411 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.330571 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.332002 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:05.333733 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.334104 #5542] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:05.335095 #5542] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:05.335641 #5542] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:05.335942 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:05.336542 #5542] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:05.337153 #5542] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:05.338191 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.340060 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:05.342497 #5542] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:05.343223 #5542] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:05.343772 #5542] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:05.344856 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:05.345465 #5542] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:05.345950 #5542] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:06.421739 #5546] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:06.424546 #5546] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:31:06.425289 #5546] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:06.426353 #5546] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:31:06.429438 #5546] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:06.430626 #5546] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:31:06.431400 #5546] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:06.432351 #5546] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:06.433060 #5546] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:06.492714 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.500276 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.503612 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:06.507927 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:06.509056 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.527640 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:06.528531 #5546] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:06.529287 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:06.530678 #5546] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:06.532928 #5546] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.534858 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.537841 #5546] DEBUG -- : SQL (0.5ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.546809 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.550795 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.551366 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:06.558996 #5546] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.559503 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:06.560978 #5546] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:06.561365 #5546] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:06.563021 #5546] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:06.564077 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.565393 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.566476 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:06.567899 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:06.569427 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.570745 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.572495 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:06.573015 #5546] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:06.573320 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:06.574875 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.575405 #5546] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:06.575754 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:06.577570 #5546] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:06.578628 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.579876 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.581302 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.582963 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.584837 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.585228 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:06.588896 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.589259 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:06.590150 #5546] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:06.591045 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:06.591980 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.593079 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.594135 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.595375 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.597164 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.597549 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:06.599010 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.599358 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:06.600223 #5546] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:06.601378 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:06.602332 #5546] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:06.603450 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.604536 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.605776 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.608128 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.608677 #5546] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:06.609032 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:06.609881 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:06.610407 #5546] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:06.611090 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:06.612083 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.613287 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.614383 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.615627 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.617431 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.617856 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:06.619314 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.619741 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:06.620753 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:06.621670 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.622858 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.624007 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.625251 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.626943 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.627361 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:06.638708 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.639148 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:06.640395 #5546] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:06.642273 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.644134 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.645629 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.647802 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.649235 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.651667 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.652352 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.653491 #5546] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:06.654786 #5546] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:06.655276 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:06.656287 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.657566 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.659660 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.661454 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:06.662922 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.664848 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.666216 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.667749 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:06.668729 #5546] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:06.669154 #5546] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:06.670281 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:06.671166 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.672298 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.673487 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:06.675183 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.675670 #5546] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:06.676716 #5546] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:06.677229 #5546] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:06.677506 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:06.678014 #5546] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:06.678611 #5546] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:06.679736 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.681498 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:06.684031 #5546] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:06.684747 #5546] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:06.685333 #5546] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:06.686398 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:06.686964 #5546] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:06.687387 #5546] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:07.769237 #5553] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:07.772344 #5553] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:07.773546 #5553] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:07.775417 #5553] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:07.779520 #5553] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:07.780794 #5553] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:31:07.781585 #5553] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:07.782590 #5553] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:07.783346 #5553] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:07.843819 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.849726 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.854426 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:07.858867 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:07.859911 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.871777 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:07.872641 #5553] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:07.873385 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:07.874795 #5553] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:07.876232 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.877891 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.879747 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.883058 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.884809 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.885297 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:07.886532 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.886834 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:07.887935 #5553] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:07.888278 #5553] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:07.889783 #5553] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:07.890530 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.891543 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.892471 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:07.893471 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:07.894661 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.895811 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.897281 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:07.897869 #5553] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:07.898171 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:07.899716 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.900240 #5553] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:07.900551 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:07.902185 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:07.902905 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.904184 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.905468 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.906731 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.908355 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.908708 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:07.910050 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.910365 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:07.911350 #5553] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:07.912511 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:07.913429 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.914632 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.915699 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.916763 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.918168 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.918495 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:07.919614 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.919887 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:07.920668 #5553] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:07.921740 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:07.922555 #5553] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:07.923355 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.924528 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.925609 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.927792 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.928234 #5553] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:07.928527 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:07.929256 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:07.929721 #5553] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:07.930394 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:07.931439 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.932544 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.933482 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.934608 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.935815 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.936124 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:07.937256 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.937550 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:07.938250 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:07.938900 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.939771 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.940651 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.941844 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.943175 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.943476 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:07.944566 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.944821 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:07.945602 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:07.946354 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.947366 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.951427 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.953842 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.955976 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.958879 #5553] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.959329 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.960456 #5553] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:07.961694 #5553] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:07.962329 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:07.963100 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.964289 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.965798 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.967518 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:07.968815 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.969940 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.971103 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.972594 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:07.973384 #5553] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:07.973811 #5553] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:07.974846 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:07.975719 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.976682 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.977704 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:07.979146 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.979508 #5553] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:07.980294 #5553] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:07.980904 #5553] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:07.981203 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:07.981677 #5553] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:07.982119 #5553] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:07.982896 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.983935 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:07.985521 #5553] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:07.985870 #5553] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:07.986273 #5553] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:07.987122 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:07.987560 #5553] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:07.987981 #5553] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:09.068687 #5557] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:09.071754 #5557] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:09.072989 #5557] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:09.074849 #5557] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:09.078914 #5557] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:09.080077 #5557] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:09.080840 #5557] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:09.081887 #5557] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:09.082555 #5557] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:09.144423 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.152441 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.155791 #5557] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:09.160094 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:09.161027 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.171804 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:09.172564 #5557] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:09.173221 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:09.174154 #5557] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:09.174958 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.175983 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.180110 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.183530 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.185105 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.185564 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:09.186595 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.186881 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:09.187896 #5557] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:09.188208 #5557] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:09.189557 #5557] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:09.190281 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.191966 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.193653 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:09.194785 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:09.195871 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.196857 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.198186 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:09.198539 #5557] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:09.198801 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:09.199910 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.200267 #5557] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:09.200536 #5557] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:09.202079 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:09.202752 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.203645 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.204622 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.205821 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.207111 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.207386 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:09.208570 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.208810 #5557] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:09.209863 #5557] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:09.210788 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:09.211522 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.212577 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.213707 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.215040 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.216646 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.217017 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:09.218266 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.218577 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:09.219474 #5557] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:09.220759 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:09.221633 #5557] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:09.222478 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.223596 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.224908 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.235698 #5557] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.236127 #5557] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:09.236402 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:09.237041 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:09.237451 #5557] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:09.238012 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:09.238695 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.239670 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.240661 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.241745 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.243159 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.243451 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:09.244764 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.245105 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:09.245891 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:09.246688 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.247739 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.248727 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.249869 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.251263 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.251582 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:09.253012 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.253386 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:09.254211 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:09.255009 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.256041 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.257141 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.258634 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.259600 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.261272 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.261609 #5557] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.262495 #5557] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:09.263408 #5557] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:09.263806 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:09.264506 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.265471 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.266589 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.267770 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:09.268818 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.269674 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.270745 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.272098 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:09.272840 #5557] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:09.273228 #5557] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:09.274082 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:09.274777 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.275658 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.276601 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:09.277934 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.278296 #5557] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:09.279104 #5557] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:09.279598 #5557] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:09.279882 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:09.280421 #5557] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:09.280926 #5557] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:09.281803 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.282798 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:09.284265 #5557] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:09.284613 #5557] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:09.284999 #5557] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:09.285786 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:09.286150 #5557] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:09.286482 #5557] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:10.362479 #5561] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:10.365558 #5561] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:10.366858 #5561] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:10.369417 #5561] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:10.374168 #5561] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:10.375508 #5561] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:31:10.376302 #5561] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:10.377385 #5561] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:10.378110 #5561] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:10.441203 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.448277 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.451410 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:10.455552 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:10.456519 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.467167 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:10.467960 #5561] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:10.468651 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:10.469529 #5561] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:10.470370 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.471348 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.475295 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.478052 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.479630 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.480042 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:10.481379 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.481760 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:10.483300 #5561] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:10.483617 #5561] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:10.485386 #5561] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:10.486180 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.489702 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.497622 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:10.505746 #5561] DEBUG -- : SQL (0.5ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:10.507256 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.508585 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.510284 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:10.510781 #5561] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:10.511110 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:10.512564 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.513047 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:10.513405 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:10.515260 #5561] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:10.516187 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.517323 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.518677 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.519887 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.521405 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.521742 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:10.523054 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.523409 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:10.524334 #5561] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:10.525443 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:10.526423 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.527438 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.528414 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.529506 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.531036 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.531413 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:10.532637 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.532945 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:10.533592 #5561] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:10.534975 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:10.535801 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:10.536674 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.537649 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.538665 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.550043 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.550601 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:10.550939 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:10.551737 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:10.552169 #5561] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:10.552775 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:10.553501 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.554474 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.555546 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.556625 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.557964 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.558247 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:10.559375 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.559623 #5561] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:10.560371 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:10.561111 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.562205 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.563218 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.564268 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.565814 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.566153 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:10.567317 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.567574 #5561] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:10.568357 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:10.569068 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.570018 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.571104 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.572501 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.573366 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.574933 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.575266 #5561] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.576089 #5561] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:10.577083 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:10.577511 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:10.578239 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.579233 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.580241 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.581724 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:10.583028 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.584047 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.585079 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.586503 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:10.587376 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:10.587885 #5561] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:10.588956 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:10.589881 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.591010 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.592149 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:10.593792 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.594156 #5561] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:10.595213 #5561] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:10.595829 #5561] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:10.596171 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:10.596744 #5561] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:10.597303 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:10.598319 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.599860 #5561] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:10.602462 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:10.602901 #5561] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:10.603402 #5561] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:10.604335 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:10.604813 #5561] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:10.605242 #5561] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:11.681738 #5566] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:11.684499 #5566] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:31:11.685558 #5566] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:11.687280 #5566] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:11.691344 #5566] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:11.692526 #5566] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:11.693338 #5566] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:11.694878 #5566] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:31:11.695708 #5566] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:11.758730 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.766083 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.769235 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:11.774796 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:11.776559 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.788369 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:11.789207 #5566] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:11.789921 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:11.791032 #5566] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:11.791974 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.793582 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.798662 #5566] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.802556 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.804506 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.805009 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:11.806367 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.806685 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:11.807803 #5566] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:11.808128 #5566] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:11.809623 #5566] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:11.810467 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.811459 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.812352 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:11.813412 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:11.814420 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.815426 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.816758 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:11.817192 #5566] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:11.817473 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:11.818703 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.819106 #5566] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:11.819394 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:11.820859 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:11.821639 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.822720 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.823771 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.824791 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.826073 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.826380 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:11.827541 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.827824 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:11.828645 #5566] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:11.829644 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:11.830604 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.831582 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.832678 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.833923 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.835305 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.835648 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:11.837099 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.837492 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:11.838292 #5566] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:11.839585 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:11.840592 #5566] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:11.841568 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.842979 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.844228 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.856262 #5566] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.856798 #5566] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:11.857100 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:11.858176 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:11.858739 #5566] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:11.859538 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:11.860310 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.861367 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.862390 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.863511 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.864834 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.865103 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:11.866284 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.866531 #5566] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:11.867402 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:11.868021 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.868957 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.869985 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.871050 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.872384 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.872660 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:11.873793 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.874056 #5566] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:11.874892 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:11.875557 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.876637 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.877634 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.878899 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.879921 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.881683 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.882052 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.883066 #5566] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:11.884032 #5566] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:11.884440 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:11.885147 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.886004 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.887017 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.888188 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:11.889303 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.890130 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.891017 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.892231 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:11.892962 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:11.893319 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:11.894074 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:11.894735 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.895629 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.896580 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:11.898038 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.898391 #5566] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:11.899175 #5566] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:11.899671 #5566] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:11.899933 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:11.900342 #5566] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:11.900743 #5566] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:11.901512 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.902462 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:11.903887 #5566] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:11.904235 #5566] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:11.904618 #5566] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:11.905359 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:11.905723 #5566] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:11.906049 #5566] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:13.004818 #5575] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:13.008020 #5575] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:13.009237 #5575] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:13.011068 #5575] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:13.015487 #5575] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:13.016810 #5575] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:13.017532 #5575] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:13.018495 #5575] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:13.019146 #5575] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:13.081105 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.089168 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.092700 #5575] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:13.096737 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:13.098068 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.111409 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:13.112281 #5575] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:13.112981 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:13.113843 #5575] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:13.114799 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.115841 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.117480 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.120166 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.121775 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.122167 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:13.123422 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.123749 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:13.125069 #5575] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:13.125411 #5575] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:13.127259 #5575] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:13.128203 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.129286 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.130361 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:13.132210 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:13.133665 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.134859 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.136466 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:13.136920 #5575] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:13.137250 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:13.138663 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.139083 #5575] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:13.139353 #5575] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:13.140785 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:13.141490 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.142557 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.143575 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.144660 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.145981 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.146263 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:13.147307 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.147541 #5575] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:13.148349 #5575] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:13.150032 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:13.151073 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.152143 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.153230 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.154528 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.156072 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.156458 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:13.157562 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.157826 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:13.158576 #5575] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:13.159823 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:13.170633 #5575] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:13.171515 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.173172 #5575] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.174187 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.176244 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.176633 #5575] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:13.176908 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:13.177818 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:13.178389 #5575] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:13.179159 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:13.179946 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.180959 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.182092 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.183228 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.184634 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.184964 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:13.186082 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.186321 #5575] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:13.187108 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:13.187785 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.188735 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.189870 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.190914 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.192278 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.192604 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:13.193843 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.194159 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:13.194931 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:13.195643 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.196520 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.197589 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.198963 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.199919 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.201565 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.201932 #5575] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.202965 #5575] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:13.203962 #5575] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:13.204393 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:13.205105 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.205974 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.206860 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.208018 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:13.209124 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.210044 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.210982 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.212300 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:13.213033 #5575] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:13.213568 #5575] DEBUG -- : SQL (0.3ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:13.214745 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:13.215593 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.216659 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.217724 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:13.219165 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.219502 #5575] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:13.220260 #5575] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:13.220739 #5575] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:13.221006 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:13.221398 #5575] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:13.221772 #5575] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:13.222487 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.223464 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:13.224894 #5575] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:13.225204 #5575] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:13.225583 #5575] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:13.226327 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:13.226675 #5575] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:13.226986 #5575] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:14.332911 #5579] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:14.335938 #5579] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:14.337193 #5579] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:14.339052 #5579] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:14.343126 #5579] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:14.344346 #5579] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:14.345131 #5579] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:14.346188 #5579] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:14.346943 #5579] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:14.411265 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.419384 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.422700 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:14.427036 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:14.428054 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.440995 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:14.441868 #5579] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:14.442642 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:14.443906 #5579] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:14.444970 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.446167 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.450737 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.454167 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.455786 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.456213 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:14.457507 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.457794 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:14.458882 #5579] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:14.459189 #5579] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:14.460565 #5579] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:14.461267 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.462321 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.463373 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:14.464608 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:14.465808 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.467015 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.468993 #5579] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:14.469441 #5579] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:14.469722 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:14.475712 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.476149 #5579] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:14.476452 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:14.484690 #5579] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:14.485665 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.491731 #5579] DEBUG -- : SQL (0.5ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.493044 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.494218 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.495819 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.496200 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:14.497457 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.497881 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:14.498996 #5579] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:14.500139 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:14.501124 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.502166 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.503161 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.504132 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.505450 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.505777 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:14.507212 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.507624 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:14.508521 #5579] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:14.509431 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:14.510233 #5579] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:14.511064 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.512117 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.513161 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.525855 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.526461 #5579] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:14.526819 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:14.527536 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:14.527975 #5579] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:14.528589 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:14.529349 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.530366 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.531477 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.532679 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.533976 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.534249 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:14.535410 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.535655 #5579] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:14.536358 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:14.536996 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.537967 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.538985 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.540031 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.541270 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.541577 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:14.542777 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.543039 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:14.543770 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:14.544519 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.545427 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.546508 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.547992 #5579] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.549001 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.550878 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.551289 #5579] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.552220 #5579] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:14.553257 #5579] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:14.553686 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:14.554355 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.555288 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.556257 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.557326 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:14.558404 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.559288 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.560244 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.561580 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:14.562334 #5579] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:14.562697 #5579] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:14.563610 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:14.564322 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.565251 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.566178 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:14.567537 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.567849 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:14.568528 #5579] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:14.568956 #5579] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:14.569229 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:14.569625 #5579] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:14.570026 #5579] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:14.570710 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.571641 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:14.573097 #5579] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:14.573423 #5579] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:14.573775 #5579] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:14.574590 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:14.574945 #5579] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:14.575268 #5579] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:15.664087 #5583] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:15.667206 #5583] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:15.668379 #5583] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:15.669743 #5583] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:31:15.673401 #5583] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:15.674586 #5583] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:15.675443 #5583] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:15.676480 #5583] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:15.677221 #5583] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:15.741136 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.749219 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.752413 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:15.756426 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:15.757413 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.768087 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:15.768851 #5583] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:15.769491 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:15.770725 #5583] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:15.771569 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.775113 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.776975 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.780044 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.781927 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.782488 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:15.784034 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.784341 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:15.785453 #5583] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:15.785782 #5583] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:15.787441 #5583] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:15.788224 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.789234 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.790154 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:15.791307 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:15.792544 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.793836 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.795546 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:15.796078 #5583] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:15.796394 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:15.797824 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.798233 #5583] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:15.798535 #5583] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:15.800277 #5583] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:15.801091 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.802300 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.803566 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.804615 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.805896 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.806189 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:15.807308 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.807561 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:15.808461 #5583] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:15.809401 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:15.810166 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.811184 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.812298 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.813339 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.814630 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.814944 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:15.816139 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.816431 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:15.817181 #5583] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:15.817956 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:15.818753 #5583] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:15.819491 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.820452 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.821542 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.823708 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.833667 #5583] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:15.834005 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:15.835238 #5583] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:15.836180 #5583] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:15.836978 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:15.837884 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.838996 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.840220 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.841439 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.842831 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.843198 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:15.844365 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.844685 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:15.845528 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:15.846311 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.847184 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.848116 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.849225 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.850554 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.850829 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:15.852012 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.852282 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:15.853540 #5583] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:15.854407 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.855418 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.856484 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.857886 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.858844 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.860715 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.861151 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.862229 #5583] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:15.863254 #5583] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:15.863664 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:15.864433 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.865467 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.866515 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.867710 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:15.868845 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.869775 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.870765 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.872151 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:15.872874 #5583] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:15.873234 #5583] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:15.874044 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:15.874718 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.875554 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.876612 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:15.877938 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.878275 #5583] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:15.878952 #5583] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:15.879412 #5583] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:15.879677 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:15.880090 #5583] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:15.880545 #5583] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:15.881505 #5583] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.882516 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:15.884196 #5583] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:15.884573 #5583] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:15.884993 #5583] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:15.885874 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:15.886312 #5583] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:15.886715 #5583] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:16.966843 #5587] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:16.969760 #5587] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:16.970535 #5587] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:16.971728 #5587] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:31:16.975637 #5587] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT '0')  D, [2015-08-02T09:31:16.976817 #5587] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:16.977554 #5587] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:16.978501 #5587] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:16.979208 #5587] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT '0')  D, [2015-08-02T09:31:17.037006 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.042939 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.045554 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:17.049485 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:17.050569 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.061030 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:17.061908 #5587] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:17.062690 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:17.063769 #5587] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:17.064799 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.066082 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.067581 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.069930 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.071330 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.071663 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:17.072693 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.072959 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:17.074012 #5587] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:17.074293 #5587] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:17.075503 #5587] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:17.076135 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.077050 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.078035 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:17.079019 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:17.080144 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.081187 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.082473 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:17.082823 #5587] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:17.083189 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:17.084280 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.084677 #5587] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:17.084960 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:17.086367 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:17.087066 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.087971 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.088930 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.089925 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.091244 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.091531 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:17.092612 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.092894 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:17.093682 #5587] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:17.094567 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:17.095351 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.096305 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.097342 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.098409 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.099807 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.100167 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:17.101260 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.101518 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:17.102323 #5587] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:17.103115 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:17.103893 #5587] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:17.104643 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.105613 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.106678 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.109037 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.109558 #5587] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:17.109911 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:17.110842 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:17.111455 #5587] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:17.112311 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:17.113307 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.114393 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.115798 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.116982 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.118469 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.118769 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:17.119901 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.120207 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:17.121215 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:17.122008 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.123037 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.124073 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.125247 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.126638 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.127003 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:17.128239 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.128539 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:17.129287 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:17.132625 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.134305 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.135998 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.138268 #5587] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.140059 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.142994 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.143460 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.144864 #5587] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:17.146048 #5587] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:17.146576 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:17.147840 #5587] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.149058 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.150315 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.151565 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:17.152741 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.153658 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.154629 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.156044 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:17.156759 #5587] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:17.157126 #5587] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:17.157953 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:17.158666 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.159484 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.160459 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:17.161772 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.162115 #5587] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:17.162813 #5587] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:17.163275 #5587] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:17.163563 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:17.164022 #5587] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:17.164649 #5587] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:17.165441 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.166472 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:17.167981 #5587] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:17.168329 #5587] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:17.168762 #5587] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:17.169510 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:17.169942 #5587] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:17.170335 #5587] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:18.253641 #5594] DEBUG -- :  (0.2ms) select sqlite_version(*) D, [2015-08-02T09:31:18.256736 #5594] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:18.257974 #5594] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:18.259811 #5594] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:18.263897 #5594] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:18.265130 #5594] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:18.265902 #5594] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:18.266868 #5594] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:18.267546 #5594] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:18.328949 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.334872 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.338188 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:18.342874 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:18.344603 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.358930 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:18.359848 #5594] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:18.360706 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:18.361769 #5594] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:18.362729 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.363816 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.365553 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.368331 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.369955 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.370372 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:18.371497 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.371737 #5594] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:18.372812 #5594] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:18.373104 #5594] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:18.374420 #5594] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:18.375101 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.376036 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.376975 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:18.378080 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:18.379212 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.380237 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.381583 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:18.381989 #5594] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:18.382262 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:18.383615 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.384123 #5594] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:18.384489 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:18.385989 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:18.386678 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.387764 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.388865 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.389840 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.391209 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.391527 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:18.395485 #5594] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.395850 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:18.400233 #5594] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:18.401456 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:18.402445 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.407718 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.415868 #5594] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.417359 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.419086 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.419487 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:18.420920 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.421269 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:18.422265 #5594] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:18.423367 #5594] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:18.424490 #5594] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:18.425563 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.426638 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.427749 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.429939 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.430439 #5594] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:18.430760 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:18.431400 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:18.431840 #5594] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:18.432450 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:18.433133 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.434188 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.435304 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.436443 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.437838 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.438183 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:18.439355 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.439642 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:18.440333 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:18.441027 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.441990 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.443020 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.444094 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.445424 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.445726 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:18.446830 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.447092 #5594] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:18.447886 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:18.448568 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.449562 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.450703 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.452023 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.452918 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.454555 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.454895 #5594] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.456014 #5594] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:18.457154 #5594] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:18.457560 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:18.458247 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.459116 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.460003 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.471656 #5594] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:18.472920 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.473966 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.474974 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.476372 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:18.477147 #5594] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:18.477528 #5594] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:18.478370 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:18.479024 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.480011 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.481081 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:18.482462 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.482791 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:18.483544 #5594] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:18.483980 #5594] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:18.484260 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:18.484656 #5594] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:18.485057 #5594] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:18.485758 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.486797 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:18.488242 #5594] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:18.488562 #5594] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:18.488924 #5594] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:18.489786 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:18.490155 #5594] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:18.490484 #5594] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:19.494554 #5598] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:19.497607 #5598] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:19.498855 #5598] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:19.500709 #5598] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:19.503972 #5598] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:19.505138 #5598] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:19.505880 #5598] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:19.506933 #5598] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:19.507590 #5598] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:19.556108 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.557269 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.560068 #5598] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:19.564608 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.565890 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.566699 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.568888 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.570187 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:19.570764 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.571675 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.572684 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:19.573224 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.573642 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.574429 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.574994 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.580947 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.586659 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:19.587635 #5598] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:19.588831 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:19.592014 #5598] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:19.592782 #5598] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:19.593858 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.594938 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.595584 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.595990 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.596905 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.597575 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.599840 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.600923 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.601733 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.604970 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.605958 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.606586 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.606992 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.608555 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.609253 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:19.609898 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.610115 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.611342 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.611722 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:19.612298 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.612461 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.613229 #5598] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:19.613695 #5598] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:19.614191 #5598] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:19.615807 #5598] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:19.616484 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.617216 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.617840 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.618153 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.618850 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.619392 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.619702 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.620309 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:19.620859 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.621308 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.622066 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:19.622748 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.623093 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.623780 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.624386 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.624716 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.625433 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.626022 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.626202 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.627192 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:19.627677 #5598] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:19.628150 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:19.628677 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.628884 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.629923 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.630368 #5598] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:19.630916 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:19.631520 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.633086 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:19.633997 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.634761 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.635396 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.635781 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.646623 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.647481 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.648293 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.650033 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.650951 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.651511 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.652414 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.653038 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.653271 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.654910 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.655350 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:19.655956 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.656183 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.657415 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.657779 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:19.658369 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.658857 #5598] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:19.660035 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:19.660979 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.661724 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.662261 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.662584 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.663332 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.663940 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.664273 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.664983 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.665535 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.665875 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.666651 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.667246 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.667431 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.668757 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.669128 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:19.669744 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.669977 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.671403 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.671804 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:19.672532 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.673368 #5598] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:19.675291 #5598] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:19.676746 #5598] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:19.677841 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.678719 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.679355 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.679746 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.680746 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.681439 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.682054 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.683156 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.683747 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.685088 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.685875 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.686463 #5598] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:19.686980 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:19.687568 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.687954 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:19.688248 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.688410 #5598] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:19.688743 #5598] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:19.689554 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:19.690278 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.691050 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.691726 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.692084 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.692854 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.693420 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.693804 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.694702 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.695284 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.695679 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.696365 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.696909 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.697081 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.698228 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.698572 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:19.699124 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.699298 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.700191 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.700470 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:19.701004 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.701466 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:19.702153 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.702812 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.703332 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.703645 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.704312 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.704840 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.705160 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.705850 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.706373 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.706700 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.707329 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.707848 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.708019 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.709116 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.709441 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:19.709977 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.710144 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.711068 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.711355 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:19.711877 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.712293 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:19.713058 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.713820 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.714483 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.714895 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.715742 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.716240 #5598] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:19.716690 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.717399 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.717948 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.719025 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.719726 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.720305 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.720619 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.721309 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.721863 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.722444 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.723843 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.724261 #5598] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.725222 #5598] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:19.725863 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.726421 #5598] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:19.726998 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:19.727647 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.728357 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.728881 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.729199 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.729915 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.730454 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.730838 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.731689 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.732216 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.732442 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.733372 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:19.733886 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.734506 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.735287 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.735703 #5598] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:19.736031 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.736721 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.737200 #5598] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:19.737529 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.738246 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.738743 #5598] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:19.739011 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.740428 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:19.741895 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:19.742486 #5598] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:19.743330 #5598] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:19.744240 #5598] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:19.745355 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.746401 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.746992 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.747433 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.748231 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.748813 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.749270 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.750153 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:19.750854 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.751304 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.753320 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.753793 #5598] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:19.754469 #5598] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:19.754951 #5598] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:19.755698 #5598] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:19.756085 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:19.756744 #5598] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:19.757382 #5598] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:19.758161 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.759031 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.759625 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.760079 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.761058 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:19.761684 #5598] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:19.763051 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.764342 #5598] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:19.764860 #5598] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:19.765436 #5598] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:19.766155 #5598] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:19.766704 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:19.766976 #5598] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:19.767115 #5598] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:19.767431 #5598] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:19.768025 #5598] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:20.785337 #5602] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:20.788392 #5602] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:20.789741 #5602] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:20.792235 #5602] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:20.795649 #5602] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:20.796984 #5602] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:20.797733 #5602] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:20.798855 #5602] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:20.799548 #5602] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:20.849992 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.851136 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.853939 #5602] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:20.858511 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.859789 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.860526 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.862762 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.864046 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:20.864648 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.866001 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.867353 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:20.867975 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.868459 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.869408 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.870033 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.875365 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.883192 #5602] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:20.884211 #5602] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:20.885137 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:20.885707 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.886393 #5602] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:20.887415 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.888440 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.889054 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.889450 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.890333 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.890937 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.893242 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.894584 #5602] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.895377 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.897291 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.898101 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.898866 #5602] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:20.899176 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.900452 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.900907 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:20.901527 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.901688 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.902672 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.902962 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:20.903546 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.903718 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.904385 #5602] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:20.904831 #5602] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:20.905287 #5602] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:20.906912 #5602] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:20.907542 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.908295 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.908833 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.909151 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.909856 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.910405 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.910720 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.911335 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:20.911856 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.912223 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.912890 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:20.913494 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.913892 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.914614 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.915140 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.915488 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.916259 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.916874 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.917130 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.918296 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:20.918784 #5602] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:20.919276 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:20.919818 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.920029 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.921036 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.921552 #5602] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:20.922118 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:20.922760 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.924108 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:20.935937 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.936848 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.937492 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.937827 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.938540 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.939152 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.939480 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.940203 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.940860 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.941182 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.941839 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.942452 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.942621 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.943817 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.944169 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:20.944794 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.945072 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.946326 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.946659 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:20.947246 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.947883 #5602] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:20.949058 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:20.949947 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.950747 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.951385 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.951694 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.952400 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.953001 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.953333 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.954077 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.954609 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.954942 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.955596 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.956130 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.956313 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.957500 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.957833 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:20.958340 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.958544 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.959542 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.959850 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:20.960391 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.960786 #5602] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:20.962046 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:20.963163 #5602] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:20.964033 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.964747 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.965291 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.965606 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.966323 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.966890 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.967198 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.967863 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.968528 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.969748 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.970510 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.971037 #5602] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:20.971527 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:20.972073 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.972418 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:20.972679 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.972817 #5602] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:20.973130 #5602] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:20.973908 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:20.974628 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.975406 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.975935 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.976253 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.976950 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.977538 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.977854 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.978544 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.979087 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.979518 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.980221 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.980730 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.980930 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.982222 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.982584 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:20.983037 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:20.983243 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.984287 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.984570 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:20.985070 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.985471 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:20.986159 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.986837 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.987372 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.987685 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.988359 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:20.988965 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.989316 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.990196 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:20.990826 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.991229 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.991990 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.992608 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:20.992800 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.994269 #5602] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.994697 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:20.995239 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.995438 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.996560 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:20.996895 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:20.997468 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:20.997868 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:20.998572 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:20.999273 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:20.999860 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:21.000200 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.001105 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.001645 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.002071 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.002740 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.003251 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.004359 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.005063 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.005636 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.005964 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.006668 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.007131 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:21.007731 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.009080 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.009449 #5602] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:21.010420 #5602] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:21.011016 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:21.011493 #5602] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:21.012035 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:21.012649 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.013334 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.013849 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.014189 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.014908 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.015392 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:21.015753 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.016517 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:21.017067 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.017259 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.018135 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:21.018651 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.019231 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.020003 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.020591 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.020899 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.021574 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.022141 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.022487 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.023211 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:21.023733 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.023966 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.025118 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:21.026208 #5602] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:21.026614 #5602] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:21.027173 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.027642 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:21.028274 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.028959 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.029393 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:21.029730 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.030434 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.030897 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:21.031292 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.032267 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:21.032779 #5602] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:21.033015 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.034279 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:21.034715 #5602] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:21.035311 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.035743 #5602] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:21.036358 #5602] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:21.036639 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:21.037222 #5602] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:21.037740 #5602] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:21.038420 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.039151 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.039802 #5602] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:21.040119 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.040842 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:21.041409 #5602] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:21.042367 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.043277 #5602] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:21.043641 #5602] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:21.044063 #5602] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:21.044760 #5602] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:21.045333 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:21.045648 #5602] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:21.045800 #5602] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:21.046155 #5602] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:21.046771 #5602] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:22.066728 #5607] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:22.069923 #5607] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:22.071182 #5607] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:22.073026 #5607] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:22.076247 #5607] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:22.077463 #5607] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:22.078250 #5607] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:22.079304 #5607] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:22.080066 #5607] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:22.129894 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.131204 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.133639 #5607] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:31:22.136314 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.137323 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.138186 #5607] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:22.141461 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.143019 #5607] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:22.143742 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.144863 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.146087 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:22.146721 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.147137 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.147604 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.148193 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.153639 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.158418 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:22.159402 #5607] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:22.162555 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:22.163404 #5607] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:22.163977 #5607] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:22.164612 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.165133 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.165655 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.165857 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.166208 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.166837 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.168647 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.169658 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.170346 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.171965 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.172415 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.173051 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.173284 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.174207 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.174641 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:22.175175 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.175332 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.176046 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.176369 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:22.176808 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.176935 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.177384 #5607] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:22.177795 #5607] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:22.178230 #5607] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:22.179762 #5607] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:22.180212 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.180727 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.181309 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.181577 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.181953 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.182440 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.182640 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.182965 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:22.183438 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.183692 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.184073 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:22.184584 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.184785 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.185186 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.185685 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.185890 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.186271 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.186787 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.186987 #5607] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:22.187681 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:22.188075 #5607] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:22.188359 #5607] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:22.188835 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.188959 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.189487 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.189885 #5607] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:22.190323 #5607] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:22.190898 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.192033 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:22.192582 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.193022 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.193769 #5607] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:22.194184 #5607] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:22.194961 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.195749 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.196008 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.196455 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.197043 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.197305 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.197816 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.198354 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.198519 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.199651 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.200050 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:22.200658 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.200813 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.201544 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.201937 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:22.202516 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.203058 #5607] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:22.204244 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:22.204805 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.205346 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.205944 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.206183 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.206603 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.207212 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.207569 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.208130 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.208711 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.208962 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.209419 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.209979 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.210105 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.211054 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.211415 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:22.211939 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.212058 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.212729 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.213033 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:22.213484 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.213922 #5607] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:22.226595 #5607] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:22.227865 #5607] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:22.228380 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.228911 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.229866 #5607] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:31:22.230086 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.230717 #5607] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.237340 #5607] DEBUG -- :  (6.4ms) commit transaction D, [2015-08-02T09:31:22.237765 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.238470 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.243715 #5607] DEBUG -- :  (5.0ms) commit transaction D, [2015-08-02T09:31:22.245739 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.246371 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.247042 #5607] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:22.247658 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:22.252113 #5607] DEBUG -- :  (3.9ms) commit transaction D, [2015-08-02T09:31:22.252975 #5607] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:22.253220 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.253401 #5607] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:22.253858 #5607] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:22.255132 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:22.255703 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.256361 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.257240 #5607] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:22.257649 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.258426 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.259322 #5607] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:22.259748 #5607] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:22.260547 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.261261 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.261537 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.262065 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.262695 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.262889 #5607] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:22.264051 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.264594 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:22.265319 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.265492 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.266308 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.266648 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:22.267225 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.267666 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:22.268153 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.268689 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.269294 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.269560 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.270020 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.270597 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.270859 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.271315 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.271826 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.272113 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.272632 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.273225 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.273340 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.274364 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.274756 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:22.275472 #5607] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:22.275635 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.276399 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.276704 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:22.277324 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.277714 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:22.278143 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.278636 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.279227 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.279447 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.279886 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.280477 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.280708 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.281111 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.281699 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.282396 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.282925 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.283543 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.283772 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.284139 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.284694 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.285197 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.286187 #5607] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.286536 #5607] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.287365 #5607] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:22.287965 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.288394 #5607] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:22.288822 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:22.289183 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.289607 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.290103 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.290324 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.290694 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.291177 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.291375 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.291778 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.292270 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.292409 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.292992 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:22.293441 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.293727 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.294139 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.294575 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.294758 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.295103 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.295582 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.295783 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.296185 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.296713 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.296853 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.297694 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:22.298736 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:22.299131 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:22.299753 #5607] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:22.300115 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:22.300474 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.300916 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.301399 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.301650 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.302075 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.302558 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.302785 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.303208 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:22.303686 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.303836 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.304740 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.305093 #5607] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:22.305541 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.305857 #5607] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:22.306339 #5607] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:22.306636 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:22.307067 #5607] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:22.307495 #5607] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:22.307884 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.308325 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.308791 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.308980 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.309341 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:22.309760 #5607] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:22.310584 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.311069 #5607] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:22.311371 #5607] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:22.311777 #5607] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:22.312288 #5607] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:22.312616 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:22.312758 #5607] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:22.312872 #5607] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:22.313139 #5607] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:22.313522 #5607] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:23.325890 #5616] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:23.328477 #5616] DEBUG -- :  (2.3ms) DROP TABLE "authors" D, [2015-08-02T09:31:23.329222 #5616] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:23.330260 #5616] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:31:23.332599 #5616] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:23.333610 #5616] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:23.334342 #5616] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:23.335325 #5616] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:23.335936 #5616] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:23.387311 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.388446 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.390972 #5616] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:31:23.393637 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.394627 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.395278 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.396885 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.397673 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:23.398272 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.398978 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.400178 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:23.400876 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.401347 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.401803 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.402381 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.407029 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.411780 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:23.412739 #5616] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:23.415739 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:23.416376 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.417053 #5616] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:23.417717 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.418223 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.418692 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.418902 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.419256 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.419708 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.421567 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.422694 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.423181 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.424793 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.425360 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.425911 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.426180 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.427107 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.427557 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:23.428108 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.428222 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.428807 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.429091 #5616] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:23.429704 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.429810 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.430226 #5616] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:23.430613 #5616] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:23.431073 #5616] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:23.432677 #5616] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:23.433123 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.433603 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.434325 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.434531 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.434894 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.435519 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.435719 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.436045 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:23.436540 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.436799 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.437193 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:23.437716 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.437916 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.438327 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.438901 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.439122 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.439507 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.440049 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.440248 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.440920 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:23.441299 #5616] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:23.441588 #5616] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:23.442088 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.442210 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.442744 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.443154 #5616] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:23.443588 #5616] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:23.444141 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.445234 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:23.445923 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.446401 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.446959 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.447169 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.447577 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.448133 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.448365 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.448814 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.449299 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.449513 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.449905 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.450424 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.450540 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.451333 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.451667 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:23.452278 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.452404 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.453098 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.453451 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:23.454019 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.454517 #5616] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:23.455492 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:23.455990 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.456512 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.457117 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.457317 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.457693 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.458227 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.458474 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.458938 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.459516 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.459744 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.460157 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.460679 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.460802 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.461633 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.461975 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:23.462615 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.462732 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.463322 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.463606 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:23.464165 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.464597 #5616] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:23.475783 #5616] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:23.476878 #5616] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:23.477443 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.477971 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.478561 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.478820 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.479260 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.479889 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.480103 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.480522 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.481076 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.482186 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.482570 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.483044 #5616] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:23.483382 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:23.483892 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.484215 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:23.484377 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.484492 #5616] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:23.484801 #5616] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:23.485426 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:23.485868 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.486273 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.486924 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.487167 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.487564 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.488216 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.488503 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.488895 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.489633 #5616] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:23.489855 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.490244 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.490812 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.490936 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.491734 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.492055 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:23.492672 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.492800 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.493361 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.493633 #5616] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:23.494266 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.494589 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:23.494986 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.495364 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.495998 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.496300 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.496651 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.497278 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.497513 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.497981 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.498534 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.498809 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.499290 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.499791 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.499937 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.500767 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.501113 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:23.501628 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.501748 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.502381 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.502682 #5616] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:23.503191 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.503535 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:23.503947 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.504360 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.504916 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.505165 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.505654 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.506316 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.506617 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.507008 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.507548 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.508375 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.508864 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.509367 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.509602 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.509985 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.510453 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.510942 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.511827 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.512162 #5616] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.513102 #5616] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:23.513808 #5616] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:23.514236 #5616] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:23.514872 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:23.515418 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.515877 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.516427 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.516648 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.517050 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.517485 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.517705 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.518156 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.518671 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.518810 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.519397 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:23.519948 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.520274 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.520666 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.521181 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.521368 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.521708 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.522201 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.522391 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.522772 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.523246 #5616] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:23.523381 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.524151 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:23.524865 #5616] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:23.525243 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:23.525865 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.526417 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:23.526939 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.527552 #5616] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.528076 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.528334 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.528819 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.529392 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.529679 #5616] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:23.530172 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:23.530713 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.530905 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.531943 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.532338 #5616] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:23.532943 #5616] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:23.533329 #5616] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:23.533881 #5616] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:23.534210 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:23.534773 #5616] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:23.535294 #5616] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:23.535751 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.536259 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.536861 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.537093 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.537515 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:23.538046 #5616] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:23.538896 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.539449 #5616] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:23.539791 #5616] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:23.540224 #5616] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:23.540906 #5616] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:23.541232 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:23.541428 #5616] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:23.541536 #5616] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:23.541818 #5616] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:23.542256 #5616] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:24.563999 #5620] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:24.566989 #5620] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:24.568260 #5620] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:24.570277 #5620] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:24.574311 #5620] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:24.575521 #5620] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:24.576374 #5620] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:24.577484 #5620] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:24.578244 #5620] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:24.628500 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.629676 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.632623 #5620] DEBUG -- :  (2.7ms) commit transaction D, [2015-08-02T09:31:24.635598 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.636679 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.637372 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.638880 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.639712 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:24.640233 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.641247 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.642317 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:24.642862 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.643202 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.643616 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.644143 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.648635 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.654177 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:24.655233 #5620] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:24.656218 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:24.656971 #5620] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:24.658028 #5620] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:24.659122 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.659673 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.660455 #5620] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:24.660750 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.661309 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.661983 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.667321 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.668797 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.669606 #5620] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:24.672778 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.673411 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.674071 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.674383 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.675554 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.676142 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:24.676790 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.676958 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.677694 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.678047 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:24.678684 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.678818 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.679340 #5620] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:24.679888 #5620] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:24.680384 #5620] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:24.681985 #5620] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:24.682455 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.682978 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.683621 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.683863 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.684251 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.684825 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.685037 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.685421 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:24.685921 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.686185 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.686608 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:24.687132 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.687380 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.687789 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.688300 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.688527 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.688942 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.689445 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.689655 #5620] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:24.690355 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:24.690747 #5620] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:24.691048 #5620] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:24.691593 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.691740 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.692297 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.692723 #5620] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:24.693166 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:24.693707 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.694951 #5620] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:24.695529 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.696024 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.696658 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.696884 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.697274 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.697820 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.698074 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.698589 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.699115 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.699322 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.699768 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.700244 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.700384 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.701316 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.701667 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:24.702254 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.702393 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.703117 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.703415 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:24.704011 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.704455 #5620] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:24.705441 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:24.705938 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.706395 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.706918 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.707121 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.707495 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.708051 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.708263 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.708676 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.709212 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.709409 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.709824 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.710353 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.710472 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.711261 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.711587 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:24.712149 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.712313 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.712975 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.713285 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:24.713788 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.714131 #5620] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:24.715413 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:24.716397 #5620] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:24.716920 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.717388 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.717955 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.718170 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.718557 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.719093 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.730525 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.731581 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.732165 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.733678 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.734303 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.734963 #5620] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:24.735439 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:24.736270 #5620] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:24.736920 #5620] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:24.737282 #5620] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:24.737537 #5620] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:24.738235 #5620] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:24.739321 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:24.739868 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.740466 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.741085 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.741363 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.741867 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.742483 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.742775 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.743274 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.743902 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.744178 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.744662 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.745273 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.745414 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.746418 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.746795 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:24.747379 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.747524 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.748255 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.748669 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:24.749176 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.749616 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:24.750045 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.750507 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.751008 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.751228 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.751618 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.752101 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.752320 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.752792 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.753238 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.753447 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.753864 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.754313 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.754444 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.755294 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.755622 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:24.756040 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.756149 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.756800 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.757124 #5620] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:24.757568 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.757898 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:24.758296 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.758705 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.759137 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.759344 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.759746 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.760244 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.760558 #5620] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:24.760949 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.761429 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.762119 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.762532 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.763061 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.763300 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.763742 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.764299 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.764862 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.765973 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.766327 #5620] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.767385 #5620] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:24.768077 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.768556 #5620] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:24.769055 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:24.769468 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.769940 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.770493 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.770703 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.771103 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.771690 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.771976 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.772403 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.772941 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.773086 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.773778 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:24.774252 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.774570 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.775028 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.775569 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.775795 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.776208 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.776728 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.777028 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.777600 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.778268 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.778490 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.779550 #5620] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:24.780543 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:24.780986 #5620] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:24.781637 #5620] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:24.782050 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:24.782473 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.782980 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.783539 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.783773 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.784204 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.784713 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.784927 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.785368 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:24.785934 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.786107 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.787032 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.787406 #5620] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:24.787889 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.788243 #5620] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:24.788743 #5620] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:24.789070 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:24.789563 #5620] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:24.790034 #5620] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:24.790418 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.790855 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.791321 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.791537 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.791887 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:24.792336 #5620] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:24.793162 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.793678 #5620] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:24.793999 #5620] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:24.794420 #5620] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:24.794977 #5620] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:24.795299 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:24.795448 #5620] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:24.795567 #5620] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:24.795834 #5620] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:24.796222 #5620] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:25.826477 #5624] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:25.829666 #5624] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:31:25.830973 #5624] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:25.832888 #5624] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:25.836214 #5624] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:25.837473 #5624] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:31:25.838618 #5624] DEBUG -- :  (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:25.839671 #5624] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:25.840475 #5624] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:25.893039 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.894183 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.897006 #5624] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:31:25.901521 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.902838 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.903493 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.905532 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.906773 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:25.907399 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.908354 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.909398 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:25.909977 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.910331 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.910727 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.911225 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.916249 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.921235 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:25.922179 #5624] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:25.923054 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:25.923913 #5624] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:25.924582 #5624] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:25.925398 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.926034 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.926677 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.926936 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.927442 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.928033 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.930294 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.931408 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.932090 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.933915 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.934413 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.934988 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.935216 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.936115 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.936558 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:25.937105 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.937218 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.937804 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.938099 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:25.938636 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.938743 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.939158 #5624] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:25.939547 #5624] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:25.939971 #5624] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:25.941372 #5624] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:25.941789 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.942256 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.942886 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.943135 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.943495 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.944032 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.944240 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.944561 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:25.945100 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.945352 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.945742 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:25.946261 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.946522 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.946937 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.947542 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.947770 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.948155 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.948735 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.948911 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.949608 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:25.949996 #5624] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:25.950296 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:25.950802 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.950929 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.951480 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.951905 #5624] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:25.952333 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:25.952962 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.954108 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:25.954650 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.955071 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.955673 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.955866 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.956225 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.956758 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.956959 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.957349 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.957967 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.958180 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.958556 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.959102 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.959239 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.960134 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.960511 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:25.961064 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.961210 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.961888 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.962189 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:25.962716 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.963184 #5624] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:25.964192 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:25.964656 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.965156 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.965805 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.966024 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.966477 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.967013 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.967230 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.967612 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.968131 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.968338 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.968722 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.969279 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.969387 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.970220 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.970560 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:25.971130 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.971238 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.971854 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.972193 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:25.972756 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.973209 #5624] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:25.974439 #5624] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:25.975611 #5624] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:25.976231 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.976780 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.977448 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.977684 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.978082 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.978618 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.978839 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.979277 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.979837 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.980868 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.981270 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.981735 #5624] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:25.982083 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:25.982575 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.982865 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:25.983035 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.983153 #5624] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:25.983463 #5624] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:25.984074 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:25.984472 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.984881 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.985430 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.985607 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.985955 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.986556 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.986860 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.987257 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.987768 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.987999 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.988391 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.988945 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.989060 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.989864 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.990192 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:25.990785 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.990964 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.991575 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.991874 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:25.992414 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.992751 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:25.993145 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.993550 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.994119 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.994307 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.994661 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:25.995253 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.995553 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.995937 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:25.996499 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.996703 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.997115 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:25.997660 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:25.997784 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:25.998766 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:25.999106 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:25.999689 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:25.999823 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.000512 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:26.000847 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:26.001386 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.001772 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:26.002231 #5624] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:26.002698 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.003252 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.003561 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.004042 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.004662 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.004955 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.005417 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.005983 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.006614 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.007046 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.007537 #5624] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:26.007769 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.008178 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.008717 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.009307 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.010548 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.010953 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:26.011987 #5624] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:26.012694 #5624] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:26.013244 #5624] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:26.013760 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:26.014145 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.014636 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.015186 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.015533 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.016021 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.016577 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.016817 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.017305 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:26.017768 #5624] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:26.017917 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.018602 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:26.019077 #5624] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:26.019411 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.019868 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.020271 #5624] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:26.020471 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.020843 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.021294 #5624] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:26.021522 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.021995 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:26.022555 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.022718 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.023550 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:26.024306 #5624] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:26.024710 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:26.025304 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:26.025662 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:26.026011 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.026433 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.027063 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.027548 #5624] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:26.028347 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.029170 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:26.029428 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.029831 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:26.030332 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.030488 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.031308 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:26.031642 #5624] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:26.032145 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.032487 #5624] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:26.032962 #5624] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:26.033265 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:26.033728 #5624] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:26.034193 #5624] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:26.034557 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.034980 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.035518 #5624] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:26.035799 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.036340 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:26.037008 #5624] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:26.038104 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.038780 #5624] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:26.039277 #5624] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:26.039853 #5624] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:26.040642 #5624] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:26.041337 #5624] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:26.041657 #5624] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:26.041878 #5624] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:26.042490 #5624] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:26.043292 #5624] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:27.058410 #5628] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:27.061473 #5628] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:27.062810 #5628] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:27.064705 #5628] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:27.068317 #5628] DEBUG -- :  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:27.070054 #5628] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:31:27.071115 #5628] DEBUG -- :  (0.8ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:27.072797 #5628] DEBUG -- :  (0.8ms) DROP TABLE "tags" D, [2015-08-02T09:31:27.073606 #5628] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:27.124266 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.125424 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.128186 #5628] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:27.132780 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.134134 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.134822 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.136896 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.138242 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:27.138859 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.139798 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.140931 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:27.141604 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.141976 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.142401 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.143035 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.148128 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.153383 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:27.154386 #5628] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:27.155364 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:27.156092 #5628] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:27.156615 #5628] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:27.157300 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.157802 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.158430 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.158638 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.159008 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.159686 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.164265 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.165470 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.166162 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.167916 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.168390 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.169047 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.169308 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.170193 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.170646 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:27.171295 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.171405 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.171989 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.172296 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:27.172899 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.173073 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.173698 #5628] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:27.174227 #5628] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:27.174809 #5628] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:27.177069 #5628] DEBUG -- :  (0.7ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:27.177797 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.178817 #5628] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.179819 #5628] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:27.180095 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.180617 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.181617 #5628] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:27.181966 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.182430 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:27.183085 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.183442 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.183989 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:27.184610 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.184907 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.185448 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.186046 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.186323 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.186813 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.187467 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.187635 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.188502 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:27.189028 #5628] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:27.189408 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:27.190076 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.190213 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.190858 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.191337 #5628] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:27.191846 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:27.192355 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.193591 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:27.194180 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.194631 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.195183 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.195401 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.195761 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.196295 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.196515 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.196920 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.197423 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.197670 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.198189 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.198800 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.198988 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.199960 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.200456 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:27.201020 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.201150 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.201836 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.202178 #5628] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:27.202649 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.203063 #5628] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:27.204205 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:27.204785 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.205264 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.205885 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.206098 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.206477 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.207037 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.207259 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.207666 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.208202 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.208435 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.208835 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.209355 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.209516 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.210399 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.210736 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:27.211327 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.211449 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.212057 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.212344 #5628] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:27.212861 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.213229 #5628] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:27.214588 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:27.215551 #5628] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:27.216082 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.216570 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.217191 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.217396 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.217767 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.230537 #5628] DEBUG -- :  (1.1ms) commit transaction D, [2015-08-02T09:31:27.231060 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.232054 #5628] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.232798 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.234371 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.234961 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.235898 #5628] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:27.236473 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:27.237144 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.237525 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:27.237747 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.237923 #5628] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:27.238346 #5628] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:27.239201 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:27.239735 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.240299 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.240884 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.241141 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.241588 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.242216 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.242479 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.242998 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.243540 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.243793 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.244232 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.244776 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.244908 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.245814 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.246185 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:27.246841 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.246971 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.247595 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.247914 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:27.248444 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.248871 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:27.249399 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.249925 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.250375 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.250610 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.251094 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.251548 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.251809 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.252249 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.252663 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.252881 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.253280 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.253692 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.253808 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.254668 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.255019 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:27.255417 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.255522 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.256173 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.256471 #5628] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:27.256872 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.257195 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:27.257596 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.257994 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.258463 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.258722 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.259095 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.259513 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.259762 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.260160 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.260582 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.261280 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.261797 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.262300 #5628] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:27.262470 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.262828 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.263321 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.263755 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.264595 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.264910 #5628] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.265875 #5628] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:27.266595 #5628] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:27.267030 #5628] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:27.267477 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:27.267891 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.268318 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.268928 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.269107 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.269485 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.270020 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.270268 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.270803 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.271447 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.271624 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.272365 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:27.272920 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.273308 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.273803 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.274364 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.274565 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.274939 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.275553 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.275889 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.276529 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.277130 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.277295 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.278177 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:27.278955 #5628] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:27.279373 #5628] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:27.280000 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.280428 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:27.280898 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.281338 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.281879 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.282160 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.282725 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.283364 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.283675 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.284261 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:27.284896 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.285099 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.285983 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.286360 #5628] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:27.286925 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.287293 #5628] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:27.287825 #5628] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:27.288140 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:27.288648 #5628] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:27.289156 #5628] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:27.289579 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.290052 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.290602 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.290886 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.291392 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:27.292003 #5628] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:27.292999 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.293648 #5628] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:27.294082 #5628] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:27.294542 #5628] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:27.295098 #5628] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:27.295411 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:27.295556 #5628] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:27.295661 #5628] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:27.295917 #5628] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:27.296292 #5628] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:28.321409 #5635] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:31:28.324689 #5635] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:31:28.325959 #5635] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:28.327806 #5635] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:28.331083 #5635] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:28.332284 #5635] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:28.333127 #5635] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:28.334511 #5635] DEBUG -- :  (0.9ms) DROP TABLE "tags" D, [2015-08-02T09:31:28.342423 #5635] DEBUG -- :  (7.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:28.395612 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.396826 #5635] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.399364 #5635] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:31:28.403408 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.404681 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.405393 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.407461 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.408728 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:28.409370 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.410258 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.411271 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:28.411825 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.412143 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.412526 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.413096 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.418322 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.423553 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:28.424750 #5635] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:28.426018 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:28.426922 #5635] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:28.427631 #5635] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:28.428441 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.429079 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.429710 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.429988 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.430477 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.431041 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.433375 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.434447 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.435120 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.436869 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.437359 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.437883 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.438130 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.438978 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.439414 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:28.440067 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.440179 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.440788 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.441076 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:28.441633 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.441746 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.442139 #5635] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:28.442521 #5635] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:28.442943 #5635] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:28.444332 #5635] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:28.444751 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.445205 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.445810 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.446021 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.446374 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.446964 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.447198 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.447573 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:28.448127 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.448409 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.448817 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:28.449328 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.449558 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.449976 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.450446 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.450655 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.451070 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.451605 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.451782 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.452470 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:28.452851 #5635] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:28.453139 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:28.453661 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.453793 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.454345 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.454760 #5635] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:28.455191 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:28.455680 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.456803 #5635] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:28.457420 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.457971 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.458593 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.458813 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.459235 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.459781 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.460001 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.460444 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.461057 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.461299 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.461707 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.462206 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.462338 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.463236 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.463611 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:28.464152 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.464291 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.465004 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.465371 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:28.466031 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.466483 #5635] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:28.467479 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:28.467963 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.468431 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.468954 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.469166 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.469529 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.470109 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.470312 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.470712 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.471287 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.471498 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.471886 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.472435 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.472546 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.473341 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.473671 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:28.474218 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.474336 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.474911 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.475196 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:28.475748 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.476174 #5635] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:28.477305 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:28.478219 #5635] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:28.478699 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.479140 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.479742 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.479937 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.480285 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.480832 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.481047 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.481485 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.482017 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.483049 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.483450 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.483902 #5635] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:28.484251 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:28.484771 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.485049 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:28.485212 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.485333 #5635] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:28.485640 #5635] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:28.486268 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:28.486663 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.487069 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.487599 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.487784 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.488139 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.488791 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.489111 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.489548 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.490120 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.490369 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.490803 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.491319 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.491441 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.492305 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.492639 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:28.493260 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.493385 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.493973 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.494256 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:28.494768 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.495097 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:28.495485 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.495882 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.496401 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.496603 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.496949 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.497510 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.497767 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.498218 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.498831 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.499076 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.499516 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.500034 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.500151 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.500997 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.501475 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:28.501997 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.502148 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.502882 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.503247 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:28.503816 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.504220 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:28.504650 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.505085 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.505644 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.505879 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.506282 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.506794 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.507022 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.507418 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.507943 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.508557 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.508945 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.509503 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.509727 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.510112 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.510627 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.511137 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.512206 #5635] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.512541 #5635] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.513496 #5635] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:28.514123 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.514669 #5635] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:28.515234 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:28.515645 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.516102 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.516572 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.516801 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.517202 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.517643 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.517860 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.518290 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.518721 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.518854 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.519439 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:28.519918 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.520221 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.520681 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.521159 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.521357 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.521741 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.522165 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.522375 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.522780 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.523251 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.523404 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.524242 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:28.525016 #5635] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:28.525410 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:28.525984 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.526348 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:28.526703 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.527133 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.527614 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.527818 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.528170 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.528655 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.528859 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.529263 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:28.529789 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.529974 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.530738 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.531082 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:28.531552 #5635] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:28.531867 #5635] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:28.532348 #5635] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:28.532663 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:28.533133 #5635] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:28.533592 #5635] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:28.533959 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.534370 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.534968 #5635] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:28.535176 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.535554 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:28.536120 #5635] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:28.536954 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.537503 #5635] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:28.537847 #5635] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:28.538268 #5635] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:28.538966 #5635] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:28.539344 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:28.539519 #5635] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:28.539649 #5635] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:28.539968 #5635] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:28.540422 #5635] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:29.561816 #5639] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:29.564589 #5639] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:31:29.565395 #5639] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:29.566529 #5639] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:29.568889 #5639] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:29.569937 #5639] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:29.570715 #5639] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:29.571865 #5639] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:31:29.572610 #5639] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:29.622569 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.623721 #5639] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.626229 #5639] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:31:29.628970 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.629968 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.630654 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.632448 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.633274 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:29.633967 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.635321 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.636396 #5639] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:29.636971 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.637381 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.637846 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.638505 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.643896 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.649945 #5639] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:29.651201 #5639] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:29.652438 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:29.653036 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.653637 #5639] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:29.654414 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.655060 #5639] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.655713 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.655996 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.656451 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.657117 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.659340 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.660373 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.660924 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.662626 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.663096 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.663713 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.663963 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.664847 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.665320 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:29.665919 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.666049 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.666662 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.666951 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:29.667538 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.667644 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.668056 #5639] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:29.668446 #5639] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:29.668863 #5639] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:29.670278 #5639] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:29.670691 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.671149 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.671765 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.672016 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.672430 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.673029 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.673239 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.673563 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:29.674097 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.674355 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.674739 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:29.675278 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.675495 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.675889 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.676469 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.676701 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.677141 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.677677 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.677871 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.678564 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:29.678946 #5639] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:29.679244 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:29.679724 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.679852 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.680416 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.680830 #5639] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:29.681286 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:29.681851 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.682976 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:29.683523 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.683949 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.684499 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.684693 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.685037 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.685542 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.685745 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.686129 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.686697 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.686894 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.687280 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.687890 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.688029 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.688910 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.689314 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:29.689888 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.690046 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.690738 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.691034 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:29.691706 #5639] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:29.692248 #5639] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:29.693264 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:29.693796 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.694249 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.694835 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.695037 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.695392 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.695925 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.696126 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.696518 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.697121 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.697367 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.697794 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.698415 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.698555 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.699527 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.699886 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:29.700360 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.700476 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.701057 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.701337 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:29.701893 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.702264 #5639] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:29.703410 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) AND ("taggings"."taggable_type" IN ('Post', 'SpecialPost')) D, [2015-08-02T09:31:29.704342 #5639] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:29.704842 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.705304 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.705867 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.706096 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.706524 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.707103 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.707290 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.707701 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.708273 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.709249 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.709622 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.710052 #5639] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:29.710390 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:29.710920 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.711205 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:29.711355 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.711477 #5639] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:29.711780 #5639] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:29.712418 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:29.712799 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.713208 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.713856 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.714044 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.714379 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.714970 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.715229 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.715658 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.716255 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.716474 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.716906 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.717511 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.717628 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.718413 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.718750 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:29.719381 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.719498 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.720059 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.720338 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:29.720905 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.721233 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:29.721633 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.722013 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.722646 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.722830 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.723168 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.723715 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.723990 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.724395 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.724943 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.725153 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.725532 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.726042 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.726157 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.726867 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.727179 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:29.727892 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.728006 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.728597 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.728883 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:29.729393 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.729700 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:29.730087 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.730481 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.731034 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.731266 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.731655 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.732236 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.732495 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.732932 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.733439 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.734120 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.734539 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.735066 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.735312 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.735678 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.736165 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.736605 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.737473 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.737790 #5639] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.738831 #5639] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:29.739520 #5639] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:29.739984 #5639] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:29.740465 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:29.740847 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.741256 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.741781 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.741970 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.742320 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.742848 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.743055 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.743447 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.743972 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.744108 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.744650 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:29.745232 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.745579 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.745995 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.746567 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.746816 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.747162 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.747694 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.747928 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.748373 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.748908 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.749095 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.749922 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:29.750680 #5639] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:29.751075 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:29.751614 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.752013 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:29.752424 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.752831 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.753301 #5639] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:29.753502 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.753891 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.754389 #5639] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:29.754590 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.754995 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:29.755518 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.755676 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.756432 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.756770 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:29.757275 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.757578 #5639] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:29.758062 #5639] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:29.758340 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:29.758785 #5639] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:29.759219 #5639] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:29.759674 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.760178 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.760722 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.760945 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.761337 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:29.761887 #5639] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:29.762632 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.763109 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:29.763458 #5639] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:29.763846 #5639] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:29.764480 #5639] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:29.764761 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:29.764908 #5639] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:29.765009 #5639] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:29.765263 #5639] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:29.765636 #5639] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:30.791284 #5643] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:30.794354 #5643] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:30.795599 #5643] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:30.797515 #5643] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:30.800894 #5643] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:30.802137 #5643] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:30.802935 #5643] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:30.803998 #5643] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:30.804709 #5643] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:30.853148 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.854426 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.857224 #5643] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:30.860294 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.861533 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.862254 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.864449 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.865662 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:30.866318 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.867247 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.868337 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:30.868888 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.869232 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.869666 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.870251 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.875498 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.880606 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:30.881695 #5643] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:30.882952 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:30.883741 #5643] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:30.884434 #5643] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:30.885141 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.885708 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.886215 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:30.886432 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.886870 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.887441 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.891549 #5643] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:30.892797 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.893537 #5643] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:30.895893 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.896483 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.897138 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.897455 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.898619 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.899190 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:30.899782 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.899933 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.900674 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.901029 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:30.901594 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.901715 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.902183 #5643] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:30.902622 #5643] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:30.903067 #5643] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:30.904813 #5643] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:30.905293 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.905948 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.906578 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.906819 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.907263 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.907887 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.908122 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.908537 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:30.909088 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.909385 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.909842 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:30.910354 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.910600 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.911051 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.911534 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.911759 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.912179 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.912714 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.912918 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.913719 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:30.914136 #5643] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:30.914459 #5643] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:30.915032 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.915151 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.915777 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.916233 #5643] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:30.916700 #5643] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:30.917237 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.918412 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:30.919007 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.919559 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.920130 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.920394 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.920857 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.921494 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.921768 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.922357 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.923011 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.923306 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.923836 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.924388 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.924542 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.925644 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.926111 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:30.926676 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.926811 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.927599 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.927965 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:30.928478 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.928973 #5643] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:30.930023 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:30.930539 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.931053 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.931674 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.931930 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.932420 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.933017 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.933230 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.933657 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.934258 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.934471 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.934886 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.935447 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.935573 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.936481 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.936852 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:30.937405 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.937545 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.938315 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.938671 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:30.939218 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.950887 #5643] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:30.952033 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:30.953030 #5643] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:30.953563 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.954110 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.954976 #5643] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:30.955415 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.956293 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.957181 #5643] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:30.957614 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.958496 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.959164 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.960537 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.961115 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.961762 #5643] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:30.962261 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:30.962874 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.963263 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:30.963789 #5643] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:30.964716 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:30.965306 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.965952 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.966617 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.966898 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.967434 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.968162 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.968418 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.968936 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.969620 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.969876 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.970372 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.970986 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.971119 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.972189 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.972609 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:30.973197 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.973337 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.974073 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.974404 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:30.974948 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.975387 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:30.975818 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.976270 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.976759 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:30.976994 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.977420 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.977992 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.978221 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.978658 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:30.979197 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.979414 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.979818 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.980374 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.980482 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.981328 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.981714 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:30.982311 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.982473 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.983340 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.983700 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:30.984268 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.984753 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:30.985168 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.985614 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.986164 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:30.986370 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.986770 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.987280 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:30.987723 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.988692 #5643] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.989443 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.990248 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.990842 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.991457 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.991692 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.992190 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:30.992828 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:30.993421 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.994528 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.994911 #5643] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:30.995850 #5643] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:30.996554 #5643] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:30.997100 #5643] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:30.997654 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:30.998065 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.998571 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:30.999062 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:30.999289 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:30.999731 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:31.000244 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.000510 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.001031 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:31.001610 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.001759 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.002579 #5643] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:31.003139 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.003503 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.004018 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:31.004551 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.004775 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.005208 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:31.005724 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.005978 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.006447 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:31.006954 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:31.007122 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.008118 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:31.008924 #5643] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:31.009309 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:31.009935 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:31.010321 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:31.010685 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.011118 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:31.011601 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:31.011791 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.012167 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:31.012679 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.012925 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.013411 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:31.013907 #5643] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:31.014038 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.014890 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:31.015308 #5643] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:31.015920 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.016359 #5643] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:31.017004 #5643] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:31.017318 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:31.017800 #5643] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:31.018280 #5643] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:31.018635 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.019060 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:31.019608 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.019845 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.020251 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:31.020833 #5643] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:31.021734 #5643] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:31.022310 #5643] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:31.022674 #5643] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:31.023127 #5643] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:31.023701 #5643] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:31.024042 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:31.024408 #5643] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:31.024837 #5643] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:32.030114 #5648] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:32.033009 #5648] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:32.033801 #5648] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:32.034873 #5648] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:31:32.037282 #5648] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:32.038325 #5648] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:32.039037 #5648] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:32.040067 #5648] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:32.040829 #5648] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:32.095549 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.096791 #5648] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.099255 #5648] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:31:32.102005 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.103037 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.103673 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.105179 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.106073 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:32.106772 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.108407 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.109417 #5648] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:32.109987 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.110346 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.110756 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.111411 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.116055 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.121033 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:32.122044 #5648] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:32.123002 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:32.123539 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.124051 #5648] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:32.124737 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.125274 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.126164 #5648] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:32.126413 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.127131 #5648] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.133379 #5648] DEBUG -- :  (3.6ms) commit transaction D, [2015-08-02T09:31:32.135837 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.137048 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.140672 #5648] DEBUG -- :  (3.4ms) commit transaction D, [2015-08-02T09:31:32.142670 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.143302 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.148611 #5648] DEBUG -- :  (5.1ms) commit transaction D, [2015-08-02T09:31:32.149008 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.150452 #5648] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.150931 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:32.151506 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.151638 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.152318 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.152633 #5648] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:32.153192 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.153294 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.153775 #5648] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:32.154201 #5648] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:32.154628 #5648] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:32.156140 #5648] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:32.156579 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.157085 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.157643 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.157836 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.158231 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.158865 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.159118 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.159551 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:32.160108 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.160418 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.160928 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:32.161479 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.161729 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.162154 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.162699 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.163007 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.163589 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.164189 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.164390 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.165418 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:32.165969 #5648] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:32.166369 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:32.166966 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.167128 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.167851 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.168330 #5648] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:32.168835 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:32.169445 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.170978 #5648] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:32.171653 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.172193 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.172860 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.173098 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.173599 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.174235 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.174482 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.174961 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.175495 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.175731 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.176180 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.176729 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.176853 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.177823 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.178203 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:32.178769 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.178942 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.179671 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.180002 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:32.180590 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.181027 #5648] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:32.182127 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:32.182720 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.183209 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.183870 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.184184 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.184747 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.185377 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.185618 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.186089 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.186696 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.186945 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.187385 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.187908 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.188032 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.188987 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.189361 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:32.189915 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.190068 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.190824 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.201421 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:32.202114 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.202580 #5648] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:32.203505 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:32.204464 #5648] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:32.204995 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.205493 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.206111 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.206369 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.206849 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.207378 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.207594 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.208009 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.208530 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.209605 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.210048 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.210555 #5648] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:32.210921 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:32.211462 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.211757 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:32.212169 #5648] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:32.212846 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:32.213296 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.213820 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.214449 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.214669 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.215166 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.215849 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.216102 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.216548 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.217012 #5648] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:32.217217 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.217650 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.218075 #5648] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:32.218180 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.219101 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.219467 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:32.219889 #5648] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:32.220059 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.220988 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.221440 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:32.221989 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.222451 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:32.222920 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.223447 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.224079 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.224322 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.224798 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.225282 #5648] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:32.225520 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.225971 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.226573 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.226797 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.227247 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.227870 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.227996 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.228955 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.229348 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:32.229855 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.229971 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.230730 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.231044 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:32.231591 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.232085 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:32.232481 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.232919 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.233429 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.233621 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.234020 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.234573 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.234789 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.235201 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.235718 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.236337 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.236757 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.237344 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.237571 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.237993 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.238521 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.238991 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.239886 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.240256 #5648] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.241258 #5648] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:32.241959 #5648] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:32.242460 #5648] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:32.242975 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:32.243365 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.243841 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.244347 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.244541 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.244933 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.245505 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.245760 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.246281 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.246887 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.247051 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.247922 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:32.248534 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.248993 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.249618 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.250181 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.250414 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.250906 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.251446 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.251707 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.252224 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.252790 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.253021 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.254106 #5648] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:32.255081 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:32.255548 #5648] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:32.256231 #5648] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:32.256637 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:32.257033 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.257506 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.258003 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.258213 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.258617 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.259182 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.259397 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.259858 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:32.260394 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.260588 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.261512 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.261873 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:32.262371 #5648] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:32.262707 #5648] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:32.263203 #5648] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:32.263534 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:32.264032 #5648] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:32.264498 #5648] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:32.264868 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.265349 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.265998 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.266210 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.266622 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:32.267089 #5648] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:32.267822 #5648] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:32.268298 #5648] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:32.268639 #5648] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:32.269026 #5648] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:32.269659 #5648] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:32.270006 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:32.270373 #5648] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:32.270813 #5648] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:33.294693 #5657] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:33.297686 #5657] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:33.299027 #5657] DEBUG -- :  (1.1ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:33.300819 #5657] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:33.303366 #5657] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:33.304554 #5657] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:33.305386 #5657] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:33.306507 #5657] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:33.307319 #5657] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:33.359232 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.360613 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.363361 #5657] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:33.366099 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.367261 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.367964 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.369935 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.370980 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:33.371682 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.372642 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.373744 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:33.374339 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.374702 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.375167 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.375785 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.380822 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.386043 #5657] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:33.387279 #5657] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:33.388503 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:33.389213 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.389747 #5657] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:33.390415 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.390937 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.391613 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.391824 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.392239 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.392873 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.397403 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.398574 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.399389 #5657] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:33.401655 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.402223 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.402701 #5657] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:33.403246 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.404222 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.404714 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:33.405321 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.405457 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.406092 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.406393 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:33.407038 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.407142 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.407568 #5657] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:33.407969 #5657] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:33.408388 #5657] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:33.410019 #5657] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:33.410434 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.410928 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.411549 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.411747 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.412144 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.412745 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.412942 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.413309 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:33.413877 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.414146 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.414566 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:33.415165 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.415386 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.415803 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.416348 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.416570 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.416986 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.417629 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.417804 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.418583 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:33.418992 #5657] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:33.419303 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:33.419806 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.419922 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.420530 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.420978 #5657] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:33.421433 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:33.421968 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.423206 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:33.423809 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.424271 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.424880 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.425090 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.425500 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.426028 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.426244 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.426673 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.427197 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.427422 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.427822 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.428340 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.428469 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.429301 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.429655 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:33.430227 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.430368 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.431013 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.431325 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:33.431809 #5657] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:33.432356 #5657] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:33.433437 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:33.433993 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.434537 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.435134 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.435432 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.435914 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.436479 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.436767 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.437307 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.437954 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.438235 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.438736 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.439364 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.439489 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.440471 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.440892 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:33.441419 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.441543 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.442279 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.442626 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:33.443189 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.443592 #5657] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:33.456138 #5657] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:33.457152 #5657] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:33.457704 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.458236 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.458837 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.459035 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.459435 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.460030 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.460207 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.460596 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.461145 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.462165 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.462579 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.463089 #5657] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:33.463458 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:33.464086 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.464380 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:33.464804 #5657] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:33.465580 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:33.466010 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.466465 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.467120 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.467302 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.467695 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.468398 #5657] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:33.468618 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.469023 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.469681 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.469880 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.470315 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.471006 #5657] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:33.471112 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.471987 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.472340 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:33.472874 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.472999 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.473632 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.473926 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:33.474477 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.474837 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:33.475230 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.475643 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.476220 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.476412 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.476804 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.477414 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.477613 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.478021 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.478568 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.478778 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.479169 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.479718 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.479823 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.480603 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.480920 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:33.481450 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.481558 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.482195 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.482516 #5657] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:33.483084 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.483525 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:33.483937 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.484440 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.484990 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.485207 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.485712 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.486262 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.486563 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.486978 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.487473 #5657] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:33.488147 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.488563 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.489071 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.489301 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.489740 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.490245 #5657] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:33.490796 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.492013 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.492470 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.493498 #5657] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:33.494180 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.494702 #5657] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:33.495318 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:33.495789 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.496327 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.496868 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.497111 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.497553 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.498090 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.498365 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.499023 #5657] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.499753 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.499958 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.500787 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:33.501377 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.501721 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.502223 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.502708 #5657] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:33.502902 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.503311 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.503832 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.504056 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.504536 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.505087 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.505254 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.506248 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:33.507092 #5657] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:33.507469 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:33.508154 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.508636 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:33.509070 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.509654 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.510298 #5657] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:33.510504 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.510902 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.511394 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.511600 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.511999 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:33.512564 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.512719 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.513583 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.514026 #5657] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:33.514593 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.514924 #5657] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:33.515437 #5657] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:33.515748 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:33.516226 #5657] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:33.516702 #5657] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:33.517048 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.517469 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.517966 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.518196 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.518615 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:33.519187 #5657] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:33.520023 #5657] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:33.520529 #5657] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:33.520885 #5657] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:33.521355 #5657] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:33.522081 #5657] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:33.522442 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:33.522797 #5657] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:33.523217 #5657] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:34.573596 #5661] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:34.576661 #5661] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:34.578514 #5661] DEBUG -- :  (1.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:34.580451 #5661] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:34.583643 #5661] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:34.584908 #5661] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:34.585729 #5661] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:34.586779 #5661] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:34.587542 #5661] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:34.638694 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.639904 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.642556 #5661] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:31:34.645112 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.646131 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.646866 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.648353 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.649193 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:34.649829 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.650784 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.652010 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:34.652676 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.653115 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.653651 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.654298 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.659694 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.665647 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:34.666896 #5661] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:34.668005 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:34.668531 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.669154 #5661] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:34.669890 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.670447 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.671023 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.671250 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.671672 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.672299 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.677642 #5661] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:34.679955 #5661] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.680847 #5661] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:34.683274 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.683966 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.684669 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.684967 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.686173 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.686766 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:34.687350 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.687539 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.688309 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.688669 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:34.689270 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.689387 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.689883 #5661] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:34.690403 #5661] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:34.690913 #5661] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:34.692545 #5661] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:34.693070 #5661] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:34.693676 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.694498 #5661] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:34.694955 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.695825 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.696750 #5661] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:34.697212 #5661] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:34.697716 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:34.698553 #5661] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:34.699111 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.700072 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:34.700773 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.701088 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.701667 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.702300 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.702570 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.703141 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.703760 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.703961 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.704990 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:34.705534 #5661] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:34.705947 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:34.706540 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.706726 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.707605 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.708222 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:34.708872 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:34.709485 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.710886 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:34.711542 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.712087 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.712683 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.712915 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.713356 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.713940 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.714201 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.714691 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.715206 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.715453 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.715931 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.716558 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.716690 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.717785 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.718170 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:34.718735 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.718857 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.719513 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.719835 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:34.720375 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.720813 #5661] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:34.721827 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:34.722295 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.722762 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.723319 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.723531 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.723929 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.724446 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.724686 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.725142 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.725781 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.726071 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.726627 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.727249 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.727412 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.728502 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.728956 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:34.729561 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.729712 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.730575 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.730968 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:34.731521 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.743506 #5661] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:34.744802 #5661] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:34.746004 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:34.746595 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.747183 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.747928 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.748370 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.749230 #5661] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.749859 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.750115 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.750646 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.751169 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.752409 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.752926 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.753511 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:34.753980 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:34.754536 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.754894 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:34.755348 #5661] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:34.756064 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:34.756493 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.756952 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.757472 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.757689 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.758092 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.758669 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.758877 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.759306 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.759912 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.760123 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.760543 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.761194 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.761305 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.762193 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.762555 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:34.763150 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.763299 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.764104 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.764473 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:34.765020 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.765466 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:34.765922 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.766414 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.767118 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.767410 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.767944 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.768567 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.768769 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.769190 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.769788 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.770024 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.770454 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.771047 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.771167 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.772048 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.772426 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:34.773000 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.773127 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.773787 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.774104 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:34.774610 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.774988 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:34.775392 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.775827 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.776365 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.776576 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.776967 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.777551 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.777799 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.778254 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.778925 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.779557 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.779989 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.780543 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.780744 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.781130 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.781628 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.782161 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.783161 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.783522 #5661] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.784410 #5661] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:34.785072 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.785526 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:34.786053 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:34.786464 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.786925 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.787542 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.787751 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.788180 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.788751 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.788975 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.789412 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.789934 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.790077 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.790759 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:34.791272 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.791641 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.792091 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.792555 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.792774 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.793221 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.793710 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.793945 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.794383 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.794864 #5661] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:34.795013 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.795895 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:34.796657 #5661] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:34.797101 #5661] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:34.797832 #5661] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:34.798218 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:34.798607 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.799027 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.799536 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.799749 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.800162 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.800702 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.800943 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.801407 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:34.801984 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.802142 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.803020 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.803399 #5661] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:34.803973 #5661] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:34.804365 #5661] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:34.804972 #5661] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:34.805310 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:34.805995 #5661] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:34.806674 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:34.807216 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.807839 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.808545 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.808967 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.809802 #5661] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:34.810628 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.811930 #5661] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:34.812460 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:34.812921 #5661] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:34.813488 #5661] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:34.814144 #5661] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:34.814534 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:34.815020 #5661] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:34.815575 #5661] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:35.842997 #5665] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:35.845669 #5665] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:31:35.846492 #5665] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:35.847668 #5665] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:35.850227 #5665] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:35.851234 #5665] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:35.851976 #5665] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:35.853046 #5665] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:35.853728 #5665] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:35.904230 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.905410 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.908055 #5665] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:31:35.910786 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.911750 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:35.912671 #5665] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:35.915882 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.916808 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:35.917613 #5665] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:35.918656 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.919519 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:35.920081 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.920489 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.921014 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:35.921639 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.927307 #5665] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:35.932473 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:35.933694 #5665] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:35.934997 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:35.935498 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:35.936046 #5665] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:35.936796 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.937368 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.937848 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:35.940346 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.940867 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:35.941462 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.943391 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.944515 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:35.945133 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.946874 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.947392 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.947925 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.948171 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.949155 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:35.949627 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:35.950219 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.950359 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.951030 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:35.951346 #5665] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:35.951847 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.951981 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.952398 #5665] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:35.952813 #5665] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:35.953248 #5665] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:35.954740 #5665] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:35.955184 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.955721 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.956341 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.956565 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.957026 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:35.957560 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.957782 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.958163 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:35.958915 #5665] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:35.959213 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.959907 #5665] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:35.971756 #5665] DEBUG -- :  (11.6ms) commit transaction D, [2015-08-02T09:31:35.972284 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.973066 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.979877 #5665] DEBUG -- :  (6.6ms) commit transaction D, [2015-08-02T09:31:35.980372 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.981414 #5665] DEBUG -- : SQL (0.5ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:35.982205 #5665] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:35.982410 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.983527 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:35.984097 #5665] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:35.984496 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:35.985175 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.985474 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.986867 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:35.987759 #5665] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:35.988431 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:35.989010 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.990560 #5665] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:35.991301 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.991868 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.992536 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.992792 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.993286 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:35.993864 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.994106 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.994639 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:35.995205 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.995465 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.995921 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:35.996495 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:35.996663 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:35.997902 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:35.998362 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:35.999032 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:35.999190 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.000033 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.000412 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:36.001039 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.001641 #5665] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:36.002798 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:36.003354 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.003915 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.004559 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.004842 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.005393 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.006076 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.006374 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.006956 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.007599 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.007875 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.008399 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.008997 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.009144 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.010311 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.010717 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:36.022465 #5665] DEBUG -- :  (11.6ms) commit transaction D, [2015-08-02T09:31:36.022645 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.023608 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.024006 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:36.024555 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.024978 #5665] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:36.026001 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:36.027087 #5665] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:36.027632 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.028115 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.028845 #5665] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:36.029037 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.029433 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.030047 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.030237 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.030686 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.031278 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.032661 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.033286 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.033875 #5665] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:36.034262 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:36.034809 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.035127 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:36.035559 #5665] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:36.036268 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:36.036749 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.037194 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.037763 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.038003 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.038466 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.039110 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.039386 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.039925 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.040625 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.041211 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.041989 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.042617 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.042752 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.044028 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.044531 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:36.045051 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.045203 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.045991 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.046340 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:36.046936 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.047405 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:36.047895 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.048470 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.048978 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.049180 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.049586 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.050151 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.050360 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.050806 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.051451 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.051709 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.052217 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.052771 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.052918 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.053902 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.054337 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:36.054987 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.055146 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.056016 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.056391 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:36.056909 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.057285 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:36.057715 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.058159 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.058796 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.059078 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.059642 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.060240 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.060487 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.060902 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.061480 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.062159 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.062591 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.063202 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.063397 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.063827 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.064299 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.064776 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.065703 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.066130 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.067039 #5665] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:36.067683 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.068126 #5665] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:36.068649 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:36.069033 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.069462 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.070036 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.070271 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.070720 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.071265 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.071527 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.072029 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.072527 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.072673 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.073393 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:36.073929 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.074264 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.074720 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.075144 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.075349 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.075739 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.076131 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.076336 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.076723 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.077179 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.077317 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.078202 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:36.078939 #5665] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:36.079307 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:36.079955 #5665] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:36.080315 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:36.080660 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.081078 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.081533 #5665] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:36.081815 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.082376 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.082925 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.083147 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.083559 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:36.084098 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.084239 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.085059 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.085396 #5665] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:36.085946 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.086272 #5665] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:36.086751 #5665] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:36.087044 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:36.087510 #5665] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:36.087985 #5665] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:36.088414 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.088845 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.089340 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.089579 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.090006 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:36.090564 #5665] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:36.091472 #5665] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:36.092115 #5665] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:36.092590 #5665] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:36.093144 #5665] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:36.093833 #5665] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:36.094228 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:36.094627 #5665] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:36.095067 #5665] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:37.145721 #5669] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:37.148850 #5669] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:37.150104 #5669] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:37.151998 #5669] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:37.155199 #5669] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:37.156455 #5669] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:37.157236 #5669] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:37.158374 #5669] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:37.159089 #5669] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:37.210036 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.211233 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.214047 #5669] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:31:37.218384 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.219780 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.220488 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.222935 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.223989 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:37.224801 #5669] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:37.226289 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.227911 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:37.228659 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.229256 #5669] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:37.229995 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.230780 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.236330 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.241299 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:37.242369 #5669] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:37.243345 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:37.244199 #5669] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:37.244892 #5669] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:37.245750 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.249241 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.249918 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.250206 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.250712 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.251118 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.253200 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.254258 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.254750 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.256484 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.256962 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.257476 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.257748 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.258754 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.259243 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:37.259773 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.259902 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.260578 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.260876 #5669] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:37.261483 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.261594 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.262010 #5669] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:37.262421 #5669] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:37.262846 #5669] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:37.264413 #5669] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:37.265026 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.265592 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.266220 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.266475 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.266918 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.267557 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.267765 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.268169 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:37.268696 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.268986 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.269419 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:37.270053 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.270298 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.270722 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.271260 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.271499 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.271926 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.272539 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.272698 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.273475 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:37.273906 #5669] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:37.274228 #5669] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:37.274742 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.274865 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.275477 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.275950 #5669] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:37.276420 #5669] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:37.276968 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.278149 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:37.278743 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.279203 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.279852 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.280081 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.280496 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.281067 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.281359 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.281975 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.282584 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.282862 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.283380 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.283955 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.284096 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.285173 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.285574 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:37.286104 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.286223 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.286998 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.287320 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:37.287948 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.288409 #5669] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:37.289482 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:37.289971 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.290442 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.290999 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.291201 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.291620 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.292185 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.292418 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.292854 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.293396 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.293615 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.294043 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.294608 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.294735 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.305519 #5669] DEBUG -- : SQL (10.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.306073 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:37.306967 #5669] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:37.307146 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.308233 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.308659 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:37.309281 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.309813 #5669] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:37.311043 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:37.312280 #5669] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:37.312906 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.313506 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.314099 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.314362 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.314816 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.315394 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.315629 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.316128 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.316640 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.317977 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.318557 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.319131 #5669] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:37.319542 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:37.320088 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.320413 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:37.320853 #5669] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:37.321582 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:37.322031 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.322483 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.323048 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.323246 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.323644 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.324206 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.324427 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.324847 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.325377 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.325609 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.326009 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.326608 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.326731 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.327626 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.328007 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:37.328549 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.328675 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.329325 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.329636 #5669] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:37.330204 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.330588 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:37.330983 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.331386 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.331937 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.332133 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.332512 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.333093 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.333309 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.333785 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.334336 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.334574 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.334988 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.335572 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.335693 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.336580 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.336977 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:37.337538 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.337670 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.338503 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.338866 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:37.339415 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.340042 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:37.340642 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.341214 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.341805 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.342045 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.342547 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.343024 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.343260 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.343715 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.344232 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.344950 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.345436 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.345931 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.346133 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.346547 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.347015 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.347554 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.348801 #5669] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.349319 #5669] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.350293 #5669] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:37.350897 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.351426 #5669] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:37.351987 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:37.352409 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.352904 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.353406 #5669] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:37.353633 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.354081 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.354601 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.354856 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.355348 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.355904 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.356055 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.356797 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:37.357350 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.357706 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.358196 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.358688 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.358874 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.359277 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.359819 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.360052 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.360488 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.361028 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.361181 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.362037 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:37.362819 #5669] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:37.363192 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:37.363819 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.364196 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:37.364555 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.364962 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.365556 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.365768 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.366136 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.366702 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.366934 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.367383 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:37.368020 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.368186 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.369081 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.369484 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:37.370003 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.370359 #5669] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:37.370883 #5669] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:37.371210 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:37.371717 #5669] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:37.372468 #5669] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:37.372884 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.373373 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.373976 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.374198 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.374641 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:37.375197 #5669] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:37.376047 #5669] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:37.376588 #5669] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:37.376951 #5669] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:37.377375 #5669] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:37.377985 #5669] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:37.378315 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:37.378671 #5669] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:37.379089 #5669] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:38.395681 #5676] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:38.398774 #5676] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:38.400011 #5676] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:38.402031 #5676] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:38.406576 #5676] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:38.408055 #5676] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:31:38.409197 #5676] DEBUG -- :  (0.8ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:38.410361 #5676] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:38.411139 #5676] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:38.463240 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.464590 #5676] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.467141 #5676] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:31:38.469794 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.470787 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.471474 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.473027 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.473841 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:38.474434 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.475148 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.476085 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:38.476672 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.476985 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.477350 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.477953 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.482468 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.488298 #5676] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:38.489294 #5676] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:38.490195 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:38.490897 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.491965 #5676] DEBUG -- : Author Load (0.2ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:38.493264 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.496268 #5676] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.496993 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.497249 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.497781 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.498443 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.500851 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.502126 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.502714 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.504934 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.505514 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.506121 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.506424 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.507608 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.508132 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:38.508718 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.508854 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.509633 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.509987 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:38.510471 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.510605 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.511039 #5676] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:38.511490 #5676] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:38.511975 #5676] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:38.513538 #5676] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:38.514013 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.514493 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.515071 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.515284 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.515669 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.516256 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.516453 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.516832 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:38.517362 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.517614 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.518055 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:38.518579 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.518838 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.519258 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.519810 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.520017 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.520437 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.521043 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.521189 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.521951 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:38.522371 #5676] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:38.522685 #5676] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:38.523204 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.523325 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.523955 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.524428 #5676] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:38.524889 #5676] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:38.525461 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.526736 #5676] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:38.527371 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.527836 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.528389 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.528606 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.529002 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.529562 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.529796 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.530246 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.530816 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.531044 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.531487 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.532074 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.532241 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.533399 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.533833 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:38.534386 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.534526 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.535266 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.535587 #5676] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:38.536108 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.536573 #5676] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:38.537647 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:38.538135 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.538615 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.539157 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.539364 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.539774 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.540376 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.540690 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.541132 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.541647 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.541886 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.542318 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.542836 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.542963 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.554869 #5676] DEBUG -- : SQL (11.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.555435 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:38.556028 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.556169 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.556980 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.557285 #5676] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:38.557933 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.558318 #5676] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:38.559228 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:38.560172 #5676] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:38.560735 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.561182 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.561858 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.562051 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.562435 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.563072 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.563269 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.563664 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.564266 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.565297 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.565717 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.566426 #5676] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:38.566790 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:38.567331 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.567661 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:38.568107 #5676] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:38.568798 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:38.569252 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.569698 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.570380 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.570564 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.570944 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.571605 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.571823 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.572227 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.572851 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.573095 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.573529 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.574104 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.574215 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.575090 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.575431 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:38.575988 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.576129 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.576785 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.577089 #5676] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:38.577609 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.577991 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:38.578393 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.578801 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.579356 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.579557 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.579931 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.580463 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.580691 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.581088 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.581699 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.581951 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.582428 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.583074 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.583193 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.584150 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.584520 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:38.585065 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.585206 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.585905 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.586208 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:38.586731 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.587126 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:38.587554 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.588050 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.588687 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.588904 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.589320 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.589890 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.590157 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.590630 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.591167 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.591851 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.592299 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.592777 #5676] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:38.592967 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.593372 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.593956 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.594490 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.595477 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.595848 #5676] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.596877 #5676] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:38.597598 #5676] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:38.598120 #5676] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:38.598725 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:38.599215 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.599710 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.600257 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.600481 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.600893 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.601346 #5676] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:38.601576 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.601998 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.602430 #5676] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:38.602572 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.603264 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:38.603700 #5676] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:38.604038 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.604460 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.604979 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.605161 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.605523 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.606081 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.606352 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.606738 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.607288 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.607423 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.608230 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:38.609000 #5676] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:38.609392 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:38.609985 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.610419 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:38.610824 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.611350 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.612012 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.612268 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.612758 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.613372 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.613653 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.614158 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:38.614690 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.614861 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.615910 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.616320 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:38.616824 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.617217 #5676] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:38.617756 #5676] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:38.618088 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:38.618590 #5676] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:38.619078 #5676] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:38.619486 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.619942 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.620469 #5676] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:38.620670 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.621054 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:38.621495 #5676] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:38.622260 #5676] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:38.622723 #5676] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:38.623069 #5676] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:38.623480 #5676] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:38.624122 #5676] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:38.624428 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:38.624770 #5676] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:38.625185 #5676] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:39.659748 #5680] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:39.662565 #5680] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:31:39.663349 #5680] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:39.664521 #5680] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:39.667082 #5680] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:39.668072 #5680] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:39.668768 #5680] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:39.669691 #5680] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:39.670352 #5680] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:39.718836 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.720032 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.722467 #5680] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:31:39.725145 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.726139 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.726817 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.728365 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.729191 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:39.729811 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.730523 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.732651 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:39.733296 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.733671 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.734112 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.734687 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.739733 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.744995 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:39.746077 #5680] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:39.747033 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:39.747671 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.748287 #5680] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:39.749186 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.752576 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.753158 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.753407 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.753875 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.754449 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.756462 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.757521 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.758095 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.760320 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.760922 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.761539 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.761841 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.763022 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.763583 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:39.764170 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.764301 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.765097 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.765465 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:39.766048 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.766206 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.766690 #5680] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:39.767145 #5680] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:39.767647 #5680] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:39.769449 #5680] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:39.769956 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.770525 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.771126 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.771419 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.771935 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.772628 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.772895 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.773364 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:39.773954 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.774294 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.774837 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:39.775413 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.775702 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.776217 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.776756 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.776988 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.777463 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.778198 #5680] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:39.778384 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.779578 #5680] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:39.780060 #5680] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:39.780406 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:39.785012 #5680] DEBUG -- :  (4.4ms) commit transaction D, [2015-08-02T09:31:39.785304 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.786516 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.787250 #5680] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:39.787894 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:39.791215 #5680] DEBUG -- :  (3.1ms) commit transaction D, [2015-08-02T09:31:39.792975 #5680] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:39.793716 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.794309 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.799115 #5680] DEBUG -- :  (4.4ms) commit transaction D, [2015-08-02T09:31:39.799692 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.800613 #5680] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.801284 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.801543 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.802060 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.802573 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.802849 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.803351 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.803950 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.804084 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.805206 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.805625 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:39.806375 #5680] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:39.806648 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.808087 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.808512 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:39.809106 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.809579 #5680] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:39.810909 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:39.811528 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.812125 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.812725 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.812970 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.813463 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.814081 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.814348 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.814877 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.815435 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.815692 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.816174 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.816695 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.816829 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.829207 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.829777 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:39.830406 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.830544 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.831387 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.831690 #5680] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:39.832300 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.832795 #5680] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:39.834011 #5680] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:39.835315 #5680] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:39.836015 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.836614 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.837281 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.837563 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.838100 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.838727 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.839018 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.839575 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.840227 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.841645 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.842218 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.842839 #5680] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:39.843298 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:39.843858 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.844233 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:39.844715 #5680] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:39.845493 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:39.845945 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.846440 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.846925 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.847123 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.847536 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.848024 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.848285 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.848768 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.849515 #5680] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:39.849828 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.850363 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.850907 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.851047 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.852149 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.852583 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:39.853096 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.853245 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.854115 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.854474 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:39.855094 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.855719 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:39.856282 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.856804 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.857386 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.857613 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.858051 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.858619 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.858888 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.859636 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.860442 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.860707 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.861163 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.861762 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.861876 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.862824 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.863198 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:39.863896 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.864047 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.864868 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.865178 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:39.865820 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.866277 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:39.866732 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.867235 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.867714 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.867932 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.868352 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.868884 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.869125 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.869544 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.870074 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.870729 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.871171 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.871672 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.871868 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.872263 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.872830 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.873356 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.874377 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.874744 #5680] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.875646 #5680] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:39.876280 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.876765 #5680] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:39.877245 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:39.877636 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.878080 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.878673 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.878932 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.879397 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.879963 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.880206 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.880643 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.881203 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.881334 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.882008 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:39.882579 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.882999 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.883561 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.884133 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.884356 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.884779 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.885362 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.885592 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.886009 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.886530 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.886808 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.888002 #5680] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:39.889088 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:39.889553 #5680] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:39.890255 #5680] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:39.890712 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:39.891168 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.891665 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.892208 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.892444 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.892862 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.893307 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.893541 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.893963 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:39.894379 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.894525 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.895386 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.895734 #5680] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:39.896186 #5680] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:39.896523 #5680] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:39.897009 #5680] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:39.897333 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:39.897841 #5680] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:39.898316 #5680] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:39.898677 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.899137 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.899696 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.899937 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.900425 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:39.900929 #5680] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:39.901683 #5680] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:39.902160 #5680] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:39.902503 #5680] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:39.902953 #5680] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:39.903555 #5680] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:39.903892 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:39.904244 #5680] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:39.904645 #5680] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:40.921933 #5684] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:40.924891 #5684] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:40.926193 #5684] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:40.928105 #5684] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:40.931387 #5684] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:40.932629 #5684] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:40.933449 #5684] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:40.934556 #5684] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:40.935262 #5684] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:40.985826 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:40.987044 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:40.989800 #5684] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:40.994236 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:40.995574 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:40.996244 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:40.998482 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:40.999626 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:41.000371 #5684] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:41.001483 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.002738 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:41.003335 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.003729 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.004220 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.004868 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.010114 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.016980 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:41.018243 #5684] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:41.019391 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:41.020123 #5684] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:41.020841 #5684] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:41.021711 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.022411 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.025788 #5684] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:41.026240 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.027240 #5684] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.027864 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.030144 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.031329 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.031884 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.033867 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.034374 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.034987 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.035327 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.036319 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.036797 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:41.037341 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.037475 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.038148 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.038444 #5684] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:41.039058 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.039166 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.039599 #5684] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:41.040041 #5684] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:41.040487 #5684] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:41.042038 #5684] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:41.042484 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.042968 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.043540 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.043751 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.044128 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.044659 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.044875 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.045227 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:41.045780 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.046045 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.046460 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:41.046948 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.047166 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.047602 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.048155 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.048493 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.048896 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.049509 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.049641 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.050414 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:41.050836 #5684] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:41.051154 #5684] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:41.051646 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.051760 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.052369 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.052826 #5684] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:41.053283 #5684] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:41.053795 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.054947 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:41.055502 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.055969 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.056493 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.056721 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.057167 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.057723 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.057949 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.058388 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.058963 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.059298 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.059729 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.060284 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.060410 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.061396 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.061780 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:41.062336 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.062463 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.063157 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.063472 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:41.064031 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.064483 #5684] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:41.065553 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:41.066118 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.066736 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.067347 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.067614 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.068039 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.068599 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.068817 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.069244 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.069786 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.070009 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.070425 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.070991 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.071143 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.072151 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.083585 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:41.084254 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.084419 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.085466 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.085782 #5684] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:41.086347 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.086744 #5684] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:41.087657 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:41.088578 #5684] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:41.089195 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.089673 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.090223 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.090417 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.090809 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.091338 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.091535 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.091935 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.092463 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.093530 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.094004 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.094492 #5684] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:41.094857 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:41.095366 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.095711 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:41.096130 #5684] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:41.096817 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:41.097213 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.097680 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.098241 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.098457 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.098901 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.099468 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.099717 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.100190 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.100750 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.101021 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.101496 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.102125 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.102241 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.103232 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.103587 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:41.104169 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.104326 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.105057 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.105354 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:41.105884 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.106273 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:41.106679 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.107115 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.107626 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.107826 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.108197 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.108743 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.108956 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.109353 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.109866 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.110077 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.110482 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.111014 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.111124 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.111963 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.112291 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:41.112855 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.112995 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.113697 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.114001 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:41.114608 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.114985 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:41.115393 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.115982 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.116696 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.116977 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.117616 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.118228 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.118537 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.119083 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.119663 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.120590 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.121151 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.121674 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.121941 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.122452 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.122991 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.123516 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.124551 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.124925 #5684] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.125950 #5684] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:41.126656 #5684] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:41.127089 #5684] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:41.127580 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:41.128038 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.128474 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.129026 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.129256 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.129704 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.130280 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.130543 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.131040 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.131607 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.131766 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.132493 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:41.133013 #5684] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:41.133385 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.133852 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.134417 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.134601 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.134979 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.135544 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.135819 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.136301 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.136823 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.136998 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.138037 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:41.139037 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:41.139524 #5684] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:41.140188 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.140709 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:41.141218 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.141774 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.142354 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.142609 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.142998 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.143595 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.143865 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.144386 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:41.145015 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.145188 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.146176 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.146570 #5684] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:41.147167 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.147599 #5684] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:41.148223 #5684] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:41.148587 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:41.149178 #5684] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:41.149763 #5684] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:41.150249 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.150809 #5684] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.151481 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.151744 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.152310 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:41.152941 #5684] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:41.153839 #5684] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:41.154423 #5684] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:41.154837 #5684] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:41.155320 #5684] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:41.155971 #5684] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:41.156363 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:41.156792 #5684] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:41.157259 #5684] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:42.198673 #5689] DEBUG -- :  (0.5ms) select sqlite_version(*) D, [2015-08-02T09:31:42.201402 #5689] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:31:42.202521 #5689] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:42.204325 #5689] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:42.207368 #5689] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:42.208554 #5689] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:42.209353 #5689] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:42.210395 #5689] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:42.211046 #5689] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:42.265108 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.266390 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.269122 #5689] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:42.271860 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.272865 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.273491 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.275071 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.275902 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:42.276582 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.277304 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.278179 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:42.278825 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.279141 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.279505 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.280103 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.285895 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.291310 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:42.292393 #5689] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:42.293405 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:42.294114 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.294698 #5689] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:42.295390 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.298540 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.299151 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.299434 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.300063 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.300687 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.303050 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.304329 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.304974 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.306825 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.307487 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.308144 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.308483 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.309780 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.310386 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:42.311117 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.311433 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.313010 #5689] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.313696 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:42.314446 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.314633 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.315191 #5689] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:42.315779 #5689] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:42.316379 #5689] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:42.318457 #5689] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:42.319004 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.319643 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.320506 #5689] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:42.320961 #5689] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:42.321787 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.322706 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.323118 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.323687 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:42.324317 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.324859 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.325834 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:42.326599 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.326925 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.327495 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.328124 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.328405 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.328983 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.329628 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.329807 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.330753 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:42.331291 #5689] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:42.331686 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:42.332473 #5689] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:42.332625 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.333380 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.333956 #5689] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:42.334514 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:42.335085 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.336563 #5689] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:42.337426 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.338043 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.338680 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.339035 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.339624 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.340237 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.340516 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.341068 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.341602 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.341873 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.342406 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.343139 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.343455 #5689] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:42.345613 #5689] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.346413 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:42.347205 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.347486 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.348829 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.349481 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:42.350390 #5689] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:42.351394 #5689] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:42.352918 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:42.353571 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.354257 #5689] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.354935 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.355209 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.355779 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.356489 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.356838 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.357509 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.358175 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.358515 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.359111 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.359721 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.359876 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.371221 #5689] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.371779 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:42.372464 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.372600 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.373430 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.373737 #5689] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:42.374435 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.374846 #5689] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:42.375781 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:42.376728 #5689] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:42.377272 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.377745 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.378372 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.378595 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.378979 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.379597 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.379803 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.380207 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.380908 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.382120 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.382623 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.383188 #5689] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:42.383609 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:42.384132 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.384524 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:42.385050 #5689] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:42.385857 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:42.386338 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.386860 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.387479 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.387673 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.388066 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.388631 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.388859 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.389273 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.389848 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.390095 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.390527 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.391074 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.391185 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.392144 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.392507 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:42.393100 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.393411 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.394996 #5689] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.395446 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:42.396161 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.396739 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:42.397295 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.397901 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.398445 #5689] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:42.398720 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.399217 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.399809 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.400101 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.400662 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.401173 #5689] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:42.401530 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.402136 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.402689 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.402837 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.404083 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.404522 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:42.405089 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.405253 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.406119 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.406498 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:42.407068 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.407613 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:42.408159 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.408774 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.409389 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.409667 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.410151 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.410752 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.411049 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.411555 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.412089 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.412918 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.413423 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.413964 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.414208 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.414682 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.415217 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.415832 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.416972 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.417360 #5689] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.418345 #5689] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:42.418978 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.419415 #5689] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:42.419924 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:42.420327 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.420764 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.421358 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.421578 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.421973 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.422499 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.422736 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.423167 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.423758 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.423910 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.424588 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:42.425206 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.425553 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.426051 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.426665 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.426864 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.427277 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.427839 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.428069 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.428489 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.428987 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.429143 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.430039 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:42.430867 #5689] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:42.431250 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:42.431879 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.432293 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:42.432719 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.433139 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.433736 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.433962 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.434410 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.435014 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.435327 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.435833 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:42.436367 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.436537 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.437478 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.437855 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:42.438343 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.438709 #5689] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:42.439220 #5689] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:42.439551 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:42.440083 #5689] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:42.440576 #5689] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:42.440982 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.441413 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.442069 #5689] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:42.442305 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.442745 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:42.443279 #5689] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:42.444083 #5689] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:42.444551 #5689] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:42.444894 #5689] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:42.445318 #5689] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:42.445999 #5689] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:42.446399 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:42.446767 #5689] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:42.447184 #5689] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:43.467709 #5698] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:43.471223 #5698] DEBUG -- :  (3.1ms) DROP TABLE "authors" D, [2015-08-02T09:31:43.472504 #5698] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:43.474346 #5698] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:43.477381 #5698] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:43.478529 #5698] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:31:43.479270 #5698] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:43.480254 #5698] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:43.480979 #5698] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:43.530552 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.531909 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.534408 #5698] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:31:43.537301 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.538347 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.539042 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.540570 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.541392 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:43.541971 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.542799 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.543678 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:43.544266 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.544613 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.545037 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.545657 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.550453 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.556251 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:43.557515 #5698] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:43.558736 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:43.559630 #5698] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:43.560248 #5698] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:43.561002 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.563782 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.564550 #5698] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:43.564823 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.565373 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.565912 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.568198 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.569452 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.570070 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.571808 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.572298 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.572886 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.573122 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.574088 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.574557 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:43.575122 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.575251 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.576015 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.576363 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:43.576904 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.577053 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.577501 #5698] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:43.577952 #5698] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:43.578411 #5698] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:43.579939 #5698] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:43.580472 #5698] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:43.581285 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.581899 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.582143 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.582585 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.583217 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.583456 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.583874 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:43.584436 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.584726 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.585195 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:43.585692 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.585958 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.586472 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.586999 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.587208 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.587639 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.588196 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.588425 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.589216 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:43.589638 #5698] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:43.589959 #5698] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:43.590458 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.590583 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.591222 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.591698 #5698] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:43.592161 #5698] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:43.592820 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.594040 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:43.594640 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.595116 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.595669 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.595895 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.596296 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.596839 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.597061 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.597509 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.598054 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.598292 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.598764 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.599352 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.599483 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.600447 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.600855 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:43.601692 #5698] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:43.601857 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.603172 #5698] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.603637 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:43.615378 #5698] DEBUG -- :  (11.5ms) commit transaction D, [2015-08-02T09:31:43.616804 #5698] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:43.619079 #5698] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:43.619741 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.620438 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.623299 #5698] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:31:43.623749 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.624711 #5698] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.625382 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.625701 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.626432 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.627108 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.627427 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.627997 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.628601 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.628777 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.641544 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.642091 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:43.642959 #5698] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:43.643138 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.644217 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.644661 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:43.645295 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.645850 #5698] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:43.647328 #5698] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:43.648823 #5698] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:43.649533 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.650145 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.650801 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.651061 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.651523 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.652086 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.652338 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.652835 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.653421 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.654774 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.655400 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.656065 #5698] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:43.656521 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:43.657206 #5698] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:43.657579 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:43.658042 #5698] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:43.658762 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:43.659199 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.659649 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.660229 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.660413 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.660807 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.661340 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.661558 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.662038 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.662636 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.662876 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.663393 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.664102 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.664217 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.665243 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.665677 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:43.666248 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.666409 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.667370 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.667789 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:43.668280 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.668699 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:43.669161 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.669597 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.670145 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.670367 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.670758 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.671345 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.671587 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.672013 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.672538 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.672768 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.673208 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.673781 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.673909 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.674872 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.675241 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:43.675787 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.675937 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.676650 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.676973 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:43.677458 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.677832 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:43.678238 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.678666 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.679192 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.679388 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.679781 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.680295 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.680532 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.680956 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.681497 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.682192 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.682642 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.683156 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.683347 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.683749 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.684324 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.684807 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.685746 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.686133 #5698] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.687144 #5698] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:43.687769 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.688351 #5698] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:43.688966 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:43.689413 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.689926 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.690551 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.690826 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.691322 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.691959 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.692252 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.692785 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.693426 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.693600 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.694401 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:43.694960 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.695324 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.695828 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.696290 #5698] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:43.696480 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.696894 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.697358 #5698] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:43.697573 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.697989 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.698491 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.698629 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.699575 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:43.700409 #5698] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:43.700817 #5698] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:43.701489 #5698] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:43.701950 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:43.702636 #5698] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:43.703557 #5698] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.704110 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.704341 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.704764 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.705335 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.705594 #5698] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:43.706042 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:43.706565 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.706708 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.707533 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.707878 #5698] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:43.708359 #5698] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:43.708691 #5698] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:43.709181 #5698] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:43.709495 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:43.709980 #5698] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:43.710464 #5698] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:43.710822 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.711237 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.711666 #5698] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:43.711855 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.712237 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:43.712681 #5698] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:43.713458 #5698] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:43.714060 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:43.714519 #5698] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:43.715032 #5698] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:43.715757 #5698] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:43.716356 #5698] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:43.716751 #5698] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:43.717186 #5698] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:44.758660 #5702] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:44.761803 #5702] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:44.763023 #5702] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:44.764937 #5702] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:44.768177 #5702] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:44.769347 #5702] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:44.770125 #5702] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:44.771153 #5702] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:44.771912 #5702] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:44.822646 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.823836 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.826397 #5702] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:31:44.829006 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.830005 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.830629 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.832208 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.833047 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:44.833625 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.834357 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.835278 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:44.835793 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.836082 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.836462 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.837131 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.841677 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.847252 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:44.848283 #5702] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:44.849244 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:44.849847 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.850458 #5702] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:44.851193 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.851730 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.854522 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.854796 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.855370 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.856009 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.858337 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.859472 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.860114 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.862088 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.862621 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.863257 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.863540 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.864584 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.865090 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:44.865590 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.865724 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.866406 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.866710 #5702] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:44.867245 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.867351 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.867756 #5702] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:44.868188 #5702] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:44.868634 #5702] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:44.870100 #5702] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:44.870601 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.871079 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.871669 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.871885 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.872274 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.872808 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.873025 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.873384 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:44.873912 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.874187 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.874613 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:44.875119 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.875345 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.875783 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.876379 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.876670 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.877087 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.877648 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.877816 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.878708 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:44.879156 #5702] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:44.879492 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:44.880255 #5702] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:44.880537 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.881520 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.882099 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:44.882669 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:44.883358 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.884961 #5702] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:44.885735 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.886353 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.887003 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.887273 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.887795 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.888424 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.888727 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.889265 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.889908 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.890174 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.890653 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.891254 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.891391 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.892462 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.892857 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:44.893386 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.893529 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.894255 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.894582 #5702] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:44.895193 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.895638 #5702] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:44.896660 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:44.897131 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.897591 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.898229 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.898464 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.898905 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.899394 #5702] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:44.899649 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.900168 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.900744 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.901059 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.901568 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.902107 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.902288 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.903316 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.914350 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:44.915405 #5702] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:31:44.915607 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.916895 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.917357 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:44.918225 #5702] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:44.919084 #5702] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:44.920421 #5702] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:44.921711 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:44.922405 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.923041 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.923634 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.923894 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.924383 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.925100 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.925346 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.925852 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.926419 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.927630 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.928137 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.928683 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:44.929096 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:44.929592 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.929935 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:44.930382 #5702] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:44.931117 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:44.931525 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.931974 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.932579 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.932780 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.933144 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.933729 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.933958 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.934422 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.935021 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.935264 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.935697 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.936272 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.936421 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.937427 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.937894 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:44.938551 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.938730 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.939752 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.940188 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:44.940847 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.941344 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:44.941840 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.942348 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.942919 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.943223 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.943736 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.944328 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.944609 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.945128 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.945727 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.945971 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.946508 #5702] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.947141 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.947275 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.948281 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.948643 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:44.949192 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.949320 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.950376 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.950759 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:44.951261 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.951746 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:44.952198 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.952654 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.953139 #5702] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:44.953375 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.953864 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.954448 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.954746 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.955216 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.955794 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.956492 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.956971 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.957560 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.957764 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.958214 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.958760 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.959279 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.960275 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.960647 #5702] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.961519 #5702] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:44.962141 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.962630 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:44.963153 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:44.963552 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.964018 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.964514 #5702] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:44.964708 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.965122 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.965596 #5702] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:44.965830 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.966278 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.966804 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.966944 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.967617 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:44.968192 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.968532 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.968970 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.969522 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.969728 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.970167 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.970728 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.970964 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.971402 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.971954 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.972103 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.972947 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:44.973781 #5702] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:44.974174 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:44.974846 #5702] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:44.975202 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:44.975566 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.976001 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.976534 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.976763 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.977162 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.977790 #5702] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:44.978096 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.978637 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:44.979227 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.979394 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.980305 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.980675 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:44.981232 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.981599 #5702] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:44.982140 #5702] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:44.982478 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:44.983076 #5702] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:44.983574 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:44.983991 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.984474 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.985029 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.985229 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.985603 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:44.986106 #5702] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:44.986858 #5702] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:44.987323 #5702] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:44.987742 #5702] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:44.988149 #5702] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:44.988861 #5702] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:44.989354 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:44.989848 #5702] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:44.990445 #5702] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:46.009946 #5706] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:46.012886 #5706] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:46.013715 #5706] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:46.014851 #5706] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:46.017405 #5706] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:46.018689 #5706] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:46.019479 #5706] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:46.020460 #5706] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:46.021122 #5706] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:46.071923 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.073105 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.075857 #5706] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:31:46.080352 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.081655 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.082298 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.084435 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.085515 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:46.086185 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.087068 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.088166 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:46.088731 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.089083 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.089515 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.090029 #5706] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:46.094913 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.100099 #5706] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:46.101401 #5706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:46.102541 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:46.103201 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.103741 #5706] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:46.104468 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.107196 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.107835 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.108171 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.108774 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.109458 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.112263 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.113659 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.114344 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.116165 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.116658 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.117199 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.117497 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.118623 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.119164 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:46.119724 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.119870 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.120611 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.120942 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:46.121501 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.121608 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.122042 #5706] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:46.122469 #5706] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:46.122912 #5706] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:46.124423 #5706] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:46.124976 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.125475 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.126112 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.126333 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.126780 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.127414 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.127628 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.128033 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:46.128557 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.128844 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.129285 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:46.129822 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.130066 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.130489 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.131156 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.131360 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.131782 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.132447 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.132614 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.133381 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:46.133793 #5706] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:46.134101 #5706] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:46.134705 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.134868 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.135572 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.136061 #5706] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:46.136640 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:46.137273 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.138535 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:46.139211 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.139755 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.140302 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.140525 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.140942 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.141542 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.141765 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.142195 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.142751 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.142973 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.143396 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.143916 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.144038 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.144988 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.145365 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:46.145930 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.146082 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.146859 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.147182 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:46.147695 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.148146 #5706] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:46.149226 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:46.149805 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.150420 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.151140 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.151377 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.151811 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.152309 #5706] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:46.152538 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.152980 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.153512 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.153733 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.154154 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.154675 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.154788 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.165621 #5706] DEBUG -- : SQL (10.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.166189 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:46.167078 #5706] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:46.167361 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.169093 #5706] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.169772 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:46.170607 #5706] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:46.171127 #5706] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:46.172339 #5706] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:46.173625 #5706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:46.174293 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.174867 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.175474 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.175727 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.176187 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.176768 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.177024 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.177520 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.178082 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.179262 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.179748 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.180297 #5706] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:46.180691 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:46.181261 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.181597 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:46.182084 #5706] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:46.182931 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:46.183435 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.183985 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.184625 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.184829 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.185227 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.185801 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.186021 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.186446 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.187048 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.187308 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.187813 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.188365 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.188483 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.189445 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.189829 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:46.190383 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.190516 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.191187 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.191476 #5706] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:46.191981 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.192377 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:46.192774 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.193204 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.193728 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.193933 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.194306 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.194853 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.195073 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.195483 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.196022 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.196296 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.196701 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.197195 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.197329 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.198351 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.198749 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:46.199296 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.199471 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.200440 #5706] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.200769 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:46.201337 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.201730 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:46.202185 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.202636 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.203138 #5706] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:46.203344 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.203741 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.204447 #5706] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:46.204670 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.205068 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.205573 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.206216 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.206649 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.207216 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.207542 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.208080 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.208718 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.209313 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.210279 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.210630 #5706] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.211550 #5706] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:46.212259 #5706] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:46.212748 #5706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:46.213272 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:46.213662 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.214134 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.214677 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.214890 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.215301 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.215827 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.216054 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.216495 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.217044 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.217204 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.217963 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:46.218521 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.218923 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.219393 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.219956 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.220166 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.220580 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.221174 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.221386 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.221800 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.222327 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.222471 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.223292 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:46.224045 #5706] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:46.224419 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:46.225084 #5706] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:46.225434 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:46.225806 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.226207 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.226758 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.226952 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.227312 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.227871 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.228088 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.228481 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:46.229047 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.229181 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.229936 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.230252 #5706] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:46.230791 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.231122 #5706] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:46.231611 #5706] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:46.231916 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:46.232399 #5706] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:46.232928 #5706] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:46.233328 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.233806 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.234464 #5706] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:46.234663 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.235043 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:46.235596 #5706] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:46.236388 #5706] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:46.236849 #5706] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:46.237183 #5706] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:46.237901 #5706] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:46.238659 #5706] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:46.239101 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:46.239519 #5706] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:46.239992 #5706] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:47.284902 #5710] DEBUG -- :  (0.4ms) select sqlite_version(*) D, [2015-08-02T09:31:47.288144 #5710] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:31:47.289366 #5710] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL)  D, [2015-08-02T09:31:47.291393 #5710] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:47.296567 #5710] DEBUG -- :  (1.0ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:47.297877 #5710] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:31:47.298692 #5710] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer)  D, [2015-08-02T09:31:47.299954 #5710] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:31:47.300754 #5710] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0)  D, [2015-08-02T09:31:47.352904 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.354149 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.356986 #5710] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:31:47.361457 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.362760 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.363449 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.365481 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.366534 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:47.367165 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.368048 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.369117 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:47.369732 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.370069 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.370504 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.371078 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.376252 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.381174 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:47.382254 #5710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 2 LIMIT 1 D, [2015-08-02T09:31:47.383309 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:47.384074 #5710] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:47.384991 #5710] DEBUG -- : Author Load (0.1ms) SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2 D, [2015-08-02T09:31:47.385825 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.388871 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.389572 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.389829 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.390323 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.390956 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.393271 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.394353 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.394896 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.396646 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.397110 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.397702 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.397978 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.399010 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.399519 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:47.400186 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.400328 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.401049 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.401365 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:47.401851 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.401949 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.402400 #5710] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:47.402808 #5710] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:47.403248 #5710] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:47.404740 #5710] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = 4 AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') D, [2015-08-02T09:31:47.405215 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.405753 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.406356 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.406588 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.407032 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.407585 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.407797 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.408183 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:47.408700 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.408985 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.409417 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", nil]] D, [2015-08-02T09:31:47.409984 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.410227 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.410634 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["taggings_count", 0], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.411228 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.411448 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.411845 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "SpecialGeneral"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.412562 #5710] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:47.412716 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.413546 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:47.413954 #5710] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 6 LIMIT 1 D, [2015-08-02T09:31:47.414280 #5710] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:47.414833 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.415010 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.415660 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.416136 #5710] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 LIMIT 1 D, [2015-08-02T09:31:47.416617 #5710] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:47.417133 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.418303 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = 2 D, [2015-08-02T09:31:47.418868 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.419326 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.419963 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.420237 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.420721 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.421331 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.421583 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.422077 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.422703 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.422934 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.423378 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.423890 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.424017 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.424981 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.425363 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:47.425949 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.426088 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.426784 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.427108 #5710] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:47.427673 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.428127 #5710] DEBUG -- : Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:47.429120 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:47.429597 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.430046 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.430613 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.430814 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.431223 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.431815 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.432056 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.432561 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.433291 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.433555 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.434020 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.434493 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.434616 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.445921 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.446540 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:47.447187 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.447328 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.448295 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.448638 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:47.449359 #5710] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:47.449851 #5710] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:47.451095 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:47.452115 #5710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:47.452688 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.453216 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.456823 #5710] DEBUG -- :  (3.4ms) commit transaction D, [2015-08-02T09:31:47.457211 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.457757 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.462797 #5710] DEBUG -- :  (4.9ms) commit transaction D, [2015-08-02T09:31:47.463105 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.463648 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.471056 #5710] DEBUG -- :  (7.1ms) commit transaction D, [2015-08-02T09:31:47.473336 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.474244 #5710] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.475282 #5710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 LIMIT 1 D, [2015-08-02T09:31:47.475811 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:47.476579 #5710] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:47.477019 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 13 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:47.477603 #5710] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:47.478523 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:47.479230 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.480007 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.480694 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.480949 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.481469 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.482076 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.482361 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.482912 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.483640 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.484026 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.484696 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.485301 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.485434 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.486549 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.486986 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:47.487798 #5710] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:47.488048 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.489438 #5710] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.489969 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:47.490622 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.491250 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 13 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:47.491867 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.492527 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.493147 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.493469 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.494041 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.494631 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.494884 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.495424 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.496094 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.496412 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.497003 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.497678 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.497817 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.498973 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.499411 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:47.499956 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.500134 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.501054 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.501424 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:47.501941 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.502323 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 15 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:47.502735 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.503209 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.503782 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.503993 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.504423 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.504951 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.505206 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.505647 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.506130 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.506762 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.507249 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.507732 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.507928 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.508321 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.508817 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.509294 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.510234 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.510596 #5710] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.511444 #5710] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:47.512063 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.512580 #5710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:47.513132 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 21 AND "taggings"."taggable_type" = 'SpecialPost' D, [2015-08-02T09:31:47.513611 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.514206 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.514749 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.514954 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.515360 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.515955 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.516376 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.516846 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.517319 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.517449 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.518212 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", nil], ["taggable_type", nil]] D, [2015-08-02T09:31:47.518819 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.519213 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.519701 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.520224 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.520430 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.520834 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.521386 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.521605 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.522041 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.522588 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.522752 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.523658 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "To Be or Not To Be?"], ["type", nil]] D, [2015-08-02T09:31:47.524504 #5710] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:47.524925 #5710] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:47.525551 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.525917 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 21 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:47.526266 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.526665 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.527191 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.527375 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.527736 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.528272 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.528500 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.528922 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Special"], ["taggings_count", 0], ["type", "SpecialTag"]] D, [2015-08-02T09:31:47.529533 #5710] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:47.529666 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.530433 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["tag_id", nil], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.530766 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:47.531296 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.531628 #5710] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:47.532105 #5710] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' D, [2015-08-02T09:31:47.532420 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = 23 AND "taggings"."polytag_type" = 'SpecialTag' LIMIT 1 D, [2015-08-02T09:31:47.532930 #5710] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = 23 LIMIT 1 D, [2015-08-02T09:31:47.533536 #5710] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 LIMIT 1 D, [2015-08-02T09:31:47.534032 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.534528 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.535006 #5710] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:47.535203 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.535580 #5710] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "taggings_count", "type") VALUES (?, ?, ?) [["name", "Misc"], ["taggings_count", 0], ["type", nil]] D, [2015-08-02T09:31:47.536123 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.536990 #5710] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:47.537570 #5710] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "taggings_count", "title", "type") VALUES (?, ?, ?, ?, ?) [["author_id", nil], ["body", "the body"], ["taggings_count", 0], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:47.537911 #5710] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?, ?) [["polytag_id", nil], ["polytag_type", nil], ["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:47.538323 #5710] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:47.538857 #5710] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:47.539205 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = 24 LIMIT 1 D, [2015-08-02T09:31:47.539570 #5710] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:47.539999 #5710] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = 27 AND "taggings"."taggable_type" = 'SpecialPost' LIMIT 1 D, [2015-08-02T09:31:48.599296 #5717] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:31:48.601081 #5717] DEBUG -- :  (1.4ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:48.602673 #5717] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:48.605222 #5717] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:48.606280 #5717] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:48.607135 #5717] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:48.608109 #5717] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:48.608867 #5717] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:48.644438 #5717] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:48.646777 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.647576 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.653190 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.664981 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.665612 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.669060 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.670100 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:48.670612 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.671408 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.672596 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:48.673190 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.673528 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.673980 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:48.674620 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.678508 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.688307 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:48.689566 #5717] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:48.690703 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:48.691510 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.692336 #5717] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:48.693150 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.693711 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.694564 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.694798 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.695211 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.695926 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.696329 #5717] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:48.702359 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.703091 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.705236 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.705719 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.706436 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.706571 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.707452 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.707944 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:48.708592 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.708732 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.709345 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.709664 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:48.710247 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.710398 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.710862 #5717] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:48.711329 #5717] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:48.711944 #5717] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:48.713612 #5717] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.714145 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.714665 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.715324 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.715641 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.716206 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.716890 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.717204 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.717740 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:48.718352 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.718686 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.719222 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:48.719925 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.720211 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.720807 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.721487 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.721762 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.722297 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.722945 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.723307 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.724023 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:48.724469 #5717] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:48.724866 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:48.725441 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.725691 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.726250 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.726919 #5717] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:48.727555 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:48.728125 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.730050 #5717] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:48.730774 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.731298 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.731863 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.732111 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.732555 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.733266 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.733534 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.734091 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.734695 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.735166 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.735594 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.736098 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.736232 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.737047 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.737453 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:48.738020 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.738160 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.738817 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.739156 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:48.739771 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.740234 #5717] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:48.741338 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:48.742029 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.742521 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.743097 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.743326 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.743735 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.744344 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.744563 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.745001 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.745574 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.746140 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.746560 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.747090 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.747220 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.748008 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.748409 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:48.748988 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.749133 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.749737 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.750058 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:48.750624 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.750965 #5717] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:48.751820 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:48.753121 #5717] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:48.753853 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.754328 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.754913 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.755132 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.755530 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.756106 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.756316 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.756715 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.757270 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.758354 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.758808 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.759289 #5717] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:48.759726 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:48.760268 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.760756 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.761225 #5717] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:48.761904 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:48.762366 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.762816 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.763371 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.763581 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.763974 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.764504 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.764747 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.765184 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.765753 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.766271 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.766808 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.767489 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.767651 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.768610 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.769028 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:48.769676 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.769865 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.770715 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.771182 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:48.771798 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.772281 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.772766 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.773191 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.773757 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.773987 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.774434 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.775060 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.775288 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.775743 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.776361 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.776833 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.777271 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.777846 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.777994 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.778784 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.779147 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:48.779755 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.779890 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.780503 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.780840 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:48.781420 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.781802 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.782238 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.782714 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.783225 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.783499 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.783954 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.784543 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.784804 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.785248 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.785713 #5717] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:48.786316 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.786728 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.787174 #5717] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:48.787360 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.787738 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.788200 #5717] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:48.789062 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.790208 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.790791 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.791990 #5717] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:48.792833 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.793390 #5717] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:48.794059 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.794602 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.795214 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.795981 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.796230 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.796709 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.797239 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.797494 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.797989 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.798612 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.799177 #5717] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:48.799928 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.800451 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.800792 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.801291 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.801936 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.802156 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.802597 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.803181 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.803402 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.803871 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.804517 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.804920 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.805591 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:48.806504 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:48.806995 #5717] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:48.807700 #5717] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:48.808162 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.808602 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.809069 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.809590 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.809801 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.810203 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.810693 #5717] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:48.810918 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.811377 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:48.811893 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.812335 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.813183 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.813596 #5717] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:48.814222 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.814742 #5717] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:48.815612 #5717] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.816069 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:48.817088 #5717] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:48.817698 #5717] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:48.818242 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.818802 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.819379 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.819638 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.820106 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:48.820673 #5717] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:48.821520 #5717] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:48.822218 #5717] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:48.822649 #5717] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:48.823191 #5717] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:48.823962 #5717] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:48.824476 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:48.825043 #5717] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:48.825634 #5717] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:49.889364 #5721] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:49.890708 #5721] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:49.892261 #5721] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:49.895057 #5721] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:49.896026 #5721] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:49.896880 #5721] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:49.897844 #5721] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:49.898611 #5721] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:49.924711 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.926897 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.927780 #5721] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:49.932230 #5721] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:49.933670 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:49.934357 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.936270 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.937444 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:49.938125 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.938872 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.940009 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:49.940620 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.940952 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.941374 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:49.941985 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.946382 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.959790 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:49.960776 #5721] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:49.961798 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:49.962554 #5721] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:49.963375 #5721] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:49.964152 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.964674 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.965427 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.965648 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.966060 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:49.966762 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.967165 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.969695 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:49.970257 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.972858 #5721] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:49.973413 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.974094 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.974231 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.975161 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:49.975654 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:49.976325 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.976462 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.977137 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:49.977509 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:49.978199 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.978322 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.978783 #5721] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:49.979192 #5721] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:49.979751 #5721] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:49.981381 #5721] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:49.981913 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.982412 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.982932 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.983179 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.983715 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:49.984320 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.984550 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.984952 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:49.985566 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.985816 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.986247 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:49.986857 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.987088 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.987551 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.988129 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.988378 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.988909 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:49.989617 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.990098 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.990846 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:49.991378 #5721] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:49.991829 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:49.992529 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:49.992867 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.993519 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:49.994406 #5721] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:49.995104 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:49.995704 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.997510 #5721] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:49.998278 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:49.998863 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:49.999469 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:49.999739 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.000180 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.000753 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.001024 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.001588 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.002228 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.002863 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.003420 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.003986 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.004141 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.005111 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.005543 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:50.006189 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.006385 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.007347 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.007817 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:50.008476 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.009003 #5721] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:50.010156 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:50.010920 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.011481 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.012118 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.012357 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.012811 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.013440 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.013731 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.014221 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.014884 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.015391 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.015864 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.016353 #5721] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:50.016507 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.017586 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.018114 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:50.018796 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.018960 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.019852 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.020246 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:50.020835 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.021195 #5721] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:50.022100 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:50.023330 #5721] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:50.024089 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.024576 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.025192 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.025439 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.025907 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.026486 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.026692 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.027134 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.027695 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.028814 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.029262 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.029779 #5721] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:50.030238 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:50.030786 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.031258 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.031878 #5721] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:50.032595 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:50.033067 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.033529 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.034074 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.034291 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.034683 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.035309 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.035534 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.035975 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.036517 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.037030 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.037461 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.038000 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.038132 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.038980 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.039354 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:50.040037 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.040374 #5721] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:50.041912 #5721] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.042777 #5721] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:50.043717 #5721] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:50.044337 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.044910 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.045430 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.046037 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.046291 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.046955 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.047685 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.047964 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.048507 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.049040 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.049723 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.050233 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.050748 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.050913 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.052105 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.052669 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:50.053394 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.053582 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.054402 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.054837 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:50.055477 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.056023 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.056528 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.057017 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.057506 #5721] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:50.057718 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.058117 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.058712 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.058995 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.059438 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.059992 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.060589 #5721] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:50.061033 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.061528 #5721] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:50.061769 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.062189 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.062662 #5721] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:50.063345 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.064143 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.064519 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.065386 #5721] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:50.066066 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.066633 #5721] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:50.067278 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.067711 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.068277 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.068800 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.069015 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.069424 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.069931 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.070153 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.070588 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.071072 #5721] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:50.071340 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.071903 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.072430 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.072731 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.073158 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.073680 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.073869 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.074284 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.074951 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.075185 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.075677 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.076220 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.076687 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.077404 #5721] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:50.078227 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:50.078665 #5721] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:50.079370 #5721] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:50.079786 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.080224 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.080671 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.081275 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.081503 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.081898 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.082442 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.082654 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.083118 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:50.083667 #5721] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:50.084065 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.084840 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.085210 #5721] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:50.085822 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.086150 #5721] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:50.086796 #5721] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.087126 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:50.087945 #5721] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:50.088511 #5721] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:50.088974 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.089420 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.090104 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.090601 #5721] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:50.091544 #5721] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:50.092334 #5721] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:50.093177 #5721] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:50.093736 #5721] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:50.094132 #5721] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:50.094601 #5721] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:50.095371 #5721] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:50.095768 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:50.096197 #5721] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:50.096672 #5721] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.143682 #5725] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:51.145046 #5725] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:51.146658 #5725] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:51.149477 #5725] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:51.150507 #5725] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:51.151365 #5725] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:51.152266 #5725] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:51.153007 #5725] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:51.178751 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.181079 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.181780 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.184475 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.185703 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.186294 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.188001 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.188993 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:51.189628 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.190283 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.191273 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:51.191952 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.192278 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.192707 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:51.193332 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.197336 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.213414 #5725] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:51.214652 #5725] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:51.215941 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:51.216654 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.217590 #5725] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:51.218450 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.219055 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.219667 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.219888 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.220296 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.220915 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.221301 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.223712 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.224373 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.226735 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.227270 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.227959 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.228119 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.229053 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.229543 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:51.230283 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.230419 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.231079 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.231446 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:51.232064 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.232210 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.232664 #5725] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:51.233102 #5725] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:51.233690 #5725] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:51.235297 #5725] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.236003 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.236693 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.237471 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.237780 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.238362 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.239054 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.239380 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.239945 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:51.240618 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.240966 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.241530 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:51.242122 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.242435 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.243026 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.243663 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.243963 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.244496 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.245108 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.245530 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.246297 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:51.246836 #5725] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:51.247245 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:51.247973 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.248295 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.248921 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.249747 #5725] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:51.250413 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:51.250998 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.252694 #5725] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:51.253447 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.254011 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.254677 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.254912 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.255348 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.255900 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.256143 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.256612 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.257175 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.257721 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.258197 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.258834 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.259020 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.259996 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.260430 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:51.261199 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.261368 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.262112 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.262486 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:51.263133 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.263610 #5725] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:51.264723 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:51.265454 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.265962 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.266476 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.266785 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.267269 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.267841 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.268153 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.268643 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.269200 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.269739 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.270189 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.270678 #5725] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:51.270829 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.271682 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.272086 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:51.272811 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.272947 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.273636 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.273993 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:51.274558 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.274931 #5725] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:51.275838 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:51.277089 #5725] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:51.277833 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.278293 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.278882 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.279096 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.279509 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.280064 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.280270 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.280693 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.281238 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.282344 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.282780 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.283332 #5725] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:51.283776 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:51.284354 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.284804 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.285290 #5725] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:51.286000 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:51.286505 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.286967 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.287505 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.287724 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.288116 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.288726 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.288970 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.289415 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.289997 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.290521 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.291052 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.291945 #5725] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:51.292122 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.293402 #5725] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.293854 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:51.298872 #5725] DEBUG -- :  (4.8ms) commit transaction D, [2015-08-02T09:31:51.299162 #5725] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:51.300197 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.300788 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:51.304684 #5725] DEBUG -- :  (3.7ms) commit transaction D, [2015-08-02T09:31:51.305541 #5725] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.306183 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.306765 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.312450 #5725] DEBUG -- :  (5.5ms) commit transaction D, [2015-08-02T09:31:51.312930 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.313841 #5725] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.314502 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.314856 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.315541 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.316203 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.317068 #5725] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:51.317879 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.318552 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.318741 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.319790 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.320247 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:51.320937 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.321095 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.321849 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.322233 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:51.322793 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.323313 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.323880 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.324485 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.325329 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.325815 #5725] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:51.326709 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.327426 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.327783 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.328351 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.328990 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.329744 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.330322 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.330917 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.331209 #5725] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:51.331740 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.332341 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.333356 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.334368 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.334836 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.335921 #5725] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:51.336713 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.337216 #5725] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:51.337847 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.338308 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.338814 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.339392 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.339631 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.340045 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.340569 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.340805 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.341286 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.341796 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.342084 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.342757 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.343378 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.343777 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.344477 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.345114 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.345420 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.345966 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.346509 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.346806 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.347395 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.348100 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.348667 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.349459 #5725] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:51.350420 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:51.350928 #5725] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:51.351709 #5725] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:51.352250 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.352767 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.353288 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.353916 #5725] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:51.354136 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.354546 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.355029 #5725] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:51.355266 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.355740 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:51.356256 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.356682 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.357477 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.357894 #5725] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:51.358404 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.358749 #5725] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:51.359408 #5725] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.359757 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:51.360600 #5725] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:51.361198 #5725] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:51.361631 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.362150 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.362697 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.363001 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.363489 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:51.364023 #5725] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:51.364936 #5725] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:51.365495 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:51.365933 #5725] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:51.366586 #5725] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:51.367518 #5725] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:51.367999 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:51.368450 #5725] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:51.368934 #5725] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.430832 #5730] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:31:52.432211 #5730] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:52.433505 #5730] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:31:52.435874 #5730] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:52.436817 #5730] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:52.437603 #5730] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:52.438454 #5730] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:31:52.439127 #5730] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:52.464557 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.466904 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.467654 #5730] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:52.470000 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.471055 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.471740 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.473217 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.474188 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:52.474801 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.475449 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.476446 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:52.477054 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.477356 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.477764 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:52.478365 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.482670 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.498054 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:52.499245 #5730] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:52.500479 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:52.501177 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.502310 #5730] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:52.503199 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.503801 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.504411 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.504675 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.505152 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.505733 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.506181 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.508860 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.509768 #5730] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:52.513852 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.514560 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.515286 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.515509 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.516732 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.517327 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:52.517949 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.518118 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.518921 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.519367 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:52.519996 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.520140 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.520654 #5730] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:52.521130 #5730] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:52.521768 #5730] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:52.523412 #5730] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.523920 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.524438 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.525155 #5730] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:52.525391 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.525793 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.526443 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.526668 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.527063 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:52.527680 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.527934 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.528369 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:52.529096 #5730] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:52.529342 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.529808 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.530457 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.530680 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.531145 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.531778 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.532120 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.532757 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:52.533208 #5730] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:52.533577 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:52.534236 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.534525 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.535112 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.535891 #5730] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:52.536513 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:52.537172 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.539730 #5730] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:52.540713 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.541486 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.542239 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.542596 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.543220 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.543923 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.544231 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.544850 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.545513 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.546186 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.546746 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.547430 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.547605 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.548715 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.549216 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:52.549824 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.550019 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.550946 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.551354 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:52.551985 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.552530 #5730] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:52.553681 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:52.554413 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.554963 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.555521 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.555765 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.556218 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.556831 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.557077 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.557581 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.558137 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.558646 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.559086 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.559661 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.559839 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.560958 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.561469 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:52.562211 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.562384 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.563169 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.563582 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:52.564284 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.564727 #5730] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:52.565762 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:52.567271 #5730] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:52.568160 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.568690 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.569249 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.569465 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.569856 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.570461 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.570669 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.571091 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.571629 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.572712 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.573152 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.573690 #5730] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:52.574137 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:52.574721 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.575157 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.575625 #5730] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:52.576322 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:52.576775 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.577214 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.577880 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.578084 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.578473 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.579028 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.579264 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.579703 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.580399 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.580897 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.581302 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.582038 #5730] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:52.582170 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.582990 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.583473 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:52.584101 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.584264 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.585042 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.585418 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:52.586028 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.586526 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.586989 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.587430 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.588053 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.588276 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.588679 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.589210 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.589440 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.589878 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.590443 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.590937 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.591360 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.591908 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.592046 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.593034 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.593449 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:52.594089 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.594248 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.595011 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.595406 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:52.596049 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.596513 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.597004 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.597477 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.598010 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.598294 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.598791 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.599320 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.599625 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.600158 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.600840 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.601545 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.602048 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.602619 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.602883 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.603396 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.603953 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.604743 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.605584 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.605952 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.606969 #5730] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:52.607743 #5730] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:52.608241 #5730] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:52.608857 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.609283 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.609871 #5730] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.610586 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.610855 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.611322 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.611874 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.612097 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.612566 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.613139 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.613434 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.614015 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.614533 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.614873 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.615373 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.615879 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.616172 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.616648 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.617188 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.617419 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.617888 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.618399 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.618828 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.619488 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:52.620279 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:52.620690 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:52.621337 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.621814 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.622366 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.622859 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.623360 #5730] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:52.623576 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.623986 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.624472 #5730] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:52.624733 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.625240 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:52.625815 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.626333 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.627296 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.627686 #5730] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:52.628269 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.628635 #5730] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:52.629311 #5730] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.629661 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:52.630490 #5730] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? ORDER BY "tags"."id" ASC LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:52.631067 #5730] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? ORDER BY "posts"."id" ASC LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:52.631544 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.632163 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.632788 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.633035 #5730] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:52.633493 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:52.634080 #5730] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:52.635047 #5730] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:52.635641 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:52.636035 #5730] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:52.636578 #5730] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:52.637223 #5730] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:52.637614 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:52.638034 #5730] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:52.638496 #5730] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.705370 #5739] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:31:53.706476 #5739] DEBUG -- :  (0.8ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:53.707988 #5739] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:31:53.711535 #5739] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:53.712580 #5739] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:53.713445 #5739] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:53.714503 #5739] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:53.715325 #5739] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:53.742442 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.745066 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.745741 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.748580 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.750173 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.750887 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.753064 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.754376 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:53.755062 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.755870 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.757120 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:53.757728 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.758073 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.758563 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:53.759174 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.763375 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.776743 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:53.777699 #5739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:53.778751 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:53.779598 #5739] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:53.781297 #5739] DEBUG -- : Author Load (0.2ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:53.782862 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.783692 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.784565 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.784998 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.785745 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.786546 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.787178 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.790363 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.791183 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.795223 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.796035 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.796753 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.796979 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.798343 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.798945 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:53.799626 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.799841 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.800889 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.801320 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:53.802023 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.802195 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.802864 #5739] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:53.803463 #5739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:53.804204 #5739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:53.806273 #5739] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.806912 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.807510 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.808104 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.808347 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.808846 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.809477 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.809702 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.810186 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:53.810739 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.811036 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.811737 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:53.812334 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.812592 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.813120 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.813665 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.813906 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.814381 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.814934 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.815303 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.815978 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:53.816430 #5739] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:53.816809 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:53.817450 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.817797 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.818500 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.819236 #5739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:53.819873 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:53.820465 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.822258 #5739] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:53.822995 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.823542 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.824169 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.824415 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.824855 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.825501 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.825738 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.826251 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.826811 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.827366 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.827828 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.828381 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.828526 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.829448 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.829829 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:53.830408 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.830555 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.831211 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.831537 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:53.832122 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.832555 #5739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:53.833607 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:53.834433 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.835039 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.835670 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.835894 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.836304 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.836840 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.837058 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.837507 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.838074 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.838670 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.839105 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.839663 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.839796 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.840667 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.841032 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:53.841655 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.841856 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.842783 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.843285 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:53.843985 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.844527 #5739] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:53.845715 #5739] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:53.847405 #5739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:53.848337 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.848961 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.849610 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.849881 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.850416 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.850995 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.851243 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.851755 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.852398 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.853853 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.854522 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.855139 #5739] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:53.855660 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:53.856367 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.856894 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.857479 #5739] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:53.858442 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:53.858981 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.859591 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.860290 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.860601 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.861190 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.861835 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.862156 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.862793 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.863408 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.864035 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.864578 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.865188 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.865377 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.866617 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.867118 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:53.867992 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.868320 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.869306 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.869759 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:53.870431 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.871238 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.871852 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.872466 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.873126 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.873372 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.873875 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.874518 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.874803 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.875382 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.876018 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.876631 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.877129 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.877715 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.877866 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.878798 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.879189 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:53.879838 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.880043 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.880985 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.881513 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:53.882191 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.882828 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.883450 #5739] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:53.884141 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.884787 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.885061 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.885573 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.886171 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.886452 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.886968 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.887514 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.888140 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.888623 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.889159 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.889357 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.889768 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.890320 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.891042 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.891851 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.892255 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.893220 #5739] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:53.894048 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.894598 #5739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:53.895423 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.895993 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.896647 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.897355 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.897685 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.898256 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.898826 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.899089 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.899618 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.900126 #5739] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:53.900472 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.901143 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.901887 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.902284 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.902771 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.903383 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.903623 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.904064 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.904667 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.904903 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.905362 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.905954 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.906417 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.907095 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:53.907926 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:53.908362 #5739] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:53.909139 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.909835 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.910460 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.911142 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.911780 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.912023 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.912488 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.913083 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.913347 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.913864 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:53.914398 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.914927 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.915961 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.916491 #5739] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:53.917211 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.917751 #5739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:53.918702 #5739] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.919198 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:53.920104 #5739] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:53.920787 #5739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:53.921347 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.921965 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.922652 #5739] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:53.922926 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.923416 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:53.923993 #5739] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:53.924918 #5739] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:53.925587 #5739] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:53.926059 #5739] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:53.926609 #5739] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:53.927365 #5739] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:53.927811 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:53.928296 #5739] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:53.928853 #5739] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.009305 #5743] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:55.010145 #5743] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:55.011053 #5743] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:31:55.013075 #5743] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:55.013974 #5743] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:55.014748 #5743] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:55.015765 #5743] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:55.016381 #5743] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:55.041966 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.044235 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.044956 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.047222 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.048265 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.048962 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.050457 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.051448 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:55.052098 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.052758 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.053790 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:55.054543 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.055241 #5743] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:55.056188 #5743] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:55.057118 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.061056 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.075312 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:55.076242 #5743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:55.077319 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:55.078004 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.078770 #5743] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:55.079475 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.079959 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.080606 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.080818 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.081245 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.081978 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.082356 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.085492 #5743] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.086243 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.088784 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.089365 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.089964 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.090122 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.091086 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.091562 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:55.092143 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.092316 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.093090 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.093444 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:55.094079 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.094244 #5743] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:55.094772 #5743] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:55.095282 #5743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:55.095916 #5743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:55.097825 #5743] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.098533 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.099155 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.099791 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.100117 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.100606 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.101153 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.101384 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.101809 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:55.102391 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.102664 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.103151 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:55.103713 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.103966 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.104514 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.105113 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.105481 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.106161 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.106885 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.107416 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.108354 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:55.108913 #5743] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:55.109382 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:55.110064 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.110443 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.111197 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.111971 #5743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:55.112670 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:55.113344 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.115267 #5743] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:55.116027 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.116565 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.117203 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.117446 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.117877 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.118529 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.118825 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.119392 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.120007 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.120665 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.121232 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.121767 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.121920 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.123037 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.123423 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:55.124011 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.124153 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.124816 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.125125 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:55.125734 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.126158 #5743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:55.127134 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:55.127759 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.128226 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.128777 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.128995 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.129398 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.129933 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.130159 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.130611 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.131155 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.131660 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.132135 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.132645 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.132798 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.133879 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.134334 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:55.134949 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.135110 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.135783 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.136101 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:55.136690 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.137056 #5743] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:55.137998 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:55.139359 #5743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:55.140168 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.140640 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.141553 #5743] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:55.142064 #5743] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:55.142620 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.143365 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.143650 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.144305 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.145136 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.147541 #5743] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:55.148275 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.149007 #5743] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:55.149599 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:55.150389 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.151019 #5743] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.151632 #5743] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:55.152640 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:55.153253 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.153933 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.154580 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.154918 #5743] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:55.155554 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.156296 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.156574 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.157148 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.157725 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.158342 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.158881 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.159470 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.159660 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.160809 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.161205 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:55.161940 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.162097 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.162851 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.163192 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:55.163889 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.164569 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.165091 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.165590 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.166233 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.166483 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.167012 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.167514 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.167759 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.168255 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.168842 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.169339 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.169777 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.170371 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.170513 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.171329 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.171693 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:55.172315 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.172460 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.173120 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.173436 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:55.174043 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.174494 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.174910 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.175356 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.175940 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.176194 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.176651 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.177243 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.177481 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.177909 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.178484 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.179013 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.179445 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.179990 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.180193 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.180588 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.181203 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.181907 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.182716 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.183141 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.184125 #5743] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:55.184922 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.185353 #5743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:55.185973 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.186395 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.186887 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.187462 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.187690 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.188104 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.188689 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.188915 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.189380 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.189970 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.190267 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.190877 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.191452 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.191758 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.192243 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.192849 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.193069 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.193492 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.194084 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.194307 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.194840 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.195431 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.195982 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.196798 #5743] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:55.197649 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:55.198077 #5743] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:55.198765 #5743] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:55.199243 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.199719 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.200224 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.200775 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.201011 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.201485 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.201967 #5743] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:55.202188 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.202664 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:55.203143 #5743] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:55.203639 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.204537 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.204956 #5743] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:55.205536 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.205915 #5743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:55.206698 #5743] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.207091 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:55.207856 #5743] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:55.208472 #5743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:55.209013 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.209568 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.210164 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.210423 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.210892 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:55.211485 #5743] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:55.212315 #5743] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:55.212847 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:55.213230 #5743] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:55.213691 #5743] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:55.214453 #5743] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:55.214811 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:55.215244 #5743] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:55.215716 #5743] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.283385 #5747] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:31:56.285268 #5747] DEBUG -- :  (1.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:56.286898 #5747] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:31:56.289445 #5747] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:56.290496 #5747] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:56.291362 #5747] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:56.292297 #5747] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:56.293094 #5747] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:56.317616 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.319836 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.320741 #5747] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:56.324741 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.326186 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.326892 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.328752 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.329967 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:56.330609 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.331361 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.332530 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:56.333153 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.333472 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.333920 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:56.334510 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.349473 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.353564 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:56.354452 #5747] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:56.355541 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:56.356221 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.357149 #5747] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:56.358010 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.358623 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.359301 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.359622 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.360120 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.360741 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.361187 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.364207 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.365044 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.368634 #5747] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:56.369435 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.370259 #5747] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:56.370486 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.372088 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.372690 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:56.373413 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.373577 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.374524 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.374940 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:56.375562 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.375695 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.376200 #5747] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:56.376658 #5747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:56.377293 #5747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:56.379103 #5747] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.379602 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.380145 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.380972 #5747] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:56.381501 #5747] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:56.382254 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.383006 #5747] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:56.383322 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.383807 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:56.384510 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.384828 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.385357 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:56.385991 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.386359 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.387143 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.387823 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.388158 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.388790 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.389390 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.389904 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.390887 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:56.391466 #5747] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:56.391956 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:56.392615 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.393163 #5747] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:56.394125 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.395053 #5747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:56.395817 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:56.396490 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.398855 #5747] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:56.399853 #5747] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:56.400610 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.401286 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.401720 #5747] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:56.402329 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.402860 #5747] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:56.403162 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.403764 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.404316 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.405017 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.405576 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.406094 #5747] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:56.406254 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.407388 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.407827 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:56.408467 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.408625 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.409466 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.409912 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:56.410461 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.410903 #5747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:56.411914 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:56.412526 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.412992 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.413626 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.413845 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.414232 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.414775 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.414998 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.415456 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.416081 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.416639 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.417109 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.417663 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.417810 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.418785 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.419159 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:56.419787 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.419931 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.420697 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.421005 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:56.421562 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.421927 #5747] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:56.422824 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:56.424193 #5747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:56.424964 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.425446 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.426084 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.426308 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.426720 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.427337 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.427538 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.427965 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.428509 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.429586 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.430036 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.430564 #5747] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:56.431003 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:56.431547 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.431929 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.432365 #5747] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:56.433055 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:56.433518 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.433979 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.434620 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.434905 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.435371 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.435955 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.436232 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.436774 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.437403 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.437966 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.438415 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.438976 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.439115 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.440096 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.440507 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:56.441152 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.441319 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.442094 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.442411 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:56.443077 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.443731 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.444420 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.445033 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.445697 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.445974 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.446457 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.447097 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.447412 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.447950 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.448612 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.449222 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.449764 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.450300 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.450508 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.451827 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.452242 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:56.452783 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.452953 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.453848 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.454206 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:56.454832 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.455316 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.455789 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.456251 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.456821 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.457061 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.457478 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.458100 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.458377 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.458847 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.459477 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.460095 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.460593 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.461226 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.461472 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.461932 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.462490 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.463198 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.464046 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.464430 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.465279 #5747] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:56.465944 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.466345 #5747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:56.466939 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.467338 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.467816 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.468283 #5747] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:56.468504 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.468910 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.469456 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.469687 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.470141 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.470723 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.471041 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.471629 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.472192 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.472515 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.473020 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.473582 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.473820 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.474259 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.474844 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.475068 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.475543 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.476191 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.476685 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.477424 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:56.478414 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:56.478834 #5747] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:56.479778 #5747] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:31:56.480791 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.481514 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.482161 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.482922 #5747] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:56.483220 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.483779 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.484449 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.484792 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.485375 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:56.486044 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.486594 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.487732 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.488174 #5747] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:56.488773 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.489165 #5747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:56.489931 #5747] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.490340 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:56.491127 #5747] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:56.491727 #5747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:56.492173 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.492652 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.493204 #5747] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:56.493425 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.493884 #5747] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:56.494504 #5747] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:56.495392 #5747] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:56.496033 #5747] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:56.496414 #5747] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:56.496925 #5747] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:56.497687 #5747] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:56.498084 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:56.498496 #5747] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:56.499076 #5747] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.564080 #5751] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:31:57.564903 #5751] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:57.565805 #5751] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:31:57.567734 #5751] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:57.568707 #5751] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:57.569480 #5751] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:57.570655 #5751] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:57.571346 #5751] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:57.595385 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.597602 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.598272 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.600545 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.601598 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.602292 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.603778 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.604756 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:57.605409 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.606064 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.607056 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:57.607740 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.608164 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.608592 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:57.609214 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.624590 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.629453 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:57.630451 #5751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:57.631612 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:57.632523 #5751] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:57.633623 #5751] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:57.634790 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.635699 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.636462 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.636795 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.637343 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.637913 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.638388 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.642304 #5751] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.643395 #5751] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:57.647240 #5751] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:57.647982 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.648683 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.648852 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.650173 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.650738 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:57.651440 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.651619 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.652563 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.652928 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:57.653566 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.653728 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.654267 #5751] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:57.654791 #5751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:57.655479 #5751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:57.657366 #5751] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.657893 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.658440 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.659000 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.659235 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.659650 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.660311 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.660595 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.661021 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:57.661629 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.661928 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.662405 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:57.662964 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.663205 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.663716 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.664339 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.664631 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.665149 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.665727 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.666153 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.667006 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:57.667615 #5751] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:57.668007 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:57.668577 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.668986 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.669771 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.670529 #5751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:57.671202 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:57.671891 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.673977 #5751] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:57.674870 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.675544 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.676237 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.676547 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.677063 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.677657 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.677934 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.678491 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.679092 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.679698 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.680156 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.680719 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.680865 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.681880 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.682303 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:57.682901 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.683145 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.684529 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.685002 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:57.685722 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.686267 #5751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:57.687499 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:57.688318 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.688925 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.689541 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.689830 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.690287 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.690903 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.691162 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.691695 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.692274 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.692817 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.693306 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.693844 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.693985 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.695028 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.695411 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:57.696104 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.696256 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.697095 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.697429 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:57.697956 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.698322 #5751] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:57.699241 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:57.700551 #5751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:57.701355 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.701847 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.702418 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.702635 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.703045 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.703639 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.703853 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.704320 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.704896 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.705999 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.706465 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.707007 #5751] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:57.707557 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:57.708211 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.708614 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.709060 #5751] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:57.709775 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:57.710268 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.710729 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.711356 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.711564 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.711971 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.712664 #5751] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:57.712893 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.713348 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.713989 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.714513 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.714946 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.715617 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.715765 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.716744 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.717174 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:57.717767 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.717940 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.718857 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.719308 #5751] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:57.719909 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.720734 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.721351 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.721955 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.722516 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.722783 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.723267 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.723781 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.724078 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.724705 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.725369 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.726285 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.726874 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.727470 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.727619 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.728774 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.729203 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:57.729867 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.730028 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.730882 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.731203 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:57.731825 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.732324 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.732818 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.733356 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.733974 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.734275 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.734808 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.735371 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.735644 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.736073 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.736621 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.737206 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.737624 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.738153 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.738343 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.738739 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.739314 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.739984 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.740781 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.741158 #5751] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.742124 #5751] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:57.742844 #5751] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:57.743297 #5751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:57.743937 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.744409 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.744979 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.745585 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.745864 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.746444 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.747020 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.747325 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.747898 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.748395 #5751] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:57.748780 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.749475 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.750021 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.750465 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.751024 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.751567 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.751807 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.752249 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.752786 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.753028 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.753508 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.754111 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.754585 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.755328 #5751] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:57.756311 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:57.756752 #5751] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:57.757491 #5751] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:57.758142 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.758650 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.759190 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.759807 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.760042 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.760507 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.761027 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.761275 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.761758 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:57.762250 #5751] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:57.762736 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.763763 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.764152 #5751] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:57.764730 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.765103 #5751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:57.765863 #5751] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.766261 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:57.767086 #5751] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:57.767722 #5751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:57.768195 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.768702 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.769304 #5751] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:57.769614 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.770172 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:57.770821 #5751] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:57.771803 #5751] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:57.772431 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:57.772892 #5751] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:57.773417 #5751] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:57.774187 #5751] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:57.774606 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:57.775045 #5751] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:57.775595 #5751] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.832871 #5758] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:31:58.833683 #5758] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:31:58.834705 #5758] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:31:58.836679 #5758] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:58.837620 #5758] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:31:58.838367 #5758] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:31:58.839299 #5758] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:31:58.840203 #5758] DEBUG -- :  (0.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:31:58.867960 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.870412 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.871269 #5758] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:58.874401 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.875792 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.876434 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.878253 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.879363 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:58.879972 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.880723 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.881927 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:58.882614 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.882966 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.883524 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:31:58.884213 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.898679 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.902698 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:31:58.903567 #5758] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:31:58.904673 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:31:58.905283 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.906333 #5758] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:31:58.907330 #5758] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:58.908062 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.908709 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.909047 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.909590 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.910225 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.910713 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.913831 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.914452 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.917463 #5758] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:58.918063 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.918781 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.918940 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.920049 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.920540 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:31:58.921197 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.921339 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.922174 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.922510 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:31:58.923155 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.923285 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.923774 #5758] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:31:58.924320 #5758] DEBUG -- : SpecialTag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:58.924917 #5758] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:31:58.926562 #5758] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:58.927058 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.927585 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.928189 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.928510 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.929068 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.929731 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.930043 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.930610 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:31:58.931307 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.931696 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.932316 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:31:58.933001 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.933524 #5758] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:58.934627 #5758] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.935654 #5758] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:31:58.936182 #5758] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:58.937230 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.937966 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.938453 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.939400 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:31:58.939993 #5758] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:31:58.940490 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:31:58.941179 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.941591 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.942404 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.943267 #5758] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:31:58.944037 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:31:58.944697 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.946921 #5758] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:31:58.947803 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.948427 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.949121 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.949403 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.949939 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.950553 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.950935 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.951667 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.952462 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.953211 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.953769 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.954289 #5758] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:58.954445 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.955549 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.955977 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:31:58.956633 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.956808 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.957613 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.957954 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:31:58.958560 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.959094 #5758] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:31:58.960092 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:31:58.960772 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.961262 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.961845 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.962077 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.962477 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.963055 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.963292 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.963742 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.964295 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.964804 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.965238 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.965825 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.965969 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.966910 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.967286 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:31:58.967871 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.968010 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.968786 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.969116 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:31:58.969751 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.970123 #5758] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:31:58.970973 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:31:58.972292 #5758] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:31:58.973073 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.973533 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.974221 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.974437 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.974848 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.975533 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.975735 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.976160 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.976844 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.977914 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.978372 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.978899 #5758] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:58.979324 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:31:58.979894 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.980270 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.980708 #5758] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:31:58.981410 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:31:58.981881 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.982348 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.982912 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.983135 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.983543 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.984071 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.984303 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.984762 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.985401 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.986044 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.986542 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.987126 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.987300 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.988427 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.988833 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:31:58.989409 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.989600 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.990405 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:58.990750 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:31:58.991322 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:58.991983 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:58.992457 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.992910 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.993525 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.993816 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.994229 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:58.994974 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.995273 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.995812 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:58.996582 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.997803 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:58.998457 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:58.999109 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:58.999296 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.000708 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.001214 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:31:59.001923 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.002093 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.003084 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.003454 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:31:59.004079 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.004632 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:59.005160 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.005756 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.006370 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.006630 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.007057 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.007634 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.007890 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.008340 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.008952 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.009594 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.010108 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.010729 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.010944 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.011361 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.011930 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.012626 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.013549 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.014029 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.015005 #5758] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:31:59.015762 #5758] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:59.016248 #5758] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:31:59.016994 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.017440 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.017946 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.018558 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.018789 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.019208 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.019658 #5758] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:59.019880 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.020342 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:59.020807 #5758] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:31:59.021106 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.021712 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:59.022250 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.022551 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.023010 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.023543 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.023763 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.024166 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.024701 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.024929 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.025380 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:59.025898 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.026346 #5758] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:31:59.027020 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:31:59.028034 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:31:59.028477 #5758] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:31:59.029137 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.029619 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:59.030047 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.030503 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.031114 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.031333 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.031734 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.032298 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.032537 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.032981 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:31:59.033585 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.034081 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.035122 #5758] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.035512 #5758] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:31:59.036193 #5758] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:31:59.036619 #5758] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:59.037365 #5758] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:59.037740 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:31:59.038471 #5758] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:31:59.039058 #5758] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:31:59.039509 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.040062 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.040636 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.040868 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.041287 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:31:59.041837 #5758] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:31:59.042654 #5758] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:31:59.043180 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:31:59.043555 #5758] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:31:59.044017 #5758] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:31:59.044761 #5758] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:31:59.045333 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:31:59.045938 #5758] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:31:59.046631 #5758] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.129038 #5762] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:32:00.130942 #5762] DEBUG -- :  (1.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:00.132551 #5762] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:00.135058 #5762] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:00.136135 #5762] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:32:00.136904 #5762] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:00.138099 #5762] DEBUG -- :  (0.8ms) DROP TABLE "tags" D, [2015-08-02T09:32:00.140708 #5762] DEBUG -- :  (2.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:00.165272 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.167687 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.169886 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.174339 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.175799 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.177984 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.179989 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.181100 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:00.183052 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.183822 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.184859 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:00.186775 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.187258 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.187901 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:00.189821 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.203283 #5762] DEBUG -- :  (9.2ms) begin transaction D, [2015-08-02T09:32:00.208143 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:00.209404 #5762] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:00.210756 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:00.212867 #5762] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:00.214050 #5762] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:00.215050 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.215788 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.218241 #5762] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:00.218816 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.219546 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.222071 #5762] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:00.222610 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.225922 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.228114 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.231386 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.232549 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.234911 #5762] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:00.235158 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.236706 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.237335 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:00.239401 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.239643 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.240787 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.241222 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:00.242945 #5762] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:00.243107 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.243612 #5762] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:00.244087 #5762] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:00.244733 #5762] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:00.246632 #5762] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.247212 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.247749 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.249626 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.249995 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.250600 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.252660 #5762] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:00.252962 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.253490 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:00.255553 #5762] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:00.256024 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.256759 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:00.258772 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.259267 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.260263 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.262565 #5762] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:00.262919 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.263521 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.265536 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.266113 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.267020 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:00.267546 #5762] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:00.268106 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:00.269941 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.270257 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.270911 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.271618 #5762] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:00.272246 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:00.274053 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.277216 #5762] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:00.278421 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.279554 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.283149 #5762] DEBUG -- :  (3.2ms) commit transaction D, [2015-08-02T09:32:00.283551 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.284212 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.286749 #5762] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:00.287237 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.287959 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.290362 #5762] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:00.291235 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.291875 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.294268 #5762] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:00.294568 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.296139 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.296751 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:00.299056 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.299471 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.301062 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.301592 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:00.303663 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.304314 #5762] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:00.305666 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:00.306502 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.307121 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.309350 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.309905 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.310861 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.313502 #5762] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:00.313843 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.314466 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.316630 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.317488 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.318099 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.320139 #5762] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:00.320300 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.321408 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.321846 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:00.323638 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.323785 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.324595 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.324933 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:00.326773 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.327341 #5762] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:00.328581 #5762] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:00.330317 #5762] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:00.331332 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.331979 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.334226 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.334576 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.335130 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.337215 #5762] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:00.337566 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.338116 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.340016 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.341298 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.341810 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.342360 #5762] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:00.342781 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:00.344424 #5762] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:00.344991 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.345603 #5762] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:00.346678 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:00.347334 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.348032 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.350233 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.350626 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.351285 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.353693 #5762] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:00.354309 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.355401 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.357653 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.358491 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.359119 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.361360 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.361683 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.363830 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.364364 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:00.366339 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.366562 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.367747 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.368223 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:00.370826 #5762] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:00.371741 #5762] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.372400 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.372994 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.374975 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.375261 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.375784 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.377749 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.378050 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.378619 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.380492 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.381159 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.381654 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.383476 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.383663 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.384989 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.385481 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:00.387015 #5762] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:00.387169 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.387964 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.388296 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:00.389850 #5762] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:00.390384 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.390877 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.391367 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.393315 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.393697 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.394303 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.396338 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.396707 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.397388 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.399689 #5762] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:00.400813 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.401426 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.403640 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.403939 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.404500 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.406664 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.407587 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.408677 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.409121 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.410177 #5762] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:00.412161 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.412636 #5762] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:00.413333 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.413784 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.414294 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.416287 #5762] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:00.416775 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.417335 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.419106 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.419390 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.419938 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.421714 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.422086 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.422796 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.424571 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.424942 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.425453 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.427236 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.427521 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.427974 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.429841 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.430129 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.430634 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.432452 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.433041 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.433835 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:00.435046 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:00.435521 #5762] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:00.437234 #5762] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:00.437721 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.438187 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.438663 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.440531 #5762] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:00.440922 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.441524 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.443939 #5762] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:00.444511 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.445140 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:00.447347 #5762] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:00.447902 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.448957 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.449380 #5762] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:00.451085 #5762] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:00.451908 #5762] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:00.453469 #5762] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.454332 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:00.455437 #5762] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:00.456289 #5762] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:00.456918 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.457601 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.459939 #5762] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:00.460485 #5762] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:00.461426 #5762] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:00.464066 #5762] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:00.465589 #5762] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:00.466435 #5762] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:00.467024 #5762] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:00.467684 #5762] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:00.470208 #5762] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:00.471093 #5762] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:00.471867 #5762] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:00.472522 #5762] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.544886 #5766] DEBUG -- :  (4.1ms) DROP TABLE "authors" D, [2015-08-02T09:32:01.549380 #5766] DEBUG -- :  (4.2ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:01.552185 #5766] DEBUG -- :  (2.3ms) DROP TABLE "posts" D, [2015-08-02T09:32:01.556228 #5766] DEBUG -- :  (2.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:01.558493 #5766] DEBUG -- :  (1.9ms) DROP TABLE "taggings" D, [2015-08-02T09:32:01.560869 #5766] DEBUG -- :  (2.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:01.562841 #5766] DEBUG -- :  (1.7ms) DROP TABLE "tags" D, [2015-08-02T09:32:01.564987 #5766] DEBUG -- :  (2.0ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:01.588792 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.591052 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.593299 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.597244 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.598761 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.601118 #5766] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:01.603168 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.604393 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:01.606469 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.607405 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.608793 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:01.611010 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.611639 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.612386 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:01.614492 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.631299 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.636409 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:01.637516 #5766] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:01.638779 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:01.640649 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.641537 #5766] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:01.642307 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.642855 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.644724 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.645039 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.645489 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.647135 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.647537 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.650103 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.651955 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.654486 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.655023 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.656812 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.656980 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.658157 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.658806 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:01.660469 #5766] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:01.660658 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.661625 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.661984 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:01.663615 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.663793 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.664296 #5766] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:01.664799 #5766] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:01.665366 #5766] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:01.667267 #5766] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.667779 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.668328 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.670164 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.670468 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.670928 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.672741 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.673027 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.673492 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:01.675299 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.675653 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.676156 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:01.678070 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.678403 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.678993 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.680734 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.680992 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.681512 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.683277 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.683709 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.684670 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:01.685214 #5766] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:01.685600 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:01.687132 #5766] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:01.687441 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.688055 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.688746 #5766] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:01.689375 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:01.691135 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.693587 #5766] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:01.694509 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.695165 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.697236 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.697581 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.698225 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.700118 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.700449 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.701021 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.703015 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.704518 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.705586 #5766] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.708033 #5766] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:01.708382 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.710639 #5766] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.711182 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:01.713278 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.713500 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.714849 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.715361 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:01.717407 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.718030 #5766] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:01.719346 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:01.720148 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.720739 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.722738 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.722987 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.723466 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.725512 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.725830 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.726376 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.728329 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.729058 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.729602 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.731462 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.731655 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.732780 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.733180 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:01.735130 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.735304 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.736315 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.736669 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:01.738293 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.738801 #5766] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:01.739996 #5766] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:01.741612 #5766] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:01.742547 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.743126 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.745069 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.745339 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.745831 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.747794 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.748333 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.749231 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.751404 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.752782 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.753299 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.753849 #5766] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:01.754288 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:01.755882 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.756261 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.756720 #5766] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:01.757444 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:01.757942 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.758413 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.760182 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.760411 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.760835 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.762764 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.763352 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.764021 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.766215 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.766950 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.767453 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.769282 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.769501 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.770939 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.771431 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:01.773345 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.773566 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.774618 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.775020 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:01.776669 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.777741 #5766] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.778655 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.779285 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.781797 #5766] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:01.782321 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.782920 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.785464 #5766] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:01.785835 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.786466 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.788631 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.789325 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.789849 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.792078 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.792434 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.794634 #5766] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.795264 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:01.797253 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.797464 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.798652 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.799119 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:01.801039 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.801816 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.802489 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.803168 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.805220 #5766] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:01.805540 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.806102 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.807971 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.808295 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.808838 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.810607 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.811272 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.811753 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.813377 #5766] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:01.813603 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.814036 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.815786 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.816517 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.817339 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.817728 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.818777 #5766] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:01.820664 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.821169 #5766] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:01.821823 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.822262 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.822762 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.824571 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.824877 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.825354 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.827182 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.827522 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.828074 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.829907 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.830346 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.831070 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.832862 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.833262 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.833957 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.835739 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.835971 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.836408 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.838118 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.838358 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.838829 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.840618 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.841156 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.841893 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:01.842839 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:01.843259 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:01.844971 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.845572 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.846130 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.846676 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.848485 #5766] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:01.848725 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.849209 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.851143 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.851406 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.851919 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:01.853874 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.854952 #5766] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:01.856776 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.857322 #5766] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:01.859261 #5766] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:01.860109 #5766] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:01.861673 #5766] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.862234 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:01.863264 #5766] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:01.864118 #5766] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:01.864752 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.865425 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.867647 #5766] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:01.867993 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.868739 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:01.871000 #5766] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:01.872172 #5766] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:01.872911 #5766] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:01.873389 #5766] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:01.873959 #5766] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:01.875932 #5766] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:01.876392 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:01.876870 #5766] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:01.877406 #5766] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:02.966301 #5771] DEBUG -- :  (4.4ms) DROP TABLE "authors" D, [2015-08-02T09:32:02.969717 #5771] DEBUG -- :  (3.1ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:02.972644 #5771] DEBUG -- :  (2.3ms) DROP TABLE "posts" D, [2015-08-02T09:32:02.976850 #5771] DEBUG -- :  (2.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:02.979109 #5771] DEBUG -- :  (1.8ms) DROP TABLE "taggings" D, [2015-08-02T09:32:02.981460 #5771] DEBUG -- :  (2.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:02.983482 #5771] DEBUG -- :  (1.7ms) DROP TABLE "tags" D, [2015-08-02T09:32:02.985693 #5771] DEBUG -- :  (2.1ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:03.009831 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.012079 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.014483 #5771] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:03.019277 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.021061 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.023170 #5771] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:03.025084 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.026222 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:03.028166 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.028942 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.029988 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:03.031753 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.032292 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.033002 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:03.035167 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.050582 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.055807 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:03.056961 #5771] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:03.058219 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:03.060481 #5771] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:03.061641 #5771] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:03.062580 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.063161 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.065517 #5771] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:03.066011 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.066724 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.069929 #5771] DEBUG -- :  (2.9ms) commit transaction D, [2015-08-02T09:32:03.070526 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.073768 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.075789 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.078609 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.079210 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.081155 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.081350 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.082537 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.083042 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:03.084846 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.085060 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.086034 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.086412 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:03.088096 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.088351 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.088999 #5771] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:03.089692 #5771] DEBUG -- : SpecialTag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:03.090421 #5771] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:03.092473 #5771] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.093074 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.093701 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.096055 #5771] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:03.096596 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.097228 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.099434 #5771] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:03.100030 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.101140 #5771] DEBUG -- : SQL (0.3ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:03.103533 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.104014 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.104724 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:03.106571 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.106939 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.107648 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.109519 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.109848 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.110453 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.112269 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.112765 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.113625 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:03.114159 #5771] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:03.114602 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:03.116301 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.116812 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.117758 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.118746 #5771] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:03.119596 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:03.121961 #5771] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:03.125478 #5771] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:03.126453 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.127207 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.129408 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.129719 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.130313 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.132457 #5771] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:03.132790 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.133411 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.135453 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.136144 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.136688 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.138501 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.138647 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.139731 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.140125 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:03.141756 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.141939 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.142856 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.143207 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:03.144806 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.145320 #5771] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:03.146535 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:03.147367 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.147968 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.149914 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.150274 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.150848 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.152773 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.153179 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.153944 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.156109 #5771] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:03.156785 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.157276 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.159011 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.159152 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.160204 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.160664 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:03.162222 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.162373 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.163194 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.163546 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:03.165109 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.165498 #5771] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:03.166538 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:03.168149 #5771] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:03.169029 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.169588 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.171324 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.171572 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.172025 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.173837 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.174110 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.174655 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.176628 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.177944 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.178483 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.179054 #5771] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:03.179514 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:03.181150 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.181530 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.181980 #5771] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:03.182731 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:03.183233 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.183737 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.185634 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.185933 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.186459 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.188344 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.188659 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.189217 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.191084 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.191722 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.192219 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.194132 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.194320 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.195419 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.195851 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:03.197486 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.197641 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.198478 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.198834 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:03.200656 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.202130 #5771] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.203019 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.203702 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.206005 #5771] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:03.206515 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.207490 #5771] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.210102 #5771] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:03.210491 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.211184 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.213389 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.214128 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.214761 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.216786 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.216983 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.218326 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.218910 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:03.220528 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.220695 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.221593 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.221969 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:03.223640 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.224137 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.224635 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.225112 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.226908 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.227207 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.227671 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.229454 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.229716 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.230157 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.231915 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.232578 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.233021 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.234860 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.235134 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.235606 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.237368 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.238159 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.239035 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.239434 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.240432 #5771] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:03.242056 #5771] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:03.242547 #5771] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:03.243189 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.243639 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.244129 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.246163 #5771] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:03.246537 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.247070 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.249190 #5771] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:03.249753 #5771] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:03.250846 #5771] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.253612 #5771] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:03.254068 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.254956 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.257163 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.257595 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.258252 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.260441 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.260740 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.261295 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.263198 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.263478 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.264040 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.265904 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.266469 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.267313 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:03.268430 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:03.268873 #5771] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:03.270442 #5771] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:03.270973 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.271442 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.271938 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.273709 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.273954 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.274406 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.276230 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.276529 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.277040 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:03.278905 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.279576 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.280853 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.281336 #5771] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:03.283276 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.283770 #5771] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:03.284603 #5771] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.285022 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:03.285835 #5771] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:03.286483 #5771] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:03.286960 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.287508 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.289416 #5771] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:03.289776 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.290379 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:03.292590 #5771] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:03.293656 #5771] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:03.294320 #5771] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:03.294794 #5771] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:03.295321 #5771] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:03.297054 #5771] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:03.297501 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:03.297989 #5771] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:03.298501 #5771] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.444640 #5780] DEBUG -- :  (3.9ms) DROP TABLE "authors" D, [2015-08-02T09:32:04.447277 #5780] DEBUG -- :  (2.3ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:04.449650 #5780] DEBUG -- :  (1.8ms) DROP TABLE "posts" D, [2015-08-02T09:32:04.453755 #5780] DEBUG -- :  (2.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:04.456086 #5780] DEBUG -- :  (1.7ms) DROP TABLE "taggings" D, [2015-08-02T09:32:04.458244 #5780] DEBUG -- :  (2.0ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:04.460521 #5780] DEBUG -- :  (1.9ms) DROP TABLE "tags" D, [2015-08-02T09:32:04.462732 #5780] DEBUG -- :  (2.0ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:04.489783 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.492373 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.494114 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.496677 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.497946 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.500040 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.502021 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.503488 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:04.505423 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.506237 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.507742 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:04.509884 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.510232 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.510716 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:04.512403 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.526025 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.529971 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:04.531116 #5780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:04.532599 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:04.534826 #5780] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:04.535979 #5780] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:04.536744 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.537309 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.539022 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.539331 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.539967 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.541666 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.542182 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.545803 #5780] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.548236 #5780] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:04.551350 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.552010 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.553854 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.554039 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.555362 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.555953 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:04.557530 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.557717 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.558655 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.559022 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:04.560800 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.560967 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.561442 #5780] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:04.561963 #5780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:04.562622 #5780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:04.564695 #5780] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.565466 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.566186 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.568190 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.568741 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.569528 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.571594 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.571862 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.572365 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:04.574024 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.574345 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.574869 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:04.576619 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.576889 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.577476 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.579271 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.579616 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.580310 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.582481 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.583029 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.584034 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:04.584623 #5780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:04.585126 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:04.587126 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.587576 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.588426 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.589408 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:04.590231 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:04.592125 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.594471 #5780] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:04.595422 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.596087 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.597944 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.598288 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.598908 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.600668 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.601001 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.601685 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.603492 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.604424 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.605203 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.607043 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.607245 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.608815 #5780] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.609262 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:04.610841 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.611014 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.611981 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.612338 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:04.613917 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.614494 #5780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:04.615708 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:04.616576 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.617237 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.619153 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.619512 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.620062 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.621908 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.622254 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.622854 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.624701 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.625443 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.626013 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.627805 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.627991 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.629535 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.630048 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:04.631722 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.631914 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.632953 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.633368 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:04.635067 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.635487 #5780] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:04.636454 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:04.638125 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:04.639093 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.639694 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.641635 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.641998 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.642648 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.644976 #5780] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:04.645301 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.645978 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.648107 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.649746 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.650485 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.651258 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:04.651818 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:04.653700 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.654303 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.654935 #5780] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:04.656056 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:04.656730 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.657460 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.659642 #5780] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:04.659990 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.660638 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.663003 #5780] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:04.663560 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.664675 #5780] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.667267 #5780] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:04.668229 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.668974 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.671161 #5780] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:04.671383 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.673298 #5780] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.674035 #5780] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:04.676196 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.676426 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.677618 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.678180 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:04.679808 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.680791 #5780] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.681495 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.682211 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.684270 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.684604 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.685426 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.687325 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.687746 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.688422 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.690230 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.690956 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.691542 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.693266 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.693439 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.694647 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.695088 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:04.696624 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.696875 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.698060 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.698490 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:04.700280 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.700956 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.701623 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.702340 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.704236 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.704554 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.705093 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.706915 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.707372 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.708034 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.710083 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.710904 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.711578 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.713417 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.713714 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.714261 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.715983 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.716837 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.717936 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.718497 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.719540 #5780] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:04.721492 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.722088 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:04.722880 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.723395 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.723976 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.725917 #5780] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:04.726267 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.726968 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.729219 #5780] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:04.729613 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.730337 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.732515 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.732996 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.733955 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.736126 #5780] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:04.736640 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.737366 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.739237 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.739735 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.740541 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.742481 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.742782 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.743367 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.745161 #5780] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:04.745707 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.746510 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:04.747672 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:04.748155 #5780] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:04.749814 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.750410 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.751019 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.751781 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.753708 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.754047 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.754618 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.756506 #5780] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:04.756894 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.757633 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:04.760418 #5780] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:32:04.761141 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.762431 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.762928 #5780] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:04.764498 #5780] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:04.764941 #5780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:04.765783 #5780] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.766331 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:04.767397 #5780] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:04.768591 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:04.769183 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.769933 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.772491 #5780] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:04.772883 #5780] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:04.773591 #5780] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:04.775816 #5780] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:04.777349 #5780] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:04.778507 #5780] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:04.779344 #5780] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:04.780074 #5780] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:04.781795 #5780] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:04.782380 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:04.782943 #5780] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:04.783655 #5780] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:05.942461 #5784] DEBUG -- :  (3.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:05.946814 #5784] DEBUG -- :  (4.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:05.949738 #5784] DEBUG -- :  (2.4ms) DROP TABLE "posts" D, [2015-08-02T09:32:05.954569 #5784] DEBUG -- :  (2.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:05.956757 #5784] DEBUG -- :  (1.7ms) DROP TABLE "taggings" D, [2015-08-02T09:32:05.959224 #5784] DEBUG -- :  (2.2ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:05.961462 #5784] DEBUG -- :  (1.8ms) DROP TABLE "tags" D, [2015-08-02T09:32:05.963869 #5784] DEBUG -- :  (2.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:05.990875 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:05.993313 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:05.995058 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:05.998072 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:05.999640 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.001630 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.003602 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.004810 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:06.006577 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.007428 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.008733 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:06.010622 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.011251 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.011898 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:06.013890 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.027974 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.032105 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:06.033357 #5784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:06.034714 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:06.036529 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.037808 #5784] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:06.038808 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.039619 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.042217 #5784] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:06.042861 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.043681 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.046092 #5784] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:06.046756 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.050770 #5784] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.053447 #5784] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:06.057148 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.057901 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.059919 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.060246 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.061917 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.062489 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:06.064058 #5784] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:06.064253 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.065226 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.065592 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:06.067165 #5784] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:06.067339 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.067848 #5784] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:06.068431 #5784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:06.069308 #5784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:06.071421 #5784] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.072068 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.072725 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.074447 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.074696 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.075127 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.076809 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.077118 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.077610 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:06.079262 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.079670 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.080301 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:06.082391 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.082768 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.083483 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.085633 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.086017 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.086676 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.088677 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.089137 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.089924 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:06.090416 #5784] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:06.090831 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:06.092601 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.093060 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.093977 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.095110 #5784] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:06.096032 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:06.098183 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.100654 #5784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:06.101599 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.102262 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.104385 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.104681 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.105242 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.107092 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.107421 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.108097 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.110298 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.111071 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.111717 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.113667 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.114010 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.116114 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.116638 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:06.118682 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.118897 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.120063 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.120585 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:06.122539 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.123198 #5784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:06.124579 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:06.125504 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.126134 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.128547 #5784] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:06.129105 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.130024 #5784] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.132185 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.132502 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.133250 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.135505 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.136380 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.137051 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.139282 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.139602 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.141478 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.142183 #5784] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:06.145347 #5784] DEBUG -- :  (2.8ms) commit transaction D, [2015-08-02T09:32:06.145692 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.147387 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.147902 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:06.149852 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.150425 #5784] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:06.151883 #5784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:06.153583 #5784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:06.154563 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.155177 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.157052 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.157304 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.157803 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.159673 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.160181 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.160919 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.163080 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.164467 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.165021 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.165667 #5784] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:06.166233 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:06.167888 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.168401 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.168910 #5784] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:06.169805 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:06.170320 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.170871 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.172764 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.173070 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.173562 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.175446 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.175810 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.176418 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.178244 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.178872 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.179363 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.181203 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.181402 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.182675 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.183070 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:06.184707 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.184884 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.185815 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.186177 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:06.187764 #5784] DEBUG -- :  (1.4ms) commit transaction D, [2015-08-02T09:32:06.188509 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.189175 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.189879 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.191761 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.192053 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.192531 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.194300 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.194536 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.195055 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.197120 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.198031 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.198704 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.200756 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.200989 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.202542 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.203099 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:06.205171 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.205373 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.206524 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.206951 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:06.208803 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.209470 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.210106 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.210762 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.212839 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.213149 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.213675 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.215621 #5784] DEBUG -- :  (1.7ms) commit transaction D, [2015-08-02T09:32:06.215935 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.216457 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.218164 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.218851 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.219402 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.221180 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.221442 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.221978 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.223743 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.224494 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.225361 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.225758 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.226783 #5784] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:06.228571 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.229083 #5784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:06.229862 #5784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.230331 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.230870 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.233114 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.233676 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.234688 #5784] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.236810 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.237254 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.238013 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.240104 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.240653 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.241605 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.243887 #5784] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:06.244366 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.245101 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.247393 #5784] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:06.247798 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.248436 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.250645 #5784] DEBUG -- :  (2.0ms) commit transaction D, [2015-08-02T09:32:06.250992 #5784] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:06.252146 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.254180 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.254845 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.255854 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:06.257073 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:06.257547 #5784] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:06.259215 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.259763 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.260237 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.260764 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.262531 #5784] DEBUG -- :  (1.6ms) commit transaction D, [2015-08-02T09:32:06.262806 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.263308 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.265270 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.265571 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.266134 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:06.268076 #5784] DEBUG -- :  (1.8ms) commit transaction D, [2015-08-02T09:32:06.268689 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.269874 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.270352 #5784] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:06.272060 #5784] DEBUG -- :  (1.5ms) commit transaction D, [2015-08-02T09:32:06.272615 #5784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:06.273522 #5784] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.273945 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:06.274772 #5784] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:06.275374 #5784] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:06.275890 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.276414 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.278478 #5784] DEBUG -- :  (1.9ms) commit transaction D, [2015-08-02T09:32:06.278803 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.279437 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:06.281957 #5784] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:06.283489 #5784] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:06.284295 #5784] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:06.284948 #5784] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:06.285682 #5784] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:06.288321 #5784] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:06.288974 #5784] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:06.289616 #5784] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:06.290223 #5784] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.388362 #5788] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:32:07.389584 #5788] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:07.390695 #5788] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:32:07.393179 #5788] DEBUG -- :  (0.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:07.394403 #5788] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:32:07.395586 #5788] DEBUG -- :  (0.9ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:07.396601 #5788] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:32:07.397369 #5788] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:07.422073 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.424343 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.425229 #5788] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:07.429583 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.431057 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.431822 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.433763 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.435019 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:07.435722 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.436465 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.437640 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:07.438279 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.438620 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.439071 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "SpecialGeneral"]] D, [2015-08-02T09:32:07.439600 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.453645 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.457651 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 2], ["taggable_id", 2], ["taggable_type", "Post"]] D, [2015-08-02T09:32:07.458517 #5788] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:07.459636 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 2 D, [2015-08-02T09:32:07.460529 #5788] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:07.461579 #5788] DEBUG -- : Author Load (0.1ms)  SELECT authors.* FROM authors INNER JOIN posts p ON authors.id = p.author_id INNER JOIN taggings tgs ON tgs.taggable_id = p.id AND tgs.taggable_type = "Post" WHERE tgs.tag_id = 2  D, [2015-08-02T09:32:07.462557 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.463237 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.463875 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.464221 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.464758 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.465388 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.465887 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.469341 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.470087 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.473403 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.474076 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.474686 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.474873 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.476165 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 4], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.476708 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 4 D, [2015-08-02T09:32:07.477336 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.477505 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.478469 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 4], ["polytag_type", "SpecialTag"], ["taggable_id", 3], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.478867 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 3 D, [2015-08-02T09:32:07.479469 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.479617 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.480101 #5788] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:07.480568 #5788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:07.481146 #5788] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:07.482823 #5788] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 4], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.483310 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.483835 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.484454 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.484706 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.485188 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.485805 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.486039 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.486493 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:07.487108 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.487477 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.488074 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:07.488723 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.489049 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.489756 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 2], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.490437 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.490754 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.491386 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.492091 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.492552 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.493476 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 6], ["taggable_type", "Post"]] D, [2015-08-02T09:32:07.494014 #5788] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:07.494452 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 6 D, [2015-08-02T09:32:07.495094 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.495438 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.496145 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 6], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.497022 #5788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 7]] D, [2015-08-02T09:32:07.497775 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:07.498437 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.500726 #5788] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') WHERE "posts"."author_id" = ? [["author_id", 2]] D, [2015-08-02T09:32:07.501576 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.502175 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.502776 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.503069 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.503586 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.504227 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.504482 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.504991 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.505631 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.506425 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.507024 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.507669 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.507805 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.508810 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.509190 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:07.509768 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.509907 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.510661 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.510981 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:07.511587 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.512115 #5788] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:07.513124 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:07.513809 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.514306 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.514867 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.515097 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.515508 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.516052 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.516291 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.516821 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.517395 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.517940 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.518393 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.519001 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.519136 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.520117 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.520559 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:07.521118 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.521263 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.522059 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 10], ["polytag_type", "SpecialTag"], ["taggable_id", 10], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.522396 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 10 D, [2015-08-02T09:32:07.523007 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.523381 #5788] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 10]] D, [2015-08-02T09:32:07.524277 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (10) D, [2015-08-02T09:32:07.525617 #5788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (11, 10) D, [2015-08-02T09:32:07.526404 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.526892 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.527490 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.527794 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.528370 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.529072 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.529372 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.529963 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.530544 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.531763 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.532244 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 11], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.532865 #5788] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:07.533438 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:07.534036 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.534479 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.534995 #5788] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 13]] D, [2015-08-02T09:32:07.535830 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (13) D, [2015-08-02T09:32:07.536356 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.536929 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.537564 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.537810 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.538244 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.538814 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.539055 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.539526 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.540090 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.540682 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.541126 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.541717 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.541858 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.542872 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.543255 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:07.543861 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.544002 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.544815 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.545147 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:07.545748 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.546466 #5788] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.547060 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.547604 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.548159 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.548489 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.549101 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.549723 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.550022 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.550644 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.551340 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.552108 #5788] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:07.552744 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.553417 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.553569 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.554697 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 17], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.555107 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 17 D, [2015-08-02T09:32:07.555713 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.555880 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.556770 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 15], ["polytag_type", "SpecialTag"], ["taggable_id", 16], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.557114 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 16 D, [2015-08-02T09:32:07.557758 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.558306 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 15], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.558837 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.559364 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.559967 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.560227 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.560693 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.561309 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.561582 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.562063 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.562727 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.563398 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.563957 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.564548 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.564838 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.565392 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.566098 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.566937 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.567838 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.568347 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 17], ["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.569477 #5788] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 21 D, [2015-08-02T09:32:07.570292 #5788] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:07.570790 #5788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:07.571591 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 21], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.572120 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.572685 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.573305 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.573577 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.574085 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.574698 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.575026 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.575646 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.576314 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.576693 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.577523 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.578175 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.578555 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.579146 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.579730 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.579989 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.580488 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.581052 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.581317 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.581829 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.582429 #5788] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:07.582954 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.583745 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:07.584733 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 24], ["taggable_type", "Post"]] D, [2015-08-02T09:32:07.585236 #5788] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 24 D, [2015-08-02T09:32:07.585911 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.586437 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.586972 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.587615 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.588267 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.588579 #5788] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:07.589130 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.589790 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.590097 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.590665 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:07.591330 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.591913 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.593123 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 23], ["polytag_type", "SpecialTag"], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.593578 #5788] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:07.594222 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.594622 #5788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:07.595405 #5788] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.595816 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 23], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:07.596921 #5788] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:07.597835 #5788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:07.598483 #5788] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:07.599195 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.599920 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.600412 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.601226 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:07.601932 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.603253 #5788] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:07.604100 #5788] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:07.604655 #5788] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 24], ["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:07.605319 #5788] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 27 D, [2015-08-02T09:32:07.606030 #5788] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:07.606562 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 24]] D, [2015-08-02T09:32:07.607129 #5788] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 27]] D, [2015-08-02T09:32:07.607761 #5788] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 27], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.668582 #5795] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:32:08.669869 #5795] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:08.671413 #5795] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:08.674042 #5795] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:08.675052 #5795] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:08.675807 #5795] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:08.676710 #5795] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:08.677415 #5795] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:08.721699 #5795] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:08.723505 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.724352 #5795] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:08.726786 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.727536 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.728135 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.728526 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.730267 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.730880 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.736668 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.737210 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.737843 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.737968 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.741979 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.742685 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:08.743249 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.743417 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.744290 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.744663 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:08.745211 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.745337 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.745676 #5795] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:08.746499 #5795] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:08.746879 #5795] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:08.748653 #5795] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.749165 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.749726 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.750271 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.750570 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.751044 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.751601 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.753184 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.753825 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:08.754392 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.755013 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.755561 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:08.756150 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.756410 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.756908 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.757547 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.757808 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.758288 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.758945 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.759560 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.761034 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:08.761446 #5795] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:08.761871 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:08.762461 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.762854 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.763706 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.764374 #5795] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:08.764910 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:08.765534 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.767057 #5795] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:08.767660 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.768268 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.768911 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.769194 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.769658 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.770272 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.770569 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.771133 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.771762 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.772380 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.772893 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.773497 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.773638 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.774541 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.774983 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:08.775539 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.775693 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.776386 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.776758 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:08.777417 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.777833 #5795] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:08.779265 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:08.779970 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.780531 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.781167 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.781428 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.781891 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.782439 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.782701 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.783177 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.783740 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.784346 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.784863 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.785413 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.785558 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.786554 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.786992 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:08.787527 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.787673 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.788332 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.788680 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:08.789219 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.789526 #5795] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:08.790570 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:08.791923 #5795] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:08.792700 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.793148 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.793676 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.793893 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.794254 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.794827 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.795027 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.795450 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.796019 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.796693 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.797120 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.797554 #5795] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:08.797997 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:08.798536 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.798872 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.799218 #5795] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:08.800064 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:08.800490 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.800979 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.801531 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.801827 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.802279 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.802956 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.803245 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.803692 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.804153 #5795] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:08.804705 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.805120 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.805737 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.805883 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.806776 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.807196 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:08.807741 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.807862 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.808509 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.808857 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:08.809394 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.809992 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.810506 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.810935 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.811478 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.811688 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.812059 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.812605 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.812923 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.813349 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.813858 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.814508 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.814948 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.815452 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.815598 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.816490 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.816873 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:08.817452 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.817596 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.818265 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.818622 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:08.819183 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.819650 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.820097 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.820520 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.821072 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.821282 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.821651 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.822167 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.822411 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.822812 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.823344 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.823941 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.824351 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.824911 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.825111 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.825470 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.825968 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.826623 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.827352 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.827717 #5795] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.828767 #5795] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:08.829479 #5795] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:08.829887 #5795] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:08.830389 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.830791 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.831246 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.831784 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.831987 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.832365 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.832886 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.833111 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.833550 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.834099 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.834371 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.834938 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.835523 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.835862 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.836348 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.836832 #5795] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:08.837064 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.837451 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.837979 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.838208 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.838647 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.839185 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.839640 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.840272 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:08.841059 #5795] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:08.841504 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:08.842171 #5795] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:08.842595 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.843000 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.843415 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.843975 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.844196 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.844549 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.845073 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.845304 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.845925 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:08.846483 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.846944 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.847792 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.848274 #5795] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:08.848771 #5795] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:08.849227 #5795] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:08.850010 #5795] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.850396 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:08.851074 #5795] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:08.851578 #5795] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:08.852037 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.852578 #5795] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.853108 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.853362 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.853804 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:08.854373 #5795] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:08.855073 #5795] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:08.855656 #5795] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:08.856040 #5795] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:08.856537 #5795] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:08.857295 #5795] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:08.857658 #5795] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:08.858063 #5795] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:08.858432 #5795] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:09.929695 #5799] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:09.930970 #5799] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:09.932521 #5799] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:32:09.935264 #5799] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:09.936256 #5799] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:09.936991 #5799] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:09.937908 #5799] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:09.938607 #5799] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:09.982296 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:09.984122 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:09.986903 #5799] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:32:09.989605 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:09.990368 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:09.991073 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:09.991518 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:09.993551 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:09.994240 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.000830 #5799] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:10.001643 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.002390 #5799] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:10.002645 #5799] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:10.006908 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.007559 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:10.008186 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.008422 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.009425 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.009921 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:10.010577 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.010702 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.010959 #5799] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:10.011739 #5799] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:10.012136 #5799] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:10.013602 #5799] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.014089 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.014572 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.015183 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.015475 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.015942 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.016591 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.018054 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.018639 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:10.019179 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.019968 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.020681 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:10.021369 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.021637 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.022185 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.022650 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.022897 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.023318 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.023773 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.024311 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.025765 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:10.026183 #5799] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:10.026623 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:10.027189 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.027568 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.028375 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.029094 #5799] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:10.029637 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:10.030264 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.031699 #5799] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:10.032265 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.032766 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.033395 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.033653 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.034072 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.034606 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.034876 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.035427 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.035967 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.036528 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.036940 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.037524 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.037706 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.038833 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.039421 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:10.040090 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.040259 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.040970 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.041402 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:10.041947 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.042331 #5799] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:10.043657 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:10.044327 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.044840 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.045510 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.045844 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.046301 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.046834 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.047090 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.047568 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.048042 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.048622 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.049078 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.049702 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.049846 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.050717 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.051152 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:10.051769 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.051944 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.052672 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.053153 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:10.053713 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.054095 #5799] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:10.055228 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:10.056619 #5799] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:10.057450 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.057957 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.058646 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.058906 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.059332 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.059876 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.060092 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.060530 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.061039 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.061735 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.062156 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.062591 #5799] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:10.063043 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:10.063600 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.063942 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.064287 #5799] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:10.065285 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:10.065755 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.066241 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.066850 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.067072 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.067483 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.067980 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.068274 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.068793 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.069401 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.070036 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.070480 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.070945 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.071102 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.072075 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.072520 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:10.073038 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.073181 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.073882 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.074273 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:10.074874 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.075485 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.075981 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.076421 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.077009 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.077228 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.077610 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.078205 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.078427 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.078853 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.079388 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.079908 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.080334 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.080899 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.081026 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.081823 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.082242 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:10.082770 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.082928 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.083594 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.083948 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:10.084503 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.084931 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.085393 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.085826 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.086426 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.086637 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.087011 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.087567 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.087820 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.088234 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.088839 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.089491 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.089917 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.090485 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.090689 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.091060 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.091633 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.092302 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.093055 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.093449 #5799] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.094542 #5799] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:10.095345 #5799] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:10.095900 #5799] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:10.096515 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.097013 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.097550 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.098197 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.098451 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.098953 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.099591 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.099833 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.100288 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.100790 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.101204 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.102002 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.102611 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.103017 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.103697 #5799] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.104292 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.104572 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.105052 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.105567 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.105908 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.106389 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.106913 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.107403 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.108077 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:10.108904 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:10.109484 #5799] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:10.110125 #5799] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:10.110704 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.111164 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.111668 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.112141 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.112389 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.112775 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.113192 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.113435 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.113869 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:10.114346 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.114896 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.115860 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.116321 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:10.116848 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.117217 #5799] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:10.117935 #5799] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.118302 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:10.118864 #5799] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:10.119368 #5799] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:10.119769 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.120234 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.120743 #5799] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:10.121005 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.121432 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:10.121904 #5799] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:10.122482 #5799] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:10.122984 #5799] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:10.123373 #5799] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:10.123823 #5799] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:10.124495 #5799] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:10.124815 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:10.125215 #5799] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:10.125604 #5799] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.200244 #5803] DEBUG -- :  (2.4ms) DROP TABLE "authors" D, [2015-08-02T09:32:11.201823 #5803] DEBUG -- :  (1.3ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:11.203219 #5803] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:32:11.205946 #5803] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:11.206957 #5803] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:11.207701 #5803] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:11.208648 #5803] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:11.209344 #5803] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:11.255570 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.257494 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.259856 #5803] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:11.261791 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.262413 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.262966 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.263324 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.264787 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.265359 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.270967 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.271525 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.272108 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.272245 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.276532 #5803] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.277247 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:11.277864 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.278037 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.278969 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.279370 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:11.280002 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.280126 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.280393 #5803] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:11.281168 #5803] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:11.281535 #5803] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:11.284041 #5803] DEBUG -- :  (0.3ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.284664 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.285307 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.286136 #5803] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:11.286511 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.287177 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.287808 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.289280 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.289865 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:11.290490 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.291081 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.291611 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:11.292399 #5803] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:11.292945 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.293981 #5803] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.294817 #5803] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:11.295246 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.295814 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.296535 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.297127 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.298607 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:11.299207 #5803] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:11.299889 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:11.300763 #5803] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:11.301195 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.302384 #5803] DEBUG -- : SQL (0.5ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.303127 #5803] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:11.303753 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:11.307857 #5803] DEBUG -- :  (3.9ms) commit transaction D, [2015-08-02T09:32:11.309772 #5803] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:11.310440 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.311024 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.315268 #5803] DEBUG -- :  (4.0ms) commit transaction D, [2015-08-02T09:32:11.316004 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.317003 #5803] DEBUG -- : SQL (0.3ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.323681 #5803] DEBUG -- :  (6.2ms) commit transaction D, [2015-08-02T09:32:11.324245 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.325241 #5803] DEBUG -- : SQL (0.5ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.325961 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.326738 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.327305 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.327972 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.328147 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.329348 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.329851 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:11.330483 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.330645 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.331578 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.332026 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:11.332564 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.332915 #5803] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:11.334246 #5803] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:11.335003 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.335562 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.336170 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.336489 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.336906 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.337367 #5803] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:11.337622 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.338045 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.338440 #5803] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:11.338950 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.339353 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.339782 #5803] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:11.339897 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.340772 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.341177 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:11.341621 #5803] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:11.341739 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.342464 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.342834 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:11.343353 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.343655 #5803] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:11.344722 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:11.346119 #5803] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:11.346921 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.347381 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.347986 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.348292 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.348782 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.349415 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.349719 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.350196 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.350797 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.351596 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.352081 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.352624 #5803] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:11.353142 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:11.353726 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.354107 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.354490 #5803] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:11.355373 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:11.355810 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.356250 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.356832 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.357050 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.357412 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.357999 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.358320 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.358919 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.359545 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.360225 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.360804 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.361429 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.361581 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.362778 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.363265 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:11.364009 #5803] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:11.364193 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.365126 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.365532 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:11.366163 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.366932 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.367452 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.367909 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.368423 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.368668 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.369057 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.369592 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.369850 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.370259 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.370796 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.371313 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.371712 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.372229 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.372347 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.373177 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.373553 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:11.374114 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.374240 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.374963 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.375303 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:11.375838 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.376236 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.376640 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.377034 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.377566 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.377766 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.378138 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.378727 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.378980 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.379372 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.379934 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.380501 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.380912 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.381473 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.381708 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.382081 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.382644 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.383340 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.384192 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.384644 #5803] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.385799 #5803] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:11.386411 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.386794 #5803] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:11.387319 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.387725 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.388158 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.388715 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.388914 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.389262 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.389833 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.390064 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.390472 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.391003 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.391254 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.391822 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.392366 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.392679 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.393087 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.393662 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.393866 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.394215 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.394866 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.395540 #5803] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:11.396373 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.397039 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.397596 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.398363 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:11.399263 #5803] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:11.399764 #5803] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:11.400461 #5803] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:11.400938 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.401408 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.401931 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.402616 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.402881 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.403315 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.403902 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.404158 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.404601 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:11.405180 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.405623 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.406603 #5803] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.407111 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:11.407752 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.408100 #5803] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:11.408732 #5803] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.409034 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:11.409556 #5803] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:11.410014 #5803] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:11.410432 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.410877 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.411436 #5803] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:11.411700 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.412098 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:11.412722 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.413323 #5803] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:11.413808 #5803] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:11.414163 #5803] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:11.414599 #5803] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:11.415229 #5803] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:11.415535 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:11.415889 #5803] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:11.416269 #5803] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.543363 #5808] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:12.544212 #5808] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:12.545128 #5808] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:32:12.547086 #5808] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:12.547910 #5808] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:32:12.548565 #5808] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:12.549396 #5808] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:32:12.550077 #5808] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:12.593460 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.595468 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.598340 #5808] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:32:12.602107 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.602950 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.603713 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.604233 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.606454 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.607097 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.614520 #5808] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:12.615429 #5808] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.616444 #5808] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:12.616743 #5808] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:12.622341 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.623083 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:12.623688 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.623872 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.625026 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.625549 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:12.626222 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.626404 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.626737 #5808] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:12.627736 #5808] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:12.628260 #5808] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:12.630061 #5808] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.630629 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.631247 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.631960 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.632245 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.632674 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.633290 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.635026 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.635678 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:12.636348 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.637200 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.637851 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:12.638356 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.638669 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.639249 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.639736 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.640004 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.640469 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.640953 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.641595 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.643085 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:12.643687 #5808] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:12.644114 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:12.644865 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.645460 #5808] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:12.646800 #5808] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.647536 #5808] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:12.648148 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:12.649004 #5808] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:12.651493 #5808] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:12.652169 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.652899 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.653681 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.654119 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.654715 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.655324 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.655671 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.656395 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.656989 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.657727 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.658331 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.658951 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.659135 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.660401 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.660878 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:12.661474 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.661629 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.662515 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.662937 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:12.663530 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.663875 #5808] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:12.665140 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:12.665816 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.666533 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.667133 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.667468 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.667919 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.668492 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.668817 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.669387 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.669903 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.670417 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.670919 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.671416 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.671570 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.672546 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.672951 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:12.673442 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.673606 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.674439 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.674832 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:12.675419 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.675712 #5808] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:12.676667 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:12.678234 #5808] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:12.679191 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.679798 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.680380 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.680649 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.681095 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.681622 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.681842 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.682301 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.682774 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.683830 #5808] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:12.684449 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.685006 #5808] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:12.685498 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:12.686101 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.686570 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.687056 #5808] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:12.688282 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:12.688850 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.689466 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.690096 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.690382 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.690849 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.691385 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.691715 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.692294 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.692908 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.693600 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.694100 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.694767 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.694921 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.696360 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.696998 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:12.697836 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.698036 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.699246 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.699756 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:12.700446 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.701190 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.701803 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.702352 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.702976 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.703276 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.703776 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.704330 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.704601 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.705124 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.705647 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.706291 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.706831 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.707363 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.707506 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.708491 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.708950 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:12.709457 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.709606 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.710426 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.710802 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:12.711357 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.711819 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.712297 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.712803 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.713305 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.713581 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.714002 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.714465 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.714740 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.715162 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.715689 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.716366 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.716797 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.717259 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.717580 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.718033 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.718511 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.719274 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.720116 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.720491 #5808] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.721475 #5808] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:12.722173 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.722620 #5808] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:12.723183 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.723674 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.724197 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.724657 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.724892 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.725318 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.725757 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.726012 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.726501 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.726963 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.727293 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.727959 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.728467 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.728823 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.729280 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.729778 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.729996 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.730385 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.730841 #5808] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:12.731067 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.731598 #5808] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.732128 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.732644 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.733350 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:12.734280 #5808] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:12.734732 #5808] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:12.735472 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.735900 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.736325 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.736759 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.737280 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.737503 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.737879 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.738398 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.738628 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.739049 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:12.739650 #5808] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:12.740173 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.741222 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.741698 #5808] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:12.742202 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.742617 #5808] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:12.743314 #5808] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.743649 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:12.744196 #5808] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:12.744739 #5808] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:12.745166 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.745692 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.746253 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.746481 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.746875 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:12.747420 #5808] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:12.748178 #5808] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:12.748769 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:12.749193 #5808] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:12.749773 #5808] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:12.750479 #5808] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:12.750867 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:12.751309 #5808] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:12.751747 #5808] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.847326 #5817] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:32:13.848191 #5817] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:13.849224 #5817] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:32:13.851164 #5817] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:13.852049 #5817] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:13.852654 #5817] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:13.853539 #5817] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:13.854059 #5817] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:13.900402 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:13.902190 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.904796 #5817] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:13.907010 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.907664 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.908326 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.908636 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.910058 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.910680 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.916439 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.917009 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.917601 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.917752 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.923592 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.924253 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:13.924965 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.925110 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.925953 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.926321 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:13.926932 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.927049 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.927313 #5817] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:13.928236 #5817] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:13.928760 #5817] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:13.930547 #5817] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:13.931092 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.931650 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.932604 #5817] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:13.933140 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:13.933907 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.934771 #5817] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:13.937123 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:13.937902 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:13.938545 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.939324 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.940026 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:13.940626 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.940939 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.941528 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.942104 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.942425 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.942930 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.943669 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.944443 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:13.946308 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:13.946788 #5817] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:13.947291 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:13.948013 #5817] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:13.948307 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.948965 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.949527 #5817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:13.950014 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:13.950542 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.951798 #5817] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:13.952281 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.952707 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.953345 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.953576 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.953954 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.954574 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.954835 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.955302 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.955871 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.956417 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.956847 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.957398 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.957530 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.958455 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.958919 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:13.959499 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.959637 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.960419 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.960790 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:13.961336 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.961713 #5817] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:13.962834 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:13.963458 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.963915 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.964527 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.964746 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.965111 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.965638 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.965872 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.966271 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.966849 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.967368 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.967793 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.968397 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.968560 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.969685 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.970118 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:13.970702 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.970852 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.971716 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.972116 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:13.972700 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.973028 #5817] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:13.974137 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:13.975577 #5817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:13.976414 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.976874 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.977438 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.977652 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.978023 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.978549 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.978756 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.979153 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.979687 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.980333 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.980743 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.981177 #5817] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:13.981590 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:13.982175 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.982498 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.982853 #5817] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:13.983693 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:13.984100 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.984566 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.985100 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.985358 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.985903 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.986591 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.986851 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.987285 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.987795 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.988439 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.988914 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.989396 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:13.989546 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.990597 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.991030 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:13.991651 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.991832 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.992842 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:13.993328 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:13.993991 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:13.994761 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:13.995348 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.995883 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:13.996491 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.996752 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.997190 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:13.997762 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:13.998035 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:13.998521 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:13.999135 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.000339 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:14.001277 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.001980 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.002182 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.003463 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.003929 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:14.004738 #5817] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:14.005113 #5817] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:14.006746 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.007291 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:14.007972 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.008488 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:14.009017 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.009504 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.010099 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.010394 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.010853 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.011400 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.011807 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.012396 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.013017 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.013781 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.014259 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.014865 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.015173 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.015689 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.016220 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.017035 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.017900 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.018273 #5817] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.019369 #5817] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:14.019908 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.020282 #5817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:14.020776 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.021230 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.021693 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.022139 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.022388 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.022801 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.023244 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.023497 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.023952 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:14.024417 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.024704 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.025283 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:14.025847 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.026202 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.026723 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.027206 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.027418 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.027786 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.028249 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.028485 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.028906 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:14.029381 #5817] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:14.029830 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.030465 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:14.031357 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:14.031801 #5817] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:14.032344 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.032778 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:14.033245 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.033711 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.034359 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.034683 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.035136 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.035646 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.035875 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.036283 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:14.036808 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.037262 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.038152 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.038578 #5817] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:14.039171 #5817] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:14.039684 #5817] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:14.040522 #5817] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:14.040924 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:14.041563 #5817] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:14.042153 #5817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:14.042630 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.043157 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.043835 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.044161 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.044709 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:14.045386 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.046246 #5817] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:14.046936 #5817] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:14.047501 #5817] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:14.048353 #5817] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:14.049037 #5817] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:14.049513 #5817] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:14.049957 #5817] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:14.050385 #5817] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.130311 #5821] DEBUG -- :  (0.9ms) DROP TABLE "authors" D, [2015-08-02T09:32:15.131461 #5821] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:15.133053 #5821] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:15.135624 #5821] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:15.136612 #5821] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:15.137354 #5821] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:15.138241 #5821] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:15.138946 #5821] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:15.181932 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.183779 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.186545 #5821] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:32:15.190152 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.191008 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.191699 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.192164 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.194064 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.194767 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.201631 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.202351 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.203117 #5821] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:15.203316 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.208966 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.209741 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:15.210821 #5821] DEBUG -- :  (0.9ms) commit transaction D, [2015-08-02T09:32:15.211155 #5821] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:15.212887 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.213705 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:15.214671 #5821] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:15.214843 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.215198 #5821] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:15.216191 #5821] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:15.216740 #5821] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:15.218867 #5821] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.219538 #5821] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:15.220213 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.220846 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.221148 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.221619 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.222096 #5821] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:15.223883 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.224491 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:15.225096 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.225793 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.226407 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:15.226954 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.227244 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.227771 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.228390 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.228656 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.229121 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.229659 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.230238 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.231658 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:15.232069 #5821] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:15.232474 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:15.233068 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.233430 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.234205 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.234872 #5821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:15.235438 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:15.236024 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.237496 #5821] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:15.238059 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.238593 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.239201 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.239496 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.240000 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.240647 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.240969 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.241508 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.242151 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.242840 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.243360 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.243925 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.244078 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.245236 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.245694 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:15.246283 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.246428 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.247314 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.247709 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:15.248201 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.248534 #5821] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:15.249692 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:15.250307 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.250753 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.251298 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.251543 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.251984 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.252533 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.252790 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.253296 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.253884 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.254565 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.255063 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.255764 #5821] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:15.255899 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.256870 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.257293 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:15.257885 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.258015 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.258764 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.259121 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:15.259646 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.259964 #5821] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:15.261048 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:15.262450 #5821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:15.263214 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.263664 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.264232 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.264516 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.264984 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.265587 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.265854 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.266319 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.266890 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.267644 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.268152 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.268691 #5821] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:15.269278 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:15.269874 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.270297 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.270645 #5821] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:15.271554 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:15.272030 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.272495 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.272968 #5821] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:15.273236 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.273595 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.274193 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.274485 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.274918 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.275480 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.276141 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.276617 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.277181 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.277332 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.278323 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.278740 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:15.279313 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.279441 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.280196 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.280539 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:15.281095 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.281694 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.282150 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.282578 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.283122 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.283346 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.283712 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.284258 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.284502 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.284901 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.285604 #5821] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:15.286242 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.286933 #5821] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.292629 #5821] DEBUG -- :  (5.5ms) commit transaction D, [2015-08-02T09:32:15.292935 #5821] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:15.294554 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.295174 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:15.299547 #5821] DEBUG -- :  (4.1ms) commit transaction D, [2015-08-02T09:32:15.299859 #5821] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:15.301303 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.301884 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:15.307259 #5821] DEBUG -- :  (5.2ms) commit transaction D, [2015-08-02T09:32:15.308014 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.308678 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.309568 #5821] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.310277 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.310602 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.311140 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.311833 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.312196 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.312725 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.313334 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.314131 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.314658 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.315203 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.315502 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.316012 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.316609 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.317432 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.318376 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.318854 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.319863 #5821] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:15.320472 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.320806 #5821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:15.321315 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.321706 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.322098 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.322677 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.322891 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.323244 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.323801 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.324111 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.324616 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.325208 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.325467 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.326086 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.326637 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.326958 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.327362 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.327937 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.328172 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.328528 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.329006 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.329233 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.329629 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.330209 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.330650 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.331288 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:15.332199 #5821] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:15.332634 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:15.333398 #5821] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:15.333869 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.334312 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.334787 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.335344 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.335571 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.335993 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.336517 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.336757 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.337189 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:15.337792 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.338242 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.339129 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.339533 #5821] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:15.340185 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.340522 #5821] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:15.341145 #5821] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.341462 #5821] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:15.341959 #5821] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:15.342435 #5821] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:15.343114 #5821] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:15.343849 #5821] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.344489 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.344787 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.345201 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:15.345789 #5821] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:15.346660 #5821] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:15.347301 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:15.347746 #5821] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:15.348354 #5821] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:15.349002 #5821] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:15.349384 #5821] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:15.349823 #5821] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:15.350212 #5821] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.464056 #5825] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:16.465326 #5825] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:16.466892 #5825] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:16.469679 #5825] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:16.470663 #5825] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:16.471472 #5825] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:16.472408 #5825] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:16.473146 #5825] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:16.519328 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.521113 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.523658 #5825] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:16.525954 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.526652 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.527231 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.527584 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.529073 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.529688 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.535626 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.536238 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.536883 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.537034 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.542680 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.543358 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:16.543942 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.544099 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.544979 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.545339 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:16.545961 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.546075 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.546320 #5825] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:16.547085 #5825] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:16.547575 #5825] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:16.549020 #5825] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.549501 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.550042 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.550647 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.550925 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.551444 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.552040 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.553708 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.554228 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:16.554724 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.555256 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.555747 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:16.556201 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.556425 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.556868 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.557357 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.557580 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.557979 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.558503 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.559120 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.560681 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:16.561111 #5825] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:16.561505 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:16.562082 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.562373 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.563014 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.563566 #5825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:16.563984 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:16.564764 #5825] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:16.566267 #5825] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:16.566861 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.567375 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.567987 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.568276 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.568776 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.569394 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.569682 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.570245 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.570865 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.571485 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.571995 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.572569 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.572727 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.573808 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.574260 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:16.574854 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.575000 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.575837 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.576249 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:16.576749 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.577071 #5825] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:16.578271 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:16.578861 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.579304 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.579862 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.580075 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.580443 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.580967 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.581182 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.581599 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.582277 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.582783 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.583203 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.583766 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.583906 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.584947 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.585410 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:16.585979 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.586138 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.586978 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.587356 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:16.587951 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.588256 #5825] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:16.589319 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:16.590831 #5825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:16.591608 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.592087 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.592730 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.593208 #5825] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:16.593894 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.594619 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.595034 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.595764 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.596477 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.597305 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.597820 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.598361 #5825] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:16.598882 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:16.599473 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.599926 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.600315 #5825] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:16.601324 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:16.601860 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.602516 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.603137 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.603402 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.603876 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.604418 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.604695 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.605172 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.605667 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.606217 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.606643 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.607175 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.607310 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.608463 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.608954 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:16.609622 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.609795 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.610735 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.611175 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:16.611725 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.612452 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.613030 #5825] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:16.613588 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.614270 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.614522 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.614905 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.615401 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.615631 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.616069 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.616611 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.617130 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.617543 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.618077 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.618201 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.619055 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.619433 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:16.619964 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.620101 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.620813 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.621166 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:16.621760 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.622173 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.622591 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.622996 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.623586 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.623820 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.624213 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.624764 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.625037 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.625426 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.625985 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.626563 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.626983 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.627511 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.627738 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.628149 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.628716 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.629423 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.630178 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.630526 #5825] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.631589 #5825] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:16.632409 #5825] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:16.632973 #5825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:16.633790 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.634359 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.634973 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.635600 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.635938 #5825] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:16.636520 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.637228 #5825] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:16.637546 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.638043 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.638554 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.638960 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.639968 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.640572 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.641080 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.641724 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.642232 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.642454 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.642957 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.643400 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.643624 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.644117 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.644563 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.645135 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.645840 #5825] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:16.646795 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:16.647317 #5825] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:16.647812 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.648286 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.648700 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.649173 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.649585 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.649829 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.650234 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.650627 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.650863 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.651295 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:16.651705 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.652183 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.653057 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.653483 #5825] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:16.653986 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.654364 #5825] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:16.655000 #5825] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.655306 #5825] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:16.655826 #5825] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:16.656419 #5825] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:16.656804 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.657284 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.657773 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.658009 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.658437 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:16.658908 #5825] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:16.659528 #5825] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:16.660042 #5825] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:16.660398 #5825] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:16.660916 #5825] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:16.661449 #5825] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:16.661773 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:16.662153 #5825] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:16.662543 #5825] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.844441 #5829] DEBUG -- :  (2.2ms) DROP TABLE "authors" D, [2015-08-02T09:32:17.845366 #5829] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:17.846702 #5829] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:32:17.849061 #5829] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:17.849943 #5829] DEBUG -- :  (0.4ms) DROP TABLE "taggings" D, [2015-08-02T09:32:17.850571 #5829] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:17.851396 #5829] DEBUG -- :  (0.4ms) DROP TABLE "tags" D, [2015-08-02T09:32:17.851980 #5829] DEBUG -- :  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:17.897421 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.899210 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.901487 #5829] DEBUG -- :  (2.1ms) commit transaction D, [2015-08-02T09:32:17.904542 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.905351 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.905857 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.906322 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.908020 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.908679 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:17.916777 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.917450 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.918107 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:17.918282 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.923936 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.924584 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:17.925106 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.925283 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.926299 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.926748 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:17.927202 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.927333 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.927637 #5829] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:17.928517 #5829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:17.928941 #5829] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:17.930457 #5829] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:17.930940 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.931495 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.932083 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.932435 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.932976 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.933575 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.935358 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.936173 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:17.936853 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:17.937743 #5829] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:17.938772 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:17.939371 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.939732 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.940396 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.940873 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.941182 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.941717 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.942281 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.942987 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.944856 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:17.945338 #5829] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:17.945827 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:17.946354 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.946645 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.947261 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.947827 #5829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:17.948311 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:17.948830 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.950244 #5829] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:17.950854 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.951459 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.951998 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.952272 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.952726 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.953224 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.953490 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.953968 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.954425 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.955023 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.955496 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.956051 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.956220 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.957330 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.957806 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:17.958331 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.958513 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.959814 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.960282 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:17.960809 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.961192 #5829] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:17.962430 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:17.963066 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.963584 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.964095 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.964338 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.964743 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.965220 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.965485 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.965942 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.966398 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.967026 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.967529 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.967976 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.968129 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.969111 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.969530 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:17.970123 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:17.970299 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.971345 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.971836 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:17.972506 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.973221 #5829] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:17.974358 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:17.975788 #5829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:17.976542 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.977003 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.977559 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.977816 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.978285 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.978871 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.979195 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.979686 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.980213 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.980978 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.981440 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.981921 #5829] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:17.982642 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:17.983174 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.983638 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.984128 #5829] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:17.985314 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:17.985942 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.986564 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.987037 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.987285 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.987709 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.988158 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.988395 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.988828 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.989282 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.989863 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.990435 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.990891 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.991034 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.992133 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.992615 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:17.993090 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:17.993222 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.994092 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:17.994478 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:17.994992 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.995627 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:17.996114 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.996685 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:17.997242 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.997480 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.997866 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:17.998390 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:17.998652 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:17.999161 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:17.999650 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.000355 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.000949 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.001423 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.001581 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.002594 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.003061 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:18.003711 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:18.003875 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.004847 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.005297 #5829] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:18.005902 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.006507 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:18.007075 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.007724 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.008330 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.008643 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.009217 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.009834 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.010177 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.010710 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.011267 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.012092 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.012637 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.013188 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.013447 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.013923 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.014468 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.015410 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.016421 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.016886 #5829] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.017867 #5829] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:18.018540 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:18.019142 #5829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:18.019811 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.020249 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.020749 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.021235 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.021496 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.021897 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.022411 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.022677 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.023134 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:18.023621 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.023912 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.024538 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:18.024991 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.025328 #5829] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:18.025783 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.026251 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.026500 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.026901 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.027415 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.027652 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.028089 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:18.028597 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.029070 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.029756 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:18.030970 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:18.031483 #5829] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:18.031940 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.032377 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:18.032759 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.033211 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.033588 #5829] DEBUG -- :  (0.2ms) commit transaction D, [2015-08-02T09:32:18.033797 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.034171 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.034568 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.034807 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.035268 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:18.035757 #5829] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:18.036808 #5829] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:18.038835 #5829] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.039830 #5829] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:18.040608 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:18.041166 #5829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:18.042091 #5829] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:18.042531 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:18.043742 #5829] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:18.044478 #5829] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:18.044968 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.045510 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.046031 #5829] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:18.046413 #5829] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:18.046850 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:18.047570 #5829] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:18.048559 #5829] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:18.049393 #5829] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:18.049999 #5829] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:18.050767 #5829] DEBUG -- : SQL (0.3ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:18.051537 #5829] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:18.052030 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:18.052455 #5829] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:18.052875 #5829] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.225393 #5836] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:32:19.226334 #5836] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:19.227388 #5836] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:32:19.229828 #5836] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:19.230771 #5836] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:19.231570 #5836] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:19.232445 #5836] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:19.233163 #5836] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:19.278723 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.280628 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.283209 #5836] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:19.285765 #5836] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:19.286939 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.287885 #5836] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:19.288319 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.290038 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.290556 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.296272 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.297039 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.297744 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.297922 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.303865 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.304630 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:19.305337 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.305495 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.306326 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.306690 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:19.307243 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.307377 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.307632 #5836] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:19.308407 #5836] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:19.308802 #5836] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:19.310276 #5836] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.310745 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.311211 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.311850 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.312090 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.312463 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.313025 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.314411 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.314969 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:19.315558 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.316169 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.316674 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:19.317359 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.317735 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.318385 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.318943 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.319224 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.319744 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.320351 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.321016 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.322835 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:19.323275 #5836] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:19.323726 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:19.324287 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.324543 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.325110 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.325607 #5836] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:19.326011 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:19.326556 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.327748 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:19.328221 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.328683 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.329301 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.329581 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.330094 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.330661 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.330930 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.331402 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.331964 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.332543 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.332972 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.333506 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.333636 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.334578 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.335028 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:19.335577 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.335742 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.336687 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.337122 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:19.337711 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.338064 #5836] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:19.339223 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:19.339885 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.340344 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.340900 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.341118 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.341504 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.342186 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.342416 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.342840 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.343391 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.343935 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.344341 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.344863 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.345027 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.346189 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.346714 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:19.347367 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.347532 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.348463 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.348904 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:19.349503 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.349874 #5836] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:19.351301 #5836] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:19.353228 #5836] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:19.354152 #5836] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:19.354738 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.355433 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.355691 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.356111 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.356723 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.356994 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.357557 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.358119 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.359023 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.359587 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.360205 #5836] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:19.360783 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:19.361424 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.361925 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.362403 #5836] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:19.363582 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:19.364169 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.364836 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.365437 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.365812 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.366344 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.367205 #5836] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:19.367720 #5836] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:19.368640 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.369408 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.370185 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.370729 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.371303 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.371452 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.372580 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.373079 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:19.373711 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.373854 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.374665 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.375058 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:19.375595 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.376236 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.376695 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.377204 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.377780 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.378003 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.378378 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.378887 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.379169 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.379589 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.380110 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.380659 #5836] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:19.381060 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.381595 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.381716 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.382561 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.382959 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:19.383515 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.383647 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.384426 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.384889 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:19.385537 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.386083 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.386650 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.387144 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.387667 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.387922 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.388374 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.389039 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.389320 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.389743 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.390242 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.390871 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.391287 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.391866 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.392060 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.392430 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.392998 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.393684 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.394485 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.394842 #5836] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.395939 #5836] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:19.396756 #5836] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:19.397212 #5836] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:19.397908 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.398475 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.399147 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.399750 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.400005 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.400459 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.400908 #5836] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:19.401174 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.401711 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.402269 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.402635 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.403391 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.403987 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.404422 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.405000 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.405590 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.405806 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.406199 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.406704 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.406965 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.407432 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.407954 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.408467 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.409150 #5836] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:19.410066 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:19.410538 #5836] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:19.411142 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.411585 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.412020 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.412474 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.413012 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.413231 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.413602 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.414114 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.414387 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.414838 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:19.415338 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.415804 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.416683 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.417125 #5836] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:19.417682 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.418034 #5836] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:19.418702 #5836] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.419085 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:19.419618 #5836] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:19.420087 #5836] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:19.420511 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.420978 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.421482 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.421704 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.422081 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:19.422594 #5836] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:19.423185 #5836] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:19.423657 #5836] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:19.424018 #5836] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:19.424508 #5836] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:19.425160 #5836] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:19.425597 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:19.426095 #5836] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:19.426607 #5836] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.615350 #5840] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:32:20.616206 #5840] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:20.617431 #5840] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:32:20.625281 #5840] DEBUG -- :  (3.4ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:20.631961 #5840] DEBUG -- :  (6.2ms) DROP TABLE "taggings" D, [2015-08-02T09:32:20.639771 #5840] DEBUG -- :  (7.3ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:20.641157 #5840] DEBUG -- :  (0.9ms) DROP TABLE "tags" D, [2015-08-02T09:32:20.642055 #5840] DEBUG -- :  (0.7ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:20.687300 #5840] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:20.689323 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.691685 #5840] DEBUG -- :  (2.2ms) commit transaction D, [2015-08-02T09:32:20.693829 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.694479 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.695043 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.695428 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.697539 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.698240 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.704509 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.705391 #5840] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.706080 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.706246 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.711677 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.712340 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:20.712900 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.713067 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.714054 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.714553 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:20.715125 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.715334 #5840] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:20.715706 #5840] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:20.717042 #5840] DEBUG -- : SpecialTag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:20.717847 #5840] DEBUG -- : Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:20.720387 #5840] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.720957 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.721497 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.721994 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.722225 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.722615 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.723089 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.724231 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.724725 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:20.725214 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.725727 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.726241 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:20.726847 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.727214 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.727810 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.728316 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.728577 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.729105 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.729573 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.730133 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.731798 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:20.732451 #5840] DEBUG -- : Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:20.733099 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:20.733675 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.734147 #5840] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:20.735104 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.735847 #5840] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:20.736399 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:20.736925 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.738347 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:20.738836 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.739342 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.739795 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.740049 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.740530 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.741128 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.741460 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.742018 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.742544 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.743155 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.743686 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.744267 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.744428 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.745616 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.746154 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:20.746668 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.746833 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.747729 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.748154 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:20.748561 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.748932 #5840] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:20.750357 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:20.750954 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.751477 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.752037 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.752252 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.752670 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.753220 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.753471 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.753974 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.754471 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.755059 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.755612 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.756145 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.756297 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.757770 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.758488 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:20.759127 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.759390 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.760687 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.761137 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:20.761570 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.761937 #5840] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:20.763119 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:20.764692 #5840] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:20.765538 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.766073 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.766720 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.766989 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.767443 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.767975 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.768211 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.768764 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.769335 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.770104 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.770619 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.771348 #5840] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:20.771884 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:20.772417 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.772927 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.773591 #5840] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:20.774959 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:20.775486 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.776035 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.776555 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.776806 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.777234 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.777714 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.777938 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.778405 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.778883 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.779469 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.779926 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.780457 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.780621 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.781800 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.782654 #5840] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:20.783322 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.783495 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.784970 #5840] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.785801 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:20.786396 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.787197 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.787757 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.788338 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.788862 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.789121 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.789588 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.790031 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.790264 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.790798 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.791307 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.791933 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.792449 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.792985 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.793125 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.794158 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.794651 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:20.795207 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.795346 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.796224 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.796687 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:20.797209 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.797747 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.798255 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.798782 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.799465 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.799800 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.800364 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.800874 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.801314 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.801989 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.802418 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.803089 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.803550 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.803968 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.804167 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.804560 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.804984 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.805694 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.806546 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.806999 #5840] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.808000 #5840] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:20.808628 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.809069 #5840] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:20.809663 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.810082 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.810664 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.811174 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.811398 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.811818 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.812315 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.812656 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.813383 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.813929 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.814324 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.815168 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.815652 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.815995 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.816509 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.817008 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.817231 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.817656 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.818147 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.818381 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.818890 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.819368 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.819894 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.820667 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:20.821754 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:20.822289 #5840] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:20.822947 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.823515 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.823986 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.824638 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.825369 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.825720 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.826291 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.826789 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.827164 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.827817 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:20.828242 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.828800 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.829791 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.830287 #5840] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:20.830739 #5840] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:20.831169 #5840] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:20.831913 #5840] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.832330 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:20.833014 #5840] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:20.833709 #5840] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:20.834219 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.834954 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.835557 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.836113 #5840] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:20.836698 #5840] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:20.837223 #5840] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:20.838002 #5840] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:20.838670 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:20.839143 #5840] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:20.839737 #5840] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:20.840377 #5840] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:20.840809 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:20.841304 #5840] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:20.841822 #5840] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:21.968374 #5845] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:21.969734 #5845] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:21.971243 #5845] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:21.976861 #5845] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:21.977820 #5845] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:21.978573 #5845] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:21.979436 #5845] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:21.980081 #5845] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:22.022531 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.024553 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.027377 #5845] DEBUG -- :  (2.6ms) commit transaction D, [2015-08-02T09:32:22.031191 #5845] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:22.032072 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.032816 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.033254 #5845] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:22.035381 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.036018 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.042405 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.043161 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.043837 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.043963 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.049405 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.050099 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:22.050773 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.051024 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.052385 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.052941 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:22.053598 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.053736 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.054043 #5845] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:22.054996 #5845] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:22.055455 #5845] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:22.057053 #5845] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.057511 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.057985 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.058590 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.058807 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.059196 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.059756 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.061341 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.062074 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:22.062651 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.063322 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.063968 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:22.064518 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.064795 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.065409 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.065904 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.066151 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.066623 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.067178 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.067786 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.070028 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:22.070756 #5845] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:22.071424 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:22.072096 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.072452 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.073295 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.074001 #5845] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:22.074588 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:22.075229 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.076798 #5845] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:22.077333 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.077872 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.078693 #5845] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:22.079214 #5845] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:22.080079 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.080696 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.081016 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.081619 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.082252 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.082811 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.083293 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.083842 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.083982 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.084918 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.085462 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:22.086107 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.086240 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.087039 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.087434 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:22.088008 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.088362 #5845] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:22.089859 #5845] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:22.090684 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.091289 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.091827 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.092082 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.092513 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.093016 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.093309 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.093859 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.094444 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.095060 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.095555 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.096175 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.096321 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.097352 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.097842 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:22.098530 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.098706 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.099685 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.100157 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:22.100697 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.101070 #5845] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:22.102354 #5845] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:22.104436 #5845] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:22.105347 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.105924 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.106485 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.106749 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.107219 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.107814 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.108041 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.108529 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.109008 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.109682 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.110119 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.110624 #5845] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:22.111092 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:22.111696 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.112077 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.112447 #5845] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:22.113337 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:22.113760 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.114221 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.114699 #5845] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:22.114957 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.115381 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.115969 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.116207 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.116652 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.117212 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.117763 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.118248 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.118740 #5845] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:22.118915 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.119955 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.120432 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:22.121013 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.121162 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.121972 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.122358 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:22.122914 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.123666 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.124170 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.124638 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.125213 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.125475 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.125881 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.126390 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.126643 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.127151 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.127664 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.128216 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.128679 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.129186 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.129329 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.130196 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.130629 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:22.131233 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.131379 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.132249 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.132716 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:22.133366 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.133919 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.134349 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.134810 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.135343 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.135565 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.135956 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.136569 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.136937 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.137517 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.138212 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.138894 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.139457 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.139971 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.140237 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.140718 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.141240 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.142042 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.142903 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.143309 #5845] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.144455 #5845] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:22.145140 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.145635 #5845] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:22.146266 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.146692 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.147177 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.147743 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.147971 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.148384 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.148905 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.149136 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.149620 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.150228 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.150526 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.151168 #5845] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.151710 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.152097 #5845] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:22.152615 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.153112 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.153355 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.153846 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.154425 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.154712 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.155291 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.155911 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.156479 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.157224 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:22.158177 #5845] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:22.158692 #5845] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:22.159388 #5845] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:22.159908 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.160350 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.160845 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.161403 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.161690 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.162174 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.162749 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.162988 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.163483 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:22.164004 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.164491 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.165484 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.165979 #5845] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:22.166567 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.166972 #5845] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:22.167834 #5845] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.168353 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:22.168966 #5845] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:22.169528 #5845] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:22.169970 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.170552 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.171103 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.171367 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.171833 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:22.172424 #5845] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:22.173095 #5845] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:22.173629 #5845] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:22.174038 #5845] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:22.174608 #5845] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:22.175263 #5845] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:22.175626 #5845] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:22.176047 #5845] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:22.176484 #5845] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.320686 #5851] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:32:23.321608 #5851] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:23.323036 #5851] DEBUG -- :  (1.0ms) DROP TABLE "posts" D, [2015-08-02T09:32:23.325333 #5851] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:23.326216 #5851] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:32:23.326922 #5851] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:23.327769 #5851] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:32:23.328543 #5851] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:23.375952 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.377932 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.380569 #5851] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:23.383187 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.384049 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.384653 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.385078 #5851] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:23.386898 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.387408 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.395057 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.395804 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.396418 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.396585 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.400205 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.401038 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:23.401648 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.401809 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.402755 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.403194 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:23.403823 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.403983 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.404337 #5851] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:23.405394 #5851] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:23.405928 #5851] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:23.407813 #5851] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.408356 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.408930 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.409492 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.409761 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.410177 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.410783 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.412104 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.412755 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:23.413385 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.414040 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.414698 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:23.415233 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.415521 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.416077 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.416660 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.416904 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.417369 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.417920 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.418501 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.420522 #5851] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:23.421196 #5851] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:23.421740 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:23.422297 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.422595 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.423197 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.423727 #5851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:23.424216 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:23.424817 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.426355 #5851] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:23.426889 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.427397 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.427933 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.428173 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.428598 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.429107 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.429356 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.429798 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.430359 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.430884 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.431335 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.431964 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.432146 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.433075 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.433516 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:23.434107 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.434236 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.435008 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.435396 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:23.435981 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.436319 #5851] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:23.437518 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:23.438105 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.438593 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.439171 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.439399 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.439788 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.440406 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.440717 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.441344 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.442123 #5851] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:23.442932 #5851] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:23.443535 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.444155 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.444303 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.445370 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.445857 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:23.446456 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.446664 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.447944 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.448467 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:23.449051 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.449428 #5851] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:23.450655 #5851] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:23.452708 #5851] DEBUG -- : SpecialPost Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:23.453711 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.454349 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.454944 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.455300 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.455899 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.456565 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.456832 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.457411 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.458022 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.458942 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.459586 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.460251 #5851] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:23.460841 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:23.461454 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.461940 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.462417 #5851] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:23.463501 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:23.463984 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.464530 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.465061 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.465359 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.465761 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.466171 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.466430 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.466895 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.467393 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.468019 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.468745 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.469444 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.469593 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.470582 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.471043 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:23.471535 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.471662 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.472441 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.472838 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:23.473388 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.474130 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.474664 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.475142 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.475732 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.476012 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.476421 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.476904 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.477143 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.477605 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.478128 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.478663 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.479102 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.479746 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.479877 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.480773 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.481208 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:23.481849 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.481991 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.482753 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.483155 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:23.483709 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.484197 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.484656 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.485111 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.485678 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.485919 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.486308 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.486783 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.487043 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.487467 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.488052 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.488655 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.489100 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.489643 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.489861 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.490266 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.490774 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.491485 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.492382 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.492766 #5851] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.493787 #5851] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:23.494539 #5851] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:23.495111 #5851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:23.495811 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.496256 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.496810 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.497403 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.497654 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.498070 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.498664 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.498933 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.499400 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.500035 #5851] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:23.500340 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.501004 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.501513 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.501992 #5851] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:23.502679 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.503286 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.503579 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.504060 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.504641 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.504967 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.505547 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.506104 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.506649 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.507420 #5851] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:23.508381 #5851] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:23.509004 #5851] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:23.509737 #5851] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:23.510269 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.510735 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.511264 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.511793 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.512043 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.512456 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.512936 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.513199 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.513665 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:23.514149 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.514688 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.515680 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.516169 #5851] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:23.516654 #5851] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:23.517087 #5851] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:23.517846 #5851] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.518261 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:23.518924 #5851] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:23.519489 #5851] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:23.519938 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.520460 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.521002 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.521261 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.521736 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:23.522240 #5851] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:23.522917 #5851] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:23.523501 #5851] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:23.523896 #5851] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:23.524454 #5851] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:23.525208 #5851] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:23.525585 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:23.526026 #5851] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:23.526459 #5851] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.610738 #5858] DEBUG -- :  (2.7ms) DROP TABLE "authors" D, [2015-08-02T09:32:24.612000 #5858] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:24.613553 #5858] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:24.619362 #5858] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:24.620907 #5858] DEBUG -- :  (0.8ms) DROP TABLE "taggings" D, [2015-08-02T09:32:24.621602 #5858] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:24.622600 #5858] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:32:24.623373 #5858] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:24.666694 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.668581 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.671140 #5858] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:24.673524 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.674272 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.674931 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.675294 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.676780 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.677419 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.685748 #5858] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:24.686567 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.687567 #5858] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:32:24.687901 #5858] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:24.693138 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.693990 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:24.694715 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.694957 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.696340 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.696971 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:24.697640 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.697806 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.698152 #5858] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:24.699085 #5858] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:24.699579 #5858] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:24.701242 #5858] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.701714 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.702261 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.702861 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.703119 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.703627 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.704244 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.705436 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.705960 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:24.706336 #5858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:24.706930 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.707447 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:24.707971 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.708255 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.708764 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.709236 #5858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:24.709554 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.710112 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.710737 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.711363 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.713272 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:24.713780 #5858] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:24.714280 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:24.714890 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.715180 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.715822 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.716384 #5858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:24.716849 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:24.717474 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.718853 #5858] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:24.719450 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.719955 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.720524 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.720787 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.721233 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.721867 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.722111 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.722577 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.723163 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.723718 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.724162 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.724703 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.724833 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.725734 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.726187 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:24.726744 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.726878 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.727628 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.728020 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:24.728606 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.728955 #5858] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:24.730142 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:24.730723 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.731194 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.731750 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.731971 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.732354 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.732890 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.733115 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.733555 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.734085 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.734623 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.735064 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.735593 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.735719 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.736607 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.737102 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:24.737640 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.737791 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.738679 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.739144 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:24.739802 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.740161 #5858] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:24.741375 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:24.743259 #5858] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:24.744238 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.744854 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.745562 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.745920 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.746490 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.747102 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.747370 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.747934 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.748573 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.749335 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.749892 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.750467 #5858] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:24.751028 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:24.751581 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.752023 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.752490 #5858] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:24.753808 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:24.754304 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.754804 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.755356 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.755604 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.756052 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.756712 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.757009 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.757550 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.758158 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.758715 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.759202 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.759817 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.759952 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.760935 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.761389 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:24.762013 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.762167 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.763019 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.763450 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:24.764104 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.764992 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.765609 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.766254 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.766851 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.767073 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.767477 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.768011 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.768236 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.768681 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.769206 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.769715 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.770157 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.770759 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.770885 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.771799 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.772236 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:24.772851 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.773033 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.774071 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.774625 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:24.775249 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.775806 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.776304 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.776770 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.777353 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.777570 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.777953 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.778523 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.778782 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.779206 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.779773 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.780374 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.780807 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.781388 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.781594 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.781970 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.782540 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.783198 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.784024 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.784401 #5858] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.785467 #5858] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:24.786143 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.786684 #5858] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:24.787366 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.787828 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.788357 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.788961 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.789280 #5858] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:24.789761 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.790351 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.790623 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.791132 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.791805 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.792194 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.793109 #5858] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.793779 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.794214 #5858] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:24.794819 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.795311 #5858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:24.795568 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.796031 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.796536 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.796839 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.797389 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.797887 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.798407 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.799118 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:24.800059 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:24.800560 #5858] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:24.801151 #5858] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:24.801713 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.802218 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.802801 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.803370 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.803648 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.804102 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.804654 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.804875 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.805335 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:24.805814 #5858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:24.806281 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.807166 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.807607 #5858] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:24.808063 #5858] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:24.808423 #5858] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:24.809093 #5858] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.809449 #5858] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:24.809984 #5858] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:24.810497 #5858] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:24.810874 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.811325 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.811876 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.812141 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.812552 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:24.813072 #5858] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:24.813703 #5858] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:24.814246 #5858] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:24.814637 #5858] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:24.815171 #5858] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:24.815850 #5858] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:24.816226 #5858] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:24.816659 #5858] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:24.817088 #5858] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:25.912938 #5862] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:32:25.914227 #5862] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL) D, [2015-08-02T09:32:25.915765 #5862] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:32:25.918510 #5862] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "author_id" integer, "title" varchar(255) NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:25.919494 #5862] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:25.920329 #5862] DEBUG -- :  (0.7ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar(255), "taggable_type" varchar(255), "taggable_id" integer) D, [2015-08-02T09:32:25.921694 #5862] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:25.922470 #5862] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255), "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:25.967881 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:25.969875 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:25.972519 #5862] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:25.975217 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:25.976078 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:25.976683 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:25.977093 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:25.978780 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:25.979585 #5862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:25.989521 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:25.990335 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:25.990972 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:25.991128 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:25.994894 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:25.995577 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 2 D, [2015-08-02T09:32:25.996182 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:25.996336 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:25.997167 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:25.997558 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 1 D, [2015-08-02T09:32:25.998131 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:25.998264 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:25.998552 #5862] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:25.999512 #5862] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:26.000011 #5862] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:26.002356 #5862] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.003166 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.003787 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.004451 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.004712 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.005194 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.005727 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.007069 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.007603 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:26.008202 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.008772 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.009289 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title") VALUES (?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"]] D, [2015-08-02T09:32:26.009952 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.010190 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.010693 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("author_id", "body", "title", "type") VALUES (?, ?, ?, ?) [["author_id", 1], ["body", "the body"], ["title", "IBM Watsons Jeopardy play"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.011285 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.011524 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.011977 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "SpecialGeneral"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.012524 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.013160 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.014872 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:26.015344 #5862] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:26.015790 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 4 D, [2015-08-02T09:32:26.016335 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.016585 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.017169 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.017770 #5862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:26.018226 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 5 D, [2015-08-02T09:32:26.018755 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.020379 #5862] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "posts"."author_id" = ? [["author_id", 1]] D, [2015-08-02T09:32:26.021116 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.021799 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.022327 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.022585 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.022986 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.023537 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.023777 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.024225 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.024793 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.025348 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.025802 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.026431 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.026616 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.027711 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.028237 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 7 D, [2015-08-02T09:32:26.028869 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.029025 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.029816 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.030215 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 6 D, [2015-08-02T09:32:26.030793 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.031136 #5862] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:26.032372 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:26.032955 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.033438 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.034073 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.034312 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.034711 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.035223 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.035535 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.036107 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.036685 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.037362 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.037899 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.038435 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.038634 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.039895 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.040515 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 9 D, [2015-08-02T09:32:26.041184 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.041347 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.042356 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.042894 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 8 D, [2015-08-02T09:32:26.043548 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.044022 #5862] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:26.045488 #5862] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:26.047464 #5862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:26.048437 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.049073 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.049661 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.049902 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.050339 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.050926 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.051152 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.051630 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.052176 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.053319 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.054173 #5862] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.055256 #5862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:26.056141 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 11 D, [2015-08-02T09:32:26.056783 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.057181 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.057558 #5862] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:26.058472 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:26.058914 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.059435 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.060042 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.060273 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.060717 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.061314 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.061579 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.062099 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.062695 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.063300 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.063883 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.064462 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.064638 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.066642 #5862] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.067455 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 13 D, [2015-08-02T09:32:26.068117 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.068367 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.069396 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.069921 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 12 D, [2015-08-02T09:32:26.070580 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.071442 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.071962 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.072537 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.073122 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.073398 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.073866 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.074452 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.074730 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.075263 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.075828 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.076459 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.076995 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.077588 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.077740 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.078676 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.079118 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 15 D, [2015-08-02T09:32:26.079673 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.079799 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.080557 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.080935 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 14 D, [2015-08-02T09:32:26.081494 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.081969 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.082418 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.082878 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.083490 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.083701 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.084100 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.084653 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.084908 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.085348 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.086013 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.086666 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.087169 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.087699 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.087904 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.088314 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.088854 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.089558 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.090368 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.090754 #5862] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 15], ["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.091886 #5862] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 19 D, [2015-08-02T09:32:26.092673 #5862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:26.093162 #5862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:26.093765 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.094188 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.094724 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.095215 #5862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:26.095454 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.095893 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.096417 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.096724 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.097341 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.097869 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.098215 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.098912 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.099437 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.099808 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.100316 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.100857 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.101109 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.101543 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.101986 #5862] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:26.102234 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.102768 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.103330 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.103915 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.104633 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title") VALUES (?, ?) [["body", "the body"], ["title", "To Be or Not To Be?"]] D, [2015-08-02T09:32:26.105509 #5862] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:26.106011 #5862] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = 22 D, [2015-08-02T09:32:26.106631 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.107148 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.107580 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.108080 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.108606 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.108821 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.109226 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.109741 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.109968 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.110441 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name", "type") VALUES (?, ?) [["name", "Special"], ["type", "SpecialTag"]] D, [2015-08-02T09:32:26.110959 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.111429 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.112322 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.112772 #5862] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 23 D, [2015-08-02T09:32:26.113342 #5862] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:26.113800 #5862] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:26.114559 #5862] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.114941 #5862] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:26.115501 #5862] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:26.116043 #5862] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:26.116476 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.117002 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Thinking"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.117705 #5862] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:26.118205 #5862] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:26.119064 #5862] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:26.119949 #5862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:26.121098 #5862] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:26.121764 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("body", "title", "type") VALUES (?, ?, ?) [["body", "the body"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["type", "SpecialPost"]] D, [2015-08-02T09:32:26.122283 #5862] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 22], ["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:26.122977 #5862] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = 25 D, [2015-08-02T09:32:26.123756 #5862] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:26.124234 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:26.124801 #5862] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:26.125355 #5862] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.198283 #5866] DEBUG -- :  (2.3ms) DROP TABLE "authors" D, [2015-08-02T09:32:27.198963 #5866] DEBUG -- :  (0.5ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:32:27.202594 #5866] DEBUG -- :  (0.7ms) DROP TABLE "posts" D, [2015-08-02T09:32:27.204634 #5866] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:27.205789 #5866] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:32:27.207295 #5866] DEBUG -- :  (1.3ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:32:27.208278 #5866] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:32:27.208935 #5866] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:27.261769 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.263922 #5866] DEBUG -- : SQL (0.4ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.267005 #5866] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:32:27.269935 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.270783 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.271555 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.273518 #5866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:27.274227 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.274920 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.282174 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.282727 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.283472 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.283606 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.287272 #5866] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.288180 #5866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:32:27.288925 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.289088 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.290426 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.291004 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:32:27.291735 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.291873 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.292275 #5866] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:27.293281 #5866] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:27.293864 #5866] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:27.297051 #5866] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.297624 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.298282 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.298928 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.299211 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.299626 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.300250 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.301481 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.301940 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:27.302689 #5866] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:27.303423 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.304012 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:27.304640 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.305083 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.305662 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:27.306178 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.306466 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.306893 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:32:27.307411 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.308012 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.309878 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:27.310583 #5866] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:27.311049 #5866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:32:27.311665 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.312112 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.313171 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.314201 #5866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:27.314747 #5866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:32:27.315423 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.317225 #5866] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:32:27.317857 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.318309 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.318939 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.319223 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.319633 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.320161 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.320445 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.320888 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.321472 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.322066 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.322477 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.323225 #5866] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:27.323352 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.324380 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.324863 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:32:27.325564 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.325833 #5866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:27.327859 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.328655 #5866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:32:27.329401 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.329853 #5866] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:27.332060 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:27.332974 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.333559 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.334373 #5866] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:27.334705 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.335222 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.335905 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.336570 #5866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:27.337390 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.338143 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.339061 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.339667 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.340381 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.340564 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.341851 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.342448 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:32:27.343153 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.343302 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.344291 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.344901 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:32:27.345649 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.346078 #5866] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:27.347613 #5866] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:27.349420 #5866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:27.350545 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.351146 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.351759 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.352083 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.352533 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.353132 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.353612 #5866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:27.354181 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.354823 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.355821 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.356377 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.356932 #5866] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:27.357406 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:32:27.357913 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.358425 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.358894 #5866] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:27.360041 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:27.360643 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.361131 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.361829 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.362084 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.362513 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.363057 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.363376 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.363926 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.364684 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.366119 #5866] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:27.367091 #5866] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.367882 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.368014 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.369100 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.369606 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:32:27.370254 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.370375 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.371277 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.371739 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:32:27.372309 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.372933 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.373479 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.373892 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.374500 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.374747 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.375105 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.375678 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.375937 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.376354 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.377025 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.377700 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.378168 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.378726 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.378854 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.379856 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.380345 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:32:27.380936 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.381056 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.381940 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.382397 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:32:27.383011 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.383480 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.384038 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.384456 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.385095 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.385336 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.385702 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.386326 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.386729 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.387251 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.387953 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.388910 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.389363 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.389982 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.390239 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.390661 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.391295 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.392266 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.393172 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.393672 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:32:27.395556 #5866] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:32:27.396446 #5866] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:27.397099 #5866] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:27.397997 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.398569 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.399095 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.399719 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.399982 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.400409 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.401000 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.401317 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.401811 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.402365 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.402696 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.403525 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.404258 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.404854 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.405525 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.406078 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.406366 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.406764 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.407291 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.407557 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.408015 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.408504 #5866] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:27.409032 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.409802 #5866] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:32:27.410955 #5866] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:27.411531 #5866] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:32:27.412214 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.412742 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.413291 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.413784 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.414412 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.414729 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.415187 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.415833 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.416140 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.416623 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:27.417231 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.417768 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.418839 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:27.419374 #5866] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:32:27.420025 #5866] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:27.420397 #5866] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:27.421072 #5866] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.421525 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:27.422318 #5866] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:27.422794 #5866] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:27.423418 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.423894 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:27.424533 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.424789 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.425169 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:27.425787 #5866] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:27.426642 #5866] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:27.427177 #5866] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:27.427639 #5866] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:32:27.431737 #5866] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:32:27.432531 #5866] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:27.433059 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:27.433542 #5866] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:27.433911 #5866] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.529414 #5870] DEBUG -- :  (2.8ms) DROP TABLE "authors" D, [2015-08-02T09:32:28.530784 #5870] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:32:28.532111 #5870] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:32:28.535110 #5870] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:28.536168 #5870] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:28.536952 #5870] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:32:28.537967 #5870] DEBUG -- :  (0.7ms) DROP TABLE "tags" D, [2015-08-02T09:32:28.538653 #5870] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:28.587758 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.589568 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.592157 #5870] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:28.594719 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.595465 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.596132 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.598084 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.598805 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.599432 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.607081 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.607763 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.608453 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.608612 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.612035 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.612725 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:32:28.613482 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.613669 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.614945 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.615473 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:32:28.616232 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.616362 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.616761 #5870] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:28.617767 #5870] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:28.618275 #5870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:28.622124 #5870] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.622708 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.623221 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.623823 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.624084 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.624511 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.625064 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.626404 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.626878 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:28.627454 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.628036 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.628530 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:28.629112 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.629364 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.629874 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:28.630439 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.630684 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.631118 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:32:28.631709 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.632309 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.634031 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:28.634823 #5870] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:28.635290 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:32:28.636019 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.636553 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.637283 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.638127 #5870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:28.638610 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:32:28.639269 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.640813 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:32:28.641335 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.641796 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.642474 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.642704 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.643086 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.643671 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.643941 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.644442 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.645121 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.645672 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.646108 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.646742 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.646873 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.647861 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.648318 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:32:28.649269 #5870] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:28.649419 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.650736 #5870] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.651278 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:32:28.657067 #5870] DEBUG -- :  (5.5ms) commit transaction D, [2015-08-02T09:32:28.657741 #5870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:28.659954 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:28.660767 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.661418 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.662293 #5870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:28.662569 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.663019 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.670530 #5870] DEBUG -- :  (7.1ms) commit transaction D, [2015-08-02T09:32:28.670899 #5870] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:28.671750 #5870] DEBUG -- : SQL (0.4ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.672509 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.673825 #5870] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:28.674424 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.675134 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.675296 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.676664 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.677327 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:32:28.678067 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.678208 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.679179 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.679680 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:32:28.680428 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.680834 #5870] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:28.682340 #5870] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:28.684169 #5870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:28.685026 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.685591 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.686402 #5870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:28.686643 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.687018 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.687686 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.687896 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.688307 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.689024 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.689732 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.690161 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.690654 #5870] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:28.691113 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:32:28.691782 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.692271 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.692660 #5870] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:28.693734 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:28.694263 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.694899 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.695716 #5870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:28.696062 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.696657 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.697260 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.697555 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.698110 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.698722 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.699476 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.700076 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.700774 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.700929 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.702186 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.702729 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:32:28.703404 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.703548 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.704646 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.705183 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:32:28.705831 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.706587 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.707212 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.707701 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.708340 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.708651 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.709240 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.709990 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.710244 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.710786 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.711438 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.712066 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.712569 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.713233 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.713384 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.714651 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.715229 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:32:28.716019 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.716154 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.717079 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.717527 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:32:28.718188 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.718749 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.719359 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.719957 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.720561 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.720786 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.721154 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.721791 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.722065 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.722522 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.722995 #5870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:28.723582 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.723983 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.724454 #5870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:28.724654 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.725001 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.725487 #5870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:28.726306 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.727156 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.727591 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:32:28.728629 #5870] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:32:28.729270 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.729783 #5870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:28.730506 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.730915 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.731354 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.731982 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.732197 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.732587 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.733253 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.733526 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.734023 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.734670 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.734987 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.735720 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.736356 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.736761 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.737198 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.737788 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.737997 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.738382 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.738943 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.739167 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.739590 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.740168 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.740635 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.741333 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:32:28.742275 #5870] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:28.742778 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:32:28.743630 #5870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:28.744228 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.744767 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.745425 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.746201 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.746571 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.747238 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.748065 #5870] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:28.748431 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.749164 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:28.749894 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.750496 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.751672 #5870] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:28.752211 #5870] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:32:28.752910 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.753450 #5870] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:28.754347 #5870] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.754798 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:28.758950 #5870] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:28.759492 #5870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:28.759950 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.760498 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:28.761093 #5870] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:28.761375 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.761783 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:28.762289 #5870] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:28.762977 #5870] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:28.763460 #5870] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:28.763896 #5870] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:32:28.764454 #5870] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:32:28.765155 #5870] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:28.765602 #5870] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:28.766044 #5870] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:28.766376 #5870] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.875172 #5877] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:32:29.875984 #5877] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:32:29.876923 #5877] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:32:29.878787 #5877] DEBUG -- :  (0.5ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:29.879652 #5877] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:29.880328 #5877] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:32:29.881149 #5877] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:32:29.881762 #5877] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:29.928406 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.930214 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:29.932832 #5877] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:32:29.935427 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.936280 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:29.937052 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.938940 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.939573 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:29.940278 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.947475 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.948185 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:29.949087 #5877] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:29.949425 #5877] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:29.955362 #5877] DEBUG -- : SQL (0.3ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.956509 #5877] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:32:29.957384 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.957550 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.958788 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.959375 #5877] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:32:29.960089 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.960266 #5877] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:29.960767 #5877] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:29.961843 #5877] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:29.962441 #5877] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:29.966221 #5877] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:29.967223 #5877] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:29.968030 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:29.968875 #5877] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:29.969173 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.969723 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:29.970533 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.972536 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.973196 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:29.973849 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.974560 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.975187 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:29.975804 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.976122 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.976747 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:29.977422 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.977739 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.978370 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:32:29.979048 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.979782 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.981882 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:29.982709 #5877] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:29.983232 #5877] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:32:29.983947 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.984369 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.985146 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.986014 #5877] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:29.986464 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:32:29.987178 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.988715 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:32:29.989218 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.989688 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:29.990305 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.990573 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.990989 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:29.991637 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:29.991906 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.992415 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:29.993005 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.993619 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.994072 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:29.994696 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.994844 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.996052 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.996613 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:32:29.997294 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.997425 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:29.998403 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:29.998904 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:32:29.999486 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:29.999868 #5877] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:30.001850 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:30.002695 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.003330 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.004026 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.004361 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.004906 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.005562 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.005858 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.006402 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.006965 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.007582 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.008026 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.008652 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.008782 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.009804 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.010300 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:32:30.010923 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.011053 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.011966 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.012426 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:32:30.013033 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.013374 #5877] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:30.014760 #5877] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:30.016453 #5877] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:30.017280 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.017801 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.018335 #5877] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:30.018576 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.018976 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.019545 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.019834 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.020359 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.021210 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.022046 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.022505 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.023015 #5877] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:30.023456 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:32:30.023993 #5877] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:30.024552 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.025021 #5877] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:30.026112 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:30.026555 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.027030 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.027646 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.027873 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.028255 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.028804 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.029033 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.029460 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.030091 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.030734 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.031190 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.031849 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.031979 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.032982 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.033489 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:32:30.034132 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.034266 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.035101 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.035537 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:32:30.036170 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.036815 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.037313 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.037759 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.038389 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.038627 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.039006 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.039622 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.039846 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.040322 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.040881 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.041452 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.041884 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.042487 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.042625 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.043572 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.044070 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:32:30.044787 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.044948 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.046021 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.046522 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:32:30.047298 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.047850 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.048434 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.048967 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.049567 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.049847 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.050318 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.050896 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.051210 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.051740 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.052358 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.053126 #5877] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:30.053763 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.054349 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.054607 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.055050 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.055652 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.056699 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.057777 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.058271 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:32:30.059368 #5877] DEBUG -- : SQL (0.6ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:32:30.060122 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.060648 #5877] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:30.061352 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.061755 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.062206 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.062791 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.063012 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.063423 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.063957 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.064201 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.064651 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.065258 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.065537 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.066173 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.066812 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.067201 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.067706 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.068230 #5877] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:30.068446 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.068847 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.069420 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.069726 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.070294 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.070996 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.071544 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.072303 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:32:30.073404 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:30.073982 #5877] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:32:30.074696 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.075243 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.075726 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.076211 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.076857 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.077093 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.077472 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.078047 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.078278 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.078709 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:30.079303 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.079768 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.080703 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:30.081194 #5877] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:32:30.081939 #5877] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:30.082330 #5877] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:30.082984 #5877] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.083312 #5877] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:30.084054 #5877] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:30.084537 #5877] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:30.084955 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.085430 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:30.086065 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.086425 #5877] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:30.087018 #5877] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:30.087699 #5877] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:30.088605 #5877] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:30.089225 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:30.089752 #5877] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:32:30.094009 #5877] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:32:30.095016 #5877] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:32:30.095815 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:30.096621 #5877] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:30.097173 #5877] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.188092 #5881] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:32:31.188930 #5881] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:32:31.189860 #5881] DEBUG -- :  (0.5ms) DROP TABLE "posts" D, [2015-08-02T09:32:31.191792 #5881] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:31.192686 #5881] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:32:31.193318 #5881] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:32:31.194119 #5881] DEBUG -- :  (0.5ms) DROP TABLE "tags" D, [2015-08-02T09:32:31.194845 #5881] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:32:31.239816 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.241602 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.244166 #5881] DEBUG -- :  (2.3ms) commit transaction D, [2015-08-02T09:32:31.247023 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.247867 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.248528 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.250308 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.250953 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.251701 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.258992 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.259699 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.260508 #5881] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:32:31.260722 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.264736 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.265470 #5881] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:32:31.266291 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.266484 #5881] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:31.267858 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.268415 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:32:31.269049 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.269182 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.269597 #5881] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:32:31.270539 #5881] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:31.270987 #5881] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:32:31.274083 #5881] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.274552 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.275048 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.275636 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.275860 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.276244 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.276841 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.277988 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.278436 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:32:31.279006 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.279543 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.280056 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:31.280627 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.280883 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.281396 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:32:31.281985 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.282218 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.282648 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:32:31.283252 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.283809 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.285998 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:32:31.287476 #5881] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:32:31.288079 #5881] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:32:31.288738 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.289150 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.289897 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.290701 #5881] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:32:31.291141 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:32:31.291838 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.293421 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:32:31.293914 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.294405 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.295036 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.295306 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.295762 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.296397 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.296651 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.297145 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.297795 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.298492 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.299016 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.299675 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.299837 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.300973 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.301486 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:32:31.302249 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.302414 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.303645 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.304183 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:32:31.304931 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.305397 #5881] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:32:31.307578 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:32:31.308424 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.309101 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.309787 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.310039 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.310489 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.311049 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.311300 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.311823 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.312451 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.313261 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.313860 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.314655 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.314977 #5881] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:31.316919 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.317557 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:32:31.318464 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.318645 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.320227 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.320964 #5881] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:32:31.321760 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.322221 #5881] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:32:31.323903 #5881] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:32:31.325894 #5881] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:32:31.326879 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.327433 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.327999 #5881] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:31.328242 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.328686 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.329228 #5881] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:31.329454 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.329898 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.330524 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.331480 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.332139 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.332756 #5881] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:31.333289 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:32:31.333908 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.334511 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.335020 #5881] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:32:31.336133 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:32:31.336718 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.337432 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.338191 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.338459 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.338879 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.339345 #5881] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:31.339593 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.340047 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.340549 #5881] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:32:31.341186 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.341638 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.342194 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.342323 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.343358 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.343845 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:32:31.344565 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.344685 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.345577 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.346164 #5881] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:32:31.347039 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.348115 #5881] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.348882 #5881] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:32:31.349613 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.350348 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.350645 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.351157 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.351767 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.352032 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.352533 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.353113 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.353787 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.354295 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.354896 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.355051 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.356289 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.356876 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:32:31.357623 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.357774 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.358826 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.359345 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:32:31.360055 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.360624 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.361194 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.361754 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.362491 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.362850 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.363362 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.363960 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.364301 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.364824 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.365489 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.366214 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.366695 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.367348 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.367551 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.367949 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.368533 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.369451 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.370327 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.370809 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:32:31.371944 #5881] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:32:31.372672 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.373317 #5881] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:32:31.374052 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.374503 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.375013 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.375659 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.375963 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.376515 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.377264 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.377509 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.377966 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.378590 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.378965 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.379821 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.380603 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.381088 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.381645 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.382232 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.382509 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.382958 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.383514 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.383768 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.384248 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.384804 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.385421 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.386356 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:32:31.387410 #5881] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:32:31.387955 #5881] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:32:31.388673 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.389201 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.389663 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.390164 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.390706 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.390924 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.391317 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.391852 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.392089 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.392525 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:32:31.393118 #5881] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:32:31.393607 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.394583 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:32:31.395103 #5881] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:32:31.395783 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.396229 #5881] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:31.397007 #5881] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.397401 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:32:31.398209 #5881] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:32:31.398697 #5881] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:32:31.399195 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.402760 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:32:31.403455 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.403735 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.404159 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:32:31.404863 #5881] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:32:31.405862 #5881] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:32:31.406648 #5881] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:32:31.407265 #5881] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:32:31.408065 #5881] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:32:31.409198 #5881] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:32:31.410254 #5881] DEBUG -- : Tagging Load (0.3ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:32:31.411314 #5881] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:32:31.412088 #5881] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.003845 #7486] DEBUG -- :  (2.5ms) DROP TABLE "authors" D, [2015-08-02T09:55:12.004710 #7486] DEBUG -- :  (0.7ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:55:12.005714 #7486] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:55:12.010656 #7486] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:12.011608 #7486] DEBUG -- :  (0.5ms) DROP TABLE "taggings" D, [2015-08-02T09:55:12.012350 #7486] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:55:12.013096 #7486] DEBUG -- :  (0.4ms) DROP TABLE "tags" D, [2015-08-02T09:55:12.013662 #7486] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:12.058444 #7486] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:12.060261 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.063037 #7486] DEBUG -- :  (2.5ms) commit transaction D, [2015-08-02T09:55:12.065827 #7486] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:12.066586 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.067495 #7486] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:12.070354 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.070867 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.071684 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.079659 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.080347 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.081052 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.081206 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.085328 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.086165 #7486] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:55:12.086808 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.086957 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.087933 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.088543 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:55:12.089205 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.089331 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.089718 #7486] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:55:12.090654 #7486] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:12.091151 #7486] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:12.094575 #7486] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.095398 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.096105 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.096822 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.097103 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.097486 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.098002 #7486] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:55:12.099333 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.099823 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:55:12.100428 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.101216 #7486] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:12.101746 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:12.102407 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.102762 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.103293 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:12.103909 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.104249 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.104830 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:55:12.105539 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.106229 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.108247 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:55:12.108982 #7486] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:55:12.109432 #7486] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:55:12.110135 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.110608 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.111707 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.112745 #7486] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:55:12.113462 #7486] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:55:12.114181 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.116169 #7486] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:55:12.116857 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.117438 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.118140 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.118454 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.118873 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.119501 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.119829 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.120307 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.121010 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.121748 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.122219 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.122778 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.122942 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.124099 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.124623 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:55:12.125287 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.125407 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.126319 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.126773 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:55:12.127454 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.127817 #7486] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:55:12.129645 #7486] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:55:12.130602 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.131215 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.131928 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.132315 #7486] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:12.132835 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.133506 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.133890 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.134448 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.135198 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.135977 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.136500 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.137213 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.137353 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.138496 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.139019 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:55:12.139839 #7486] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:12.140098 #7486] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:12.141837 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.142513 #7486] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:55:12.143116 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.143492 #7486] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:55:12.144955 #7486] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:55:12.146811 #7486] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:55:12.147832 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.148354 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.149069 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.149324 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.149702 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.150325 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.150622 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.151023 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.151606 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.152474 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.152971 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.153687 #7486] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:12.154173 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:55:12.154795 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.155321 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.155759 #7486] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:12.156683 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:55:12.157257 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.157733 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.158489 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.158747 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.159151 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.159758 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.160044 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.160464 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.161046 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.161798 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.162245 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.162863 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.162999 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.164086 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.164595 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:55:12.165279 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.165471 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.166486 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.167012 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:55:12.167592 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.168260 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.168866 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.169348 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.169990 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.170250 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.170616 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.171251 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.171523 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.171935 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.172560 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.173184 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.173625 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.174254 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.174410 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.175526 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.176029 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:55:12.176697 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.176812 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.177874 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.178421 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:55:12.179094 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.179605 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.180196 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.180648 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.181286 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.181533 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.181929 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.182532 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.182866 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.183273 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.183913 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.184756 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.185240 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.185877 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.186162 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.186558 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.187144 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.188117 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.189055 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.189589 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:55:12.190810 #7486] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:55:12.191596 #7486] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:12.192123 #7486] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:55:12.192814 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.193371 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.193965 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.194625 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.194960 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.195448 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.196048 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.196338 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.196747 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.197357 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.197728 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.198482 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.199164 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.199580 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.200033 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.200663 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.200907 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.201371 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.201979 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.202350 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.202874 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.203562 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.204144 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.205024 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:55:12.206267 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:55:12.206887 #7486] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:55:12.207674 #7486] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:12.208339 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.208879 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.209383 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.210073 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.210348 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.210773 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.211407 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.211715 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.212202 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:12.212787 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.213284 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.214372 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:12.214895 #7486] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:55:12.215507 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.215876 #7486] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:12.216547 #7486] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.216890 #7486] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:12.217911 #7486] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:12.218620 #7486] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:55:12.219280 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.219835 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:12.220518 #7486] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:12.220827 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.221285 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:12.221935 #7486] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:12.223021 #7486] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:12.223697 #7486] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:12.224313 #7486] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:55:12.225015 #7486] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:55:12.225813 #7486] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:12.226367 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:55:12.226920 #7486] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:55:12.227473 #7486] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.801034 #7533] DEBUG -- :  (2.6ms) DROP TABLE "authors" D, [2015-08-02T09:55:42.801832 #7533] DEBUG -- :  (0.6ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:55:42.802782 #7533] DEBUG -- :  (0.6ms) DROP TABLE "posts" D, [2015-08-02T09:55:42.804569 #7533] DEBUG -- :  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:42.805405 #7533] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:55:42.806038 #7533] DEBUG -- :  (0.5ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:55:42.806912 #7533] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:55:42.807576 #7533] DEBUG -- :  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:42.850347 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.852160 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.854843 #7533] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:55:42.857405 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.858138 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.858843 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.860562 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.861193 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.861779 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.868980 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.869666 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.870349 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.870498 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.873762 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.874432 #7533] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:55:42.875191 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.875322 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.876166 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.876606 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:55:42.877312 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.877439 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.877920 #7533] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:55:42.879071 #7533] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:42.879567 #7533] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:42.883075 #7533] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.883691 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.884284 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.885025 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.885245 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.885613 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.886267 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.887429 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.887868 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:55:42.888540 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.889063 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.889553 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:42.890192 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.890431 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.890926 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:42.891602 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.891815 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.892236 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:55:42.892932 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.893509 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.895221 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:55:42.896701 #7533] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:55:42.897270 #7533] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:55:42.898007 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.898566 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.899450 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.900285 #7533] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:55:42.900743 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:55:42.901343 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.902869 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:55:42.903348 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.903818 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.904424 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.904651 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.905041 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.905632 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.905857 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.906285 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.906860 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.907403 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.907831 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.908443 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.908635 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.909636 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.910112 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:55:42.910754 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.910889 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.911721 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.912142 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:55:42.912777 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.913113 #7533] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:55:42.914569 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:55:42.915199 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.915675 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.916290 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.916507 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.916880 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.917487 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.917699 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.918143 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.918775 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.919376 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.919813 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.920389 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.920534 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.921644 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.922176 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:55:42.922991 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.923122 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.924021 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.924482 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:55:42.925153 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.925482 #7533] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:55:42.926594 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:55:42.928019 #7533] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:55:42.928881 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.929649 #7533] DEBUG -- : SQL (0.3ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.930391 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.930678 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.931150 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.931787 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.932049 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.932547 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.933169 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.933993 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.934501 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.935042 #7533] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:42.935537 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:55:42.936208 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.936700 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.937102 #7533] DEBUG -- : Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:42.938019 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:55:42.938462 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.938927 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.939555 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.939762 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.940166 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.940771 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.941029 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.941477 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.942092 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.942679 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.943116 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.943712 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.943843 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.944871 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.945410 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:55:42.946298 #7533] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:42.946450 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.947463 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.947898 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:55:42.948536 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.949214 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.949749 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.950198 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.950830 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.951116 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.951541 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.952133 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.952463 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.953104 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.953694 #7533] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:55:42.954433 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.954979 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.955571 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.955709 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.956814 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.957348 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:55:42.958072 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.958210 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.959141 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.959617 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:55:42.960304 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.960889 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.961413 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.961870 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.962467 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.962783 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.963206 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.963816 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.964063 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.964486 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.965056 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.965721 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.966146 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.966702 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.966903 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.967269 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.967828 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.968700 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.969535 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:42.969989 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:55:42.971192 #7533] DEBUG -- : SQL (0.8ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:55:42.972010 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.972555 #7533] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:55:42.973417 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.973866 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.974333 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.974968 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.975262 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.975809 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.976507 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.976799 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.977349 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.978063 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.978415 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.979204 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.979934 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.980396 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.980948 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.981578 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.981813 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.982261 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.982922 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.983211 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.983690 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.984279 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.984831 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.985660 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:55:42.986653 #7533] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:55:42.987182 #7533] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:55:42.987988 #7533] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:42.988467 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.988894 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.989341 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.989933 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.990140 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.990529 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:42.991105 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.991312 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.991749 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:42.992326 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.992778 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.993690 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:42.994187 #7533] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:55:42.994890 #7533] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:42.995459 #7533] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:42.996335 #7533] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.996756 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:42.997564 #7533] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:42.998062 #7533] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:55:42.998512 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:42.999030 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:42.999664 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:42.999922 #7533] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:43.000392 #7533] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:43.001017 #7533] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:43.005448 #7533] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:43.006332 #7533] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:43.006865 #7533] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:55:43.007573 #7533] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:55:43.008655 #7533] DEBUG -- :  (0.8ms) commit transaction D, [2015-08-02T09:55:43.009652 #7533] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:55:43.010432 #7533] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:55:43.011112 #7533] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.590341 #7552] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:55:46.591674 #7552] DEBUG -- :  (1.0ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:55:46.593239 #7552] DEBUG -- :  (0.9ms) DROP TABLE "posts" D, [2015-08-02T09:55:46.595824 #7552] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:46.596850 #7552] DEBUG -- :  (0.7ms) DROP TABLE "taggings" D, [2015-08-02T09:55:46.597650 #7552] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:55:46.598628 #7552] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:55:46.599358 #7552] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:46.646653 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.648407 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.651093 #7552] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:55:46.653436 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.654134 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.654769 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.656362 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.656909 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.657591 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.664892 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.665585 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.666509 #7552] DEBUG -- :  (0.7ms) commit transaction D, [2015-08-02T09:55:46.666811 #7552] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:46.671840 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.672678 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:55:46.673558 #7552] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:46.673866 #7552] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:46.676260 #7552] DEBUG -- : SQL (0.4ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.677407 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:55:46.678231 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.678407 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.678905 #7552] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:55:46.680137 #7552] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:46.680758 #7552] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:46.684582 #7552] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.685169 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.685794 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.686550 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.686834 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.687291 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.687893 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.689253 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.689766 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:55:46.690376 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.690966 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.691491 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:46.692106 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.692388 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.692911 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:46.693538 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.693781 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.694225 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:55:46.694864 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.695526 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.697668 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:55:46.698516 #7552] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:55:46.699090 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:55:46.699751 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.700136 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.700854 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.701655 #7552] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:55:46.702096 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:55:46.702745 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.704826 #7552] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:55:46.705442 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.706049 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.706791 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.707074 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.707564 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.708203 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.708474 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.708978 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.709623 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.710316 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.710853 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.711571 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.711737 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.712929 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.713619 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:55:46.714363 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.714514 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.715466 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.715967 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:55:46.716604 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.716990 #7552] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:55:46.718590 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:55:46.719401 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.719910 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.720613 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.720840 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.721239 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.721854 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.722086 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.722526 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.723143 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.723781 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.724281 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.724926 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.725086 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.726158 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.726668 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:55:46.727410 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.727527 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.728366 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.728799 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:55:46.729496 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.729926 #7552] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:55:46.731148 #7552] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:55:46.732801 #7552] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:55:46.733680 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.734215 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.734875 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.735211 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.735736 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.736461 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.736776 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.737374 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.738078 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.738986 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.739547 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.740173 #7552] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:46.740732 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:55:46.741481 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.742058 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.742523 #7552] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:46.743548 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:55:46.744051 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.744573 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.745164 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.745432 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.745914 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.746542 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.746984 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.747566 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.748246 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.748860 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.749318 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.749920 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.750057 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.751073 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.751614 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:55:46.752257 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.752366 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.753194 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.753642 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:55:46.754309 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.755113 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.755714 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.756350 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.757104 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.757416 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.757884 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.758541 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.758837 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.759373 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.760028 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.760700 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.761217 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.761855 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.761992 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.763101 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.763605 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:55:46.764328 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.764449 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.765297 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.765734 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:55:46.766435 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.767149 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.767833 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.768485 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.769169 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.769471 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.770009 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.770610 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.771060 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.771828 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.772562 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.773598 #7552] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:46.774169 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.774799 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.775062 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.775521 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.776071 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.777078 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.778093 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.778573 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:55:46.779756 #7552] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:55:46.780615 #7552] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:46.781254 #7552] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:55:46.781992 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.782428 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.782943 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.783574 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.783816 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.784211 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.784783 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.785024 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.785464 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.786046 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.786341 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.786995 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.787713 #7552] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:46.788150 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.788610 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.789230 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.789446 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.789815 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.790405 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.790637 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.791067 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.791648 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.792126 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.792812 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:55:46.793770 #7552] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:55:46.794288 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:55:46.795126 #7552] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:46.795638 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.796109 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.796692 #7552] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.797480 #7552] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:46.797783 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.798182 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.798800 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.799060 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.799504 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:46.799993 #7552] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:55:46.800502 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.801491 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:46.802022 #7552] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:55:46.802598 #7552] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:55:46.802993 #7552] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:46.803726 #7552] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.804077 #7552] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:46.804852 #7552] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:46.805328 #7552] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:55:46.805765 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.806245 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:46.806831 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.807084 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.807529 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:46.808155 #7552] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:46.808842 #7552] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:46.809370 #7552] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:46.809842 #7552] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:55:46.810409 #7552] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:55:46.811139 #7552] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:46.815191 #7552] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:55:46.815809 #7552] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:55:46.816225 #7552] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.707100 #7573] DEBUG -- :  (2.9ms) DROP TABLE "authors" D, [2015-08-02T09:55:49.708360 #7573] DEBUG -- :  (0.9ms) CREATE TABLE "authors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) D, [2015-08-02T09:55:49.709874 #7573] DEBUG -- :  (0.8ms) DROP TABLE "posts" D, [2015-08-02T09:55:49.712479 #7573] DEBUG -- :  (0.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "author_id" integer, "title" varchar NOT NULL, "body" text NOT NULL, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:49.713551 #7573] DEBUG -- :  (0.6ms) DROP TABLE "taggings" D, [2015-08-02T09:55:49.714325 #7573] DEBUG -- :  (0.6ms) CREATE TABLE "taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "polytag_id" integer, "polytag_type" varchar, "taggable_type" varchar, "taggable_id" integer) D, [2015-08-02T09:55:49.715322 #7573] DEBUG -- :  (0.6ms) DROP TABLE "tags" D, [2015-08-02T09:55:49.716100 #7573] DEBUG -- :  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "taggings_count" integer DEFAULT 0) D, [2015-08-02T09:55:49.761580 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.763519 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.766234 #7573] DEBUG -- :  (2.4ms) commit transaction D, [2015-08-02T09:55:49.770225 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.771090 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.771823 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.773831 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.774589 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.775610 #7573] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:49.782399 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.782977 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.783701 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.783837 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.787271 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 2], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.787937 #7573] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 2]] D, [2015-08-02T09:55:49.788729 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.788939 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.790255 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 2], ["polytag_type", "SpecialTag"], ["taggable_id", 1], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.790813 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 1]] D, [2015-08-02T09:55:49.791523 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.791643 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.792038 #7573] DEBUG -- :  (0.0ms) commit transaction D, [2015-08-02T09:55:49.792985 #7573] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:49.793428 #7573] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 2]] D, [2015-08-02T09:55:49.796719 #7573] DEBUG -- :  (0.2ms) SELECT COUNT(*) FROM "posts" INNER JOIN "taggings" ON "posts"."id" = "taggings"."taggable_id" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["polytag_id", 2], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.797456 #7573] DEBUG -- :  (0.1ms) begin transaction D, [2015-08-02T09:55:49.798072 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.798695 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.798923 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.799295 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.799824 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.801004 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.801441 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "authors" ("name") VALUES (?) [["name", "Bob"]] D, [2015-08-02T09:55:49.801863 #7573] DEBUG -- :  (0.3ms) commit transaction D, [2015-08-02T09:55:49.802394 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.802874 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "author_id", "body") VALUES (?, ?, ?) [["title", "Budget Forecasts Bigger 2011 Deficit"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:49.803458 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.803815 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.804520 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "posts" ("type", "title", "author_id", "body") VALUES (?, ?, ?, ?) [["type", "SpecialPost"], ["title", "IBM Watsons Jeopardy play"], ["author_id", 1], ["body", "the body"]] D, [2015-08-02T09:55:49.805163 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.805485 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.806065 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "SpecialGeneral"]] D, [2015-08-02T09:55:49.806746 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.807402 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.809184 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 4], ["taggable_type", "Post"]] D, [2015-08-02T09:55:49.809926 #7573] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 4]] D, [2015-08-02T09:55:49.810416 #7573] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 4]] D, [2015-08-02T09:55:49.811117 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.811548 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.812298 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 4], ["taggable_id", 5], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.813118 #7573] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 5]] D, [2015-08-02T09:55:49.813564 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 5]] D, [2015-08-02T09:55:49.814233 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.815749 #7573] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" INNER JOIN "posts" ON "taggings"."taggable_id" = "posts"."id" WHERE "posts"."author_id" = ? AND "taggings"."taggable_type" IN ('Post', 'SpecialPost') [["author_id", 1]] D, [2015-08-02T09:55:49.816243 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.816702 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.817293 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.817523 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.817927 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.818531 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.818774 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.819202 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.819800 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.820391 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.820826 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.821506 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.821650 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.822605 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 7], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.823105 #7573] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 7]] D, [2015-08-02T09:55:49.823944 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.824060 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.824878 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 6], ["polytag_type", "SpecialTag"], ["taggable_id", 6], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.825311 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 6]] D, [2015-08-02T09:55:49.826063 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.826394 #7573] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 6]] D, [2015-08-02T09:55:49.827884 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (6) D, [2015-08-02T09:55:49.828604 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.829104 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.829700 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.829968 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.830460 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.831016 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.831288 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.831827 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.832382 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.832993 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.833439 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.834045 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.834209 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.835340 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 9], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.835898 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 9]] D, [2015-08-02T09:55:49.836667 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.836831 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.837906 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 8], ["polytag_type", "SpecialTag"], ["taggable_id", 8], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.838498 #7573] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 8]] D, [2015-08-02T09:55:49.839127 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.839479 #7573] DEBUG -- : Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 8]] D, [2015-08-02T09:55:49.840645 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" IN ('Post', 'SpecialPost') AND "taggings"."polytag_type" = 'SpecialTag' AND "taggings"."polytag_id" IN (8) D, [2015-08-02T09:55:49.842241 #7573] DEBUG -- : SpecialPost Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" IN (9, 8) D, [2015-08-02T09:55:49.843165 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.843770 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.844523 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.844822 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.845258 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.845822 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.846097 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.846670 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.847310 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.848129 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.848631 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("tag_id", "taggable_id", "taggable_type") VALUES (?, ?, ?) [["tag_id", 9], ["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.849161 #7573] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:49.849647 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 11]] D, [2015-08-02T09:55:49.850322 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.850994 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 11], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.851559 #7573] DEBUG -- : Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 11]] D, [2015-08-02T09:55:49.852715 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_type" = 'SpecialPost' AND "taggings"."taggable_id" IN (11) D, [2015-08-02T09:55:49.853261 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.853842 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.854544 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.854816 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.855265 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.855923 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.856248 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.856866 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.857582 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.858306 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.858846 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.859438 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.859596 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.860822 #7573] DEBUG -- : SQL (0.2ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 13], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.861385 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 13]] D, [2015-08-02T09:55:49.862075 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.862212 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.863115 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 11], ["polytag_type", "SpecialTag"], ["taggable_id", 12], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.863609 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 12]] D, [2015-08-02T09:55:49.864247 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.864919 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 11], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.865474 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.865933 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.866555 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.866779 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.867170 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.867720 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.867967 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.868401 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.869025 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.869570 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.870005 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.870576 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.870702 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.871649 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 15], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.872111 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 15]] D, [2015-08-02T09:55:49.872762 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.872887 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.873688 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 13], ["polytag_type", "SpecialTag"], ["taggable_id", 14], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.874113 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 14]] D, [2015-08-02T09:55:49.874755 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.875324 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 13], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.875807 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.876274 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.876893 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.877116 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.877496 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.878074 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.878333 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.878751 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.879328 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.879959 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.880380 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.881050 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.881294 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.881755 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.882397 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.883344 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.884266 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.884722 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 15], ["taggable_id", 19]] D, [2015-08-02T09:55:49.885908 #7573] DEBUG -- : SQL (0.7ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 19]] D, [2015-08-02T09:55:49.886734 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.887282 #7573] DEBUG -- : SpecialPost Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 19]] D, [2015-08-02T09:55:49.888096 #7573] DEBUG -- : Tagging Load (0.2ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? [["taggable_id", 19], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.888512 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.888991 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.889598 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.889837 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.890240 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.890819 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.891082 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.891525 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.892192 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.892462 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.893094 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type") VALUES (?, ?) [["polytag_id", 17], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.893760 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.894142 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.894590 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.895211 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.895442 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.895822 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.896424 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.896843 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.897385 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.898066 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.898573 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.899291 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("title", "body") VALUES (?, ?) [["title", "To Be or Not To Be?"], ["body", "the body"]] D, [2015-08-02T09:55:49.900390 #7573] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 19], ["polytag_type", "SpecialTag"], ["taggable_id", 22], ["taggable_type", "Post"]] D, [2015-08-02T09:55:49.900932 #7573] DEBUG -- : SQL (0.1ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."id" = ? [["id", 22]] D, [2015-08-02T09:55:49.901694 #7573] DEBUG -- :  (0.6ms) commit transaction D, [2015-08-02T09:55:49.902165 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 19], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.902623 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.903081 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.903726 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.903950 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.904337 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.904938 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.905167 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.905605 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("type", "name") VALUES (?, ?) [["type", "SpecialTag"], ["name", "Special"]] D, [2015-08-02T09:55:49.906182 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.906640 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.907590 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "taggings" ("polytag_id", "polytag_type", "taggable_id", "taggable_type") VALUES (?, ?, ?, ?) [["polytag_id", 21], ["polytag_type", "SpecialTag"], ["taggable_id", 23], ["taggable_type", "SpecialPost"]] D, [2015-08-02T09:55:49.908070 #7573] DEBUG -- : SQL (0.0ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 23]] D, [2015-08-02T09:55:49.908742 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.909203 #7573] DEBUG -- : SpecialTag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:49.909865 #7573] DEBUG -- :  (0.1ms) SELECT COUNT(*) FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.910199 #7573] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."polytag_id" = ? AND "taggings"."polytag_type" = ? ORDER BY "taggings"."id" ASC LIMIT 1 [["polytag_id", 21], ["polytag_type", "SpecialTag"]] D, [2015-08-02T09:55:49.910952 #7573] DEBUG -- : SpecialTag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."type" IN ('SpecialTag') AND "tags"."id" = ? LIMIT 1 [["id", 21]] D, [2015-08-02T09:55:49.911473 #7573] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 23]] D, [2015-08-02T09:55:49.911897 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.912343 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Thinking"], ["body", "the body"]] D, [2015-08-02T09:55:49.913014 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.913233 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.913644 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "tags" ("name") VALUES (?) [["name", "Misc"]] D, [2015-08-02T09:55:49.914224 #7573] DEBUG -- :  (0.4ms) commit transaction D, [2015-08-02T09:55:49.914862 #7573] DEBUG -- :  (0.0ms) begin transaction D, [2015-08-02T09:55:49.915358 #7573] DEBUG -- : SQL (0.1ms) INSERT INTO "posts" ("type", "title", "body") VALUES (?, ?, ?) [["type", "SpecialPost"], ["title", "Budget Forecasts Bigger 2011 Deficit"], ["body", "the body"]] D, [2015-08-02T09:55:49.915769 #7573] DEBUG -- : SQL (0.0ms) INSERT INTO "taggings" ("taggable_type", "tag_id", "taggable_id") VALUES (?, ?, ?) [["taggable_type", "SpecialPost"], ["tag_id", 22], ["taggable_id", 25]] D, [2015-08-02T09:55:49.919927 #7573] DEBUG -- : SQL (0.2ms) UPDATE "posts" SET "taggings_count" = COALESCE("taggings_count", 0) + 1 WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? [["id", 25]] D, [2015-08-02T09:55:49.920654 #7573] DEBUG -- :  (0.5ms) commit transaction D, [2015-08-02T09:55:49.921140 #7573] DEBUG -- : Tagging Load (0.1ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."tag_id" = ? LIMIT 1 [["tag_id", 22]] D, [2015-08-02T09:55:49.921600 #7573] DEBUG -- : SpecialPost Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."type" IN ('SpecialPost') AND "posts"."id" = ? LIMIT 1 [["id", 25]] D, [2015-08-02T09:55:49.921970 #7573] DEBUG -- : Tagging Load (0.0ms) SELECT "taggings".* FROM "taggings" WHERE "taggings"."taggable_id" = ? AND "taggings"."taggable_type" = ? LIMIT 1 [["taggable_id", 25], ["taggable_type", "SpecialPost"]]