explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lxUc

Settings
# exclusive inclusive rows x rows loops node
1. 3.011 459.479 ↑ 1.0 1 1

Aggregate (cost=64,225.72..64,225.73 rows=1 width=8) (actual time=459.479..459.479 rows=1 loops=1)

2. 456.468 456.468 ↓ 17.7 50,000 1

Index Scan using contacts_pkey on contacts (cost=0.44..64,218.68 rows=2,819 width=0) (actual time=0.022..456.468 rows=50,000 loops=1)

  • Index Cond: (company_id = (current_setting('nimble.company_id'::text))::bytea)
  • Filter: (((owner_id IS NOT NULL) AND (owner_id = (current_setting('nimble.user_id'::text))::bytea)) OR (read_for_users && '{""\\x00""}'::bytea[]) OR (read_for_users && ARRAY[(current_setting('nimble.user_id'::text))::bytea]) OR (read_for_groups && (string_to_array(current_setting('nimble.group_ids'::text), ','::text))::bytea[]) OR (edit_for_users && ARRAY[(current_setting('nimble.user_id'::text))::bytea]) OR (edit_for_groups && (string_to_array(current_setting('nimble.group_ids'::text), ','::text))::bytea[]))
  • Rows Removed by Filter: 66,382
Planning time : 0.311 ms
Execution time : 459.529 ms