explain.depesz.com

PostgreSQL's explain analyze made readable

Result: N77J

Settings
# exclusive inclusive rows x rows loops node
1. 7.588 176.150 ↑ 1.0 1 1

Aggregate (cost=52,043.16..52,043.17 rows=1 width=8) (actual time=176.150..176.150 rows=1 loops=1)

2. 168.562 168.562 ↓ 1.0 116,382 1

Index Scan using contacts_pkey on contacts (cost=0.44..51,752.41 rows=116,300 width=0) (actual time=0.039..168.562 rows=116,382 loops=1)

  • Index Cond: (company_id = (current_setting('nimble.company_id'::text))::bytea)
  • Filter: ((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[]))
Planning time : 0.503 ms
Execution time : 176.217 ms