Created
March 25, 2014 17:33
-
-
Save anonymous/9766989 to your computer and use it in GitHub Desktop.
without default scope console log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/microposts" for 10.0.2.2 at 2014-03-25 14:32:10 -0400 | |
Processing by MicropostsController#index as HTML | |
DEPRECATION WARNING: Relation#all is deprecated. If you want to eager-load a relation, you can call #load (e.g. `Post.where(published: true).load`). If you want to get an array of records from a relation, you can call #to_a (e.g. `Post.where(published: true).to_a`). (called from find_with_reputation at /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/bundler/gems/activerecord-reputation-system-01197ad78cac/lib/reputation_system/finder_methods.rb:30) | |
Micropost Load (3.6ms) SELECT microposts.*, COALESCE(rs_reputations.value, 0) AS votes FROM "microposts" LEFT | |
JOIN rs_reputations ON microposts.id = rs_reputations.target_id AND rs_reputations.target_type = 'Micropost' AND rs_reputations.reputation_name = 'votes' AND rs_reputations.active = 't' LIMIT 30 OFFSET 0 | |
(1.8ms) SELECT COUNT(*) FROM "microposts" LEFT JOIN rs_reputations ON microposts.id = rs_reputations.target_id AND rs_reputations.target_type = 'Micropost' AND rs_reputations.reputation_name = 'votes' AND rs_reputations.active = 't' | |
User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."remember_token" = '9afdb01d3bc4e8b41edf800c3ed26f480dc2b9f8' LIMIT 1 | |
User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] | |
ReputationSystem::Reputation Load (1.4ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 1 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 2]] | |
ReputationSystem::Reputation Load (1.5ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 2 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 3]] | |
ReputationSystem::Reputation Load (1.4ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 3 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]] | |
ReputationSystem::Reputation Load (1.3ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 4 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 5]] | |
ReputationSystem::Reputation Load (1.9ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 5 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 6]] | |
ReputationSystem::Reputation Load (1.7ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 6 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] | |
ReputationSystem::Reputation Load (1.0ms) SELECT "rs_reputations".* FROM "rs_reputations" WHERE "rs_reputations"."reputation_name" = 'votes' AND "rs_reputations"."target_id" = 7 AND "rs_reputations"."target_type" = 'Micropost' LIMIT 1 | |
and so on.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment