Skip to content

Instantly share code, notes, and snippets.

@endymion
Created May 28, 2013 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endymion/5b6dbe95d5d7c5db32be to your computer and use it in GitHub Desktop.
Save endymion/5b6dbe95d5d7c5db32be to your computer and use it in GitHub Desktop.
Typical request. Simple Active Record queries, small DB tables.
Started GET "/" for 127.0.0.1 at 2013-05-28 11:48:49 -0400
Processing by OverviewController#index as HTML
Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
CACHE (0.0ms) SELECT "events".* FROM "events" ORDER BY "events"."id" DESC LIMIT 1
Reservation Load (0.5ms) SELECT "reservations".* FROM "reservations" WHERE "reservations"."event_id" = 23 ORDER BY created_at DESC LIMIT 5
Reservation Load (0.6ms) SELECT "reservations".* FROM "reservations" WHERE "reservations"."event_id" = 23
Table Load (0.3ms) SELECT "tables".* FROM "tables" WHERE "tables"."id" = 59 LIMIT 1
Area Load (0.2ms) SELECT "areas".* FROM "areas" WHERE "areas"."id" = 4 LIMIT 1
Table Load (0.2ms) SELECT "tables".* FROM "tables" WHERE "tables"."id" = 101 LIMIT 1
Area Load (0.2ms) SELECT "areas".* FROM "areas" WHERE "areas"."id" = 1 LIMIT 1
Table Load (0.3ms) SELECT "tables".* FROM "tables" WHERE "tables"."id" = 89 LIMIT 1
Area Load (0.1ms) SELECT "areas".* FROM "areas" WHERE "areas"."id" = 3 LIMIT 1
Table Load (0.2ms) SELECT "tables".* FROM "tables" WHERE "tables"."id" = 52 LIMIT 1
CACHE (0.0ms) SELECT "areas".* FROM "areas" WHERE "areas"."id" = 4 LIMIT 1
Table Load (0.2ms) SELECT "tables".* FROM "tables" WHERE "tables"."id" = 99 LIMIT 1
CACHE (0.0ms) SELECT "areas".* FROM "areas" WHERE "areas"."id" = 1 LIMIT 1
Area Load (0.3ms) SELECT "areas".* FROM "areas" ORDER BY position
Table Load (0.4ms) SELECT "tables".* FROM "tables" WHERE "tables"."area_id" = 2 ORDER BY length(name), name
Table Load (0.3ms) SELECT "tables".* FROM "tables" WHERE "tables"."area_id" = 1 ORDER BY length(name), name
Table Load (0.4ms) SELECT "tables".* FROM "tables" WHERE "tables"."area_id" = 3 ORDER BY length(name), name
Table Load (0.5ms) SELECT "tables".* FROM "tables" WHERE "tables"."area_id" = 4 ORDER BY length(name), name
Table Load (0.4ms) SELECT "tables".* FROM "tables" WHERE "tables"."area_id" = 5 ORDER BY length(name), name
Rendered overview/index.html.erb within layouts/application (32.6ms)
Completed 200 OK in 149ms (Views: 142.3ms | ActiveRecord: 5.4ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment