Skip to content

Instantly share code, notes, and snippets.

@IlyaDonskikh
Created November 7, 2014 03:17
Show Gist options
  • Save IlyaDonskikh/77adcee74d745f6c8550 to your computer and use it in GitHub Desktop.
Save IlyaDonskikh/77adcee74d745f6c8550 to your computer and use it in GitHub Desktop.
pcharter
AND "quota"."quotable_type" = 'Flight' LEFT OUTER JOIN "modifiers" ON "modifiers"."quota_id" = "quota"."id" LEFT OUTER JOIN "blocked_quota" ON "blocked_quota"."quota_id" = "quota"."id" WHERE (flights.public_status = 't' AND intervals.start_date <= '2014-11-22' AND intervals.end_date >= '2014-11-07')
RtQuota Load (0.2ms) SELECT "rt_quota".* FROM "rt_quota" WHERE "rt_quota"."quota_id" = ? LIMIT 1 [["quota_id", 9]]
RtQuota Load (0.2ms) SELECT "rt_quota".* FROM "rt_quota" WHERE "rt_quota"."rt_quota_id" = ? LIMIT 1 [["rt_quota_id", 9]]
RtQuota Load (0.1ms) SELECT "rt_quota".* FROM "rt_quota" WHERE "rt_quota"."quota_id" = ? LIMIT 1 [["quota_id", 1]]
RtQuota Load (0.1ms) SELECT "rt_quota".* FROM "rt_quota" WHERE "rt_quota"."rt_quota_id" = ? LIMIT 1 [["rt_quota_id", 1]]
Airline Load (0.2ms) SELECT "airlines".* FROM "airlines" WHERE "airlines"."id" = ? LIMIT 1 [["id", 1]]
Rendered flights/search/_item.html.erb (16.5ms)
Rendered flights/search/_item.html.erb (2.7ms)
Rendered flights/search/_item.html.erb (2.7ms)
Rendered flights/search/_item.html.erb (2.3ms)
Rendered flights/search/_item.html.erb (1.9ms)
CACHE (0.0ms) SELECT "airlines".* FROM "airlines" WHERE "airlines"."id" = ? LIMIT 1 [["id", 1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment