SELECT "unit".* FROM "unit" WHERE (id = NULL) LIMIT 1; 1.3 ms
SELECT "unit".* FROM "unit" WHERE (attr->'hidden' ISNULL OR NOT (attr->'hidden' = 'true')) AND (active) ORDER BY name; 2.4 ms
SELECT count(1) FROM (SELECT "issue".*, justify_interval(min_admission_time)::text AS "min_admission_time_text", justify_interval(max_admission_time)::text AS "max_admission_time_text", justify_interval(discussion_time)::text AS "discussion_time_text", justify_interval(verification_time)::text AS "verification_time_text", justify_interval(voting_time)::text AS "voting_time_text", justify_interval(coalesce(issue.fully_frozen + issue.voting_time, issue.half_frozen + issue.verification_time, issue.accepted + issue.discussion_time, issue.created + issue.max_admission_time) - now()) AS "state_time_left", justify_interval(now() - issue.closed) AS "closed_ago" FROM "issue" LEFT OUTER JOIN issue_order_in_admission_state AS "filter_issue_order" ON filter_issue_order.id = issue.id WHERE (issue.state = 'admission') ORDER BY filter_issue_order.order_in_unit, id) AS "subquery" LIMIT 1; 3.3 ms
SELECT "issue".*, justify_interval(min_admission_time)::text AS "min_admission_time_text", justify_interval(max_admission_time)::text AS "max_admission_time_text", justify_interval(discussion_time)::text AS "discussion_time_text", justify_interval(verification_time)::text AS "verification_time_text", justify_interval(voting_time)::text AS "voting_time_text", justify_interval(coalesce(issue.fully_frozen + issue.voting_time, issue.half_frozen + issue.verification_time, issue.accepted + issue.discussion_time, issue.created + issue.max_admission_time) - now()) AS "state_time_left", justify_interval(now() - issue.closed) AS "closed_ago" FROM "issue" LEFT OUTER JOIN issue_order_in_admission_state AS "filter_issue_order" ON filter_issue_order.id = issue.id WHERE (issue.state = 'admission') ORDER BY filter_issue_order.order_in_unit, id LIMIT 25 OFFSET 0; 1.2 ms