SELECT "unit".* FROM "unit" WHERE (id = '3') LIMIT 1; 1.9 ms
SELECT "unit".* FROM "unit" WHERE (attr->'hidden' ISNULL OR NOT (attr->'hidden' = 'true')) AND (active) ORDER BY name; 1.6 ms
SELECT "area".* FROM "area" WHERE ("area"."unit_id" IN (3)) ORDER BY area.name, area.id; 3.3 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 WHERE (__filter_area.unit_id = 3) AND (issue.state = 'voting') ORDER BY issue.fully_frozen + issue.voting_time - now(), id) AS "subquery" LIMIT 1; 3.1 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 WHERE (__filter_area.unit_id = 3) AND (issue.state = 'voting') ORDER BY issue.fully_frozen + issue.voting_time - now(), id LIMIT 25 OFFSET 0; 3.0 ms
SELECT count(1) FROM (SELECT "member".* FROM "member" INNER JOIN privilege ON privilege.member_id = member.id WHERE (active) AND (privilege.unit_id = '3') ORDER BY last_login DESC NULLS LAST, id DESC) AS "subquery" LIMIT 1; 3.9 ms
SELECT "member".* FROM "member" INNER JOIN privilege ON privilege.member_id = member.id WHERE (active) AND (privilege.unit_id = '3') AND (member.activated NOTNULL) ORDER BY last_login DESC NULLS LAST, id DESC LIMIT 50; 2.0 ms