SELECT "initiative".* FROM "initiative" WHERE (id = 101) LIMIT 1; 2.4 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" WHERE ("issue"."id" IN (83)); 2.0 ms
SELECT "area".* FROM "area" WHERE ("area"."id" IN (15)); 0.8 ms
SELECT "unit".* FROM "unit" WHERE ("unit"."id" IN (23)); 0.6 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.8 ms
SELECT "initiative".* FROM "initiative" WHERE ("initiative"."issue_id" IN (83)) ORDER BY initiative.admitted DESC NULLS LAST, initiative.rank NULLS LAST, initiative.harmonic_weight DESC NULLS LAST, id; 0.8 ms
SELECT "draft".* FROM "draft" WHERE ("draft"."initiative_id" IN (101)) ORDER BY "id" DESC; 1.0 ms
SELECT "member".* FROM "member" WHERE ("member"."id" IN (93)); 1.2 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 (101)) AND (initiator.accepted) ORDER BY member.name; 1.5 ms
SELECT count(1) FROM (SELECT "member".*, direct_interest_snapshot."issue_id" AS "mm_ref_", direct_interest_snapshot.ownweight, direct_interest_snapshot.weight, direct_supporter_snapshot.member_id NOTNULL AS "supporter", satisfied AS "supporter_satisfied", member.id = ANY(_member_list__delegating_interest.delegate_member_ids) AS "in_delegation_chain" FROM "member" INNER JOIN direct_interest_snapshot ON direct_interest_snapshot."member_id" = "member"."id" INNER JOIN issue ON issue.id = direct_interest_snapshot.issue_id LEFT OUTER JOIN direct_supporter_snapshot ON direct_supporter_snapshot.initiative_id = 101 AND direct_interest_snapshot.issue_id = direct_supporter_snapshot.issue_id AND direct_supporter_snapshot.member_id = direct_interest_snapshot.member_id AND direct_supporter_snapshot.snapshot_id = issue.latest_snapshot_id LEFT OUTER JOIN delegating_interest_snapshot AS "_member_list__delegating_interest" ON _member_list__delegating_interest.snapshot_id = issue.latest_snapshot_id AND _member_list__delegating_interest.issue_id = issue.id AND _member_list__delegating_interest.member_id = NULL WHERE (direct_interest_snapshot."issue_id" IN (83)) AND (direct_interest_snapshot.snapshot_id = issue.latest_snapshot_id) AND (member.activated NOTNULL)) AS "subquery" LIMIT 1; 3.1 ms
SELECT "member".*, direct_interest_snapshot."issue_id" AS "mm_ref_", direct_interest_snapshot.ownweight, direct_interest_snapshot.weight, direct_supporter_snapshot.member_id NOTNULL AS "supporter", satisfied AS "supporter_satisfied", member.id = ANY(_member_list__delegating_interest.delegate_member_ids) AS "in_delegation_chain" FROM "member" INNER JOIN direct_interest_snapshot ON direct_interest_snapshot."member_id" = "member"."id" INNER JOIN issue ON issue.id = direct_interest_snapshot.issue_id LEFT OUTER JOIN direct_supporter_snapshot ON direct_supporter_snapshot.initiative_id = 101 AND direct_interest_snapshot.issue_id = direct_supporter_snapshot.issue_id AND direct_supporter_snapshot.member_id = direct_interest_snapshot.member_id AND direct_supporter_snapshot.snapshot_id = issue.latest_snapshot_id LEFT OUTER JOIN delegating_interest_snapshot AS "_member_list__delegating_interest" ON _member_list__delegating_interest.snapshot_id = issue.latest_snapshot_id AND _member_list__delegating_interest.issue_id = issue.id AND _member_list__delegating_interest.member_id = NULL WHERE (direct_interest_snapshot."issue_id" IN (83)) AND (direct_interest_snapshot.snapshot_id = issue.latest_snapshot_id) AND (member.activated NOTNULL) LIMIT 100 OFFSET 0; 1.9 ms