SELECT "unit".* FROM "unit" WHERE (id = '53') LIMIT 1; 0.5 ms
SELECT "unit".* FROM "unit" WHERE (attr->'hidden' ISNULL OR NOT (attr->'hidden' = 'true')) AND (active) ORDER BY name; 1.5 ms
SELECT "area".* FROM "area" WHERE ("area"."unit_id" IN (53)) ORDER BY area.name, area.id; 1.0 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" INNER JOIN area AS "__filter_area" ON __filter_area.id = issue.area_id AND __filter_area.active LEFT OUTER JOIN issue_order_in_admission_state AS "filter_issue_order" ON filter_issue_order.id = issue.id WHERE (__filter_area.unit_id = 53) ORDER BY issue.closed DESC NULLS FIRST, issue.accepted ISNULL, CASE WHEN issue.accepted ISNULL THEN NULL ELSE 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()) END, CASE WHEN issue.accepted ISNULL THEN filter_issue_order.order_in_unit ELSE NULL END, id) AS "subquery" LIMIT 1; 2.7 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" INNER JOIN area AS "__filter_area" ON __filter_area.id = issue.area_id AND __filter_area.active LEFT OUTER JOIN issue_order_in_admission_state AS "filter_issue_order" ON filter_issue_order.id = issue.id WHERE (__filter_area.unit_id = 53) ORDER BY issue.closed DESC NULLS FIRST, issue.accepted ISNULL, CASE WHEN issue.accepted ISNULL THEN NULL ELSE 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()) END, CASE WHEN issue.accepted ISNULL THEN filter_issue_order.order_in_unit ELSE NULL END, id LIMIT 25 OFFSET 0; 1.2 ms
SELECT "area".* FROM "area" WHERE ("area"."id" IN (41)); 0.3 ms
SELECT "unit".* FROM "unit" WHERE ("unit"."id" IN (53)); 0.4 ms
SELECT "policy".*, 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" FROM "policy" WHERE ("policy"."id" IN (17)); 0.9 ms
SELECT "initiative".* FROM "initiative" WHERE ("initiative"."issue_id" IN (130)) ORDER BY initiative.admitted DESC NULLS LAST, initiative.rank NULLS LAST, initiative.harmonic_weight DESC NULLS LAST, id; 1.1 ms
SELECT "draft".* FROM "draft" WHERE ("initiative_id" = 148) ORDER BY "id" DESC LIMIT 1; 0.8 ms
SELECT "member".*, "initiator"."initiative_id" AS "mm_ref_", initiator.accepted AS "accepted" FROM "member" INNER JOIN "initiator" ON "initiator"."member_id" = "member"."id" WHERE ("initiator"."initiative_id" IN (148)) AND (initiator.accepted) ORDER BY member.name; 1.3 ms
SELECT count(1) FROM (SELECT "member".* FROM "member" INNER JOIN privilege ON privilege.member_id = member.id WHERE (active) AND (privilege.unit_id = '53') ORDER BY last_login DESC NULLS LAST, id DESC) AS "subquery" LIMIT 1; 0.8 ms
SELECT "member".* FROM "member" INNER JOIN privilege ON privilege.member_id = member.id WHERE (active) AND (privilege.unit_id = '53') AND (member.activated NOTNULL) ORDER BY last_login DESC NULLS LAST, id DESC LIMIT 50; 0.6 ms