explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HqE

Settings
# exclusive inclusive rows x rows loops node
1. 0.008 338.228 ↑ 1.0 1 1

Aggregate (cost=303,829.85..303,829.86 rows=1 width=8) (actual time=338.228..338.228 rows=1 loops=1)

2.          

CTE da_events

3. 0.002 0.209 ↑ 215,307.0 1 1

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

4. 0.207 0.207 ↑ 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.207..0.207 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.045 338.220 ↓ 0.0 0 1

Hash Join (cost=92,577.07..99,574.83 rows=28 width=0) (actual time=338.220..338.220 rows=0 loops=1)

  • Hash Cond: (e.submitter_uuid = p.person_uuid)
6. 0.215 0.215 ↑ 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.215..0.215 rows=1 loops=1)

7. 0.003 337.960 ↓ 0.0 0 1

Hash (cost=92,576.97..92,576.97 rows=8 width=16) (actual time=337.959..337.960 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
8. 62.641 337.957 ↓ 0.0 0 1

Bitmap Heap Scan on persons p (cost=3,951.16..92,576.97 rows=8 width=16) (actual time=337.957..337.957 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: ((is_visible IS TRUE) AND ((target_name)::text ~~* '%call tree%'::text))
  • Rows Removed by Filter: 19100
  • Heap Blocks: exact=2976
9. 275.316 275.316 ↑ 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=275.316..275.316 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.060 ms
Execution time : 339.452 ms