explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kJht

Settings
# exclusive inclusive rows x rows loops node
1. 0.012 63.476 ↑ 1.0 1 1

Aggregate (cost=303,829.90..303,829.91 rows=1 width=8) (actual time=63.476..63.476 rows=1 loops=1)

2.          

CTE da_events

3. 0.001 0.034 ↑ 215,307.0 1 1

Append (cost=0.43..204,254.95 rows=215,307 width=284) (actual time=0.034..0.034 rows=1 loops=1)

4. 0.033 0.033 ↑ 215,307.0 1 1

Index Scan using events_org_part_1_created_idx on events_org_part_1 e_1 (cost=0.43..203,178.42 rows=215,307 width=284) (actual time=0.033..0.033 rows=1 loops=1)

  • Index Cond: (created >= '2019-06-03 19:08:29-07'::timestamp with time zone)
  • Filter: (upper_inf(valid_range) AND (organization_uuid = 'a214aa3a-e70c-41bc-8bad-db588e255138'::uuid) AND ((event_type)::text = 'USER'::text))
5. 0.006 63.464 ↓ 0.0 0 1

Hash Join (cost=92,577.12..99,574.87 rows=28 width=0) (actual time=63.464..63.464 rows=0 loops=1)

  • Hash Cond: (e.submitter_uuid = p.person_uuid)
6. 0.038 0.038 ↑ 215,307.0 1 1

CTE Scan on da_events e (cost=0.00..4,306.14 rows=215,307 width=16) (actual time=0.038..0.038 rows=1 loops=1)

7. 0.003 63.420 ↓ 0.0 0 1

Hash (cost=92,577.02..92,577.02 rows=8 width=16) (actual time=63.419..63.420 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
8. 23.816 63.417 ↓ 0.0 0 1

Bitmap Heap Scan on persons p (cost=3,951.16..92,577.02 rows=8 width=16) (actual time=63.417..63.417 rows=0 loops=1)

  • Recheck Cond: ((organization_uuid = 'a214aa3a-e70c-41bc-8bad-db588e255138'::uuid) AND (valid_range @> '2019-07-03 19:08:29-07'::timestamp with time zone))
  • Filter: ((target_name)::text ~~* '%call tree%'::text)
  • Rows Removed by Filter: 19100
  • Heap Blocks: exact=2976
9. 39.601 39.601 ↑ 4.3 20,036 1

Bitmap Index Scan on persons_org_valid_range_gist (cost=0.00..3,951.15 rows=86,374 width=0) (actual time=39.601..39.601 rows=20,036 loops=1)

  • Index Cond: ((organization_uuid = 'a214aa3a-e70c-41bc-8bad-db588e255138'::uuid) AND (valid_range @> '2019-07-03 19:08:29-07'::timestamp with time zone))
Planning time : 5.373 ms
Execution time : 63.602 ms