explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rOdg

Settings
# exclusive inclusive rows x rows loops node
1. 14.212 129.463 ↑ 1.0 1 1

Aggregate (cost=23,697.53..23,697.54 rows=1 width=8) (actual time=129.463..129.463 rows=1 loops=1)

2. 17.128 115.251 ↓ 5.7 69,196 1

Gather (cost=1,282.91..23,667.26 rows=12,109 width=4) (actual time=1.492..115.251 rows=69,196 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 20.842 98.123 ↓ 4.6 23,065 3 / 3

Hash Join (cost=282.91..21,456.36 rows=5,045 width=4) (actual time=1.252..98.123 rows=23,065 loops=3)

  • Hash Cond: (api_currentreport.rule_id = api_rule.id)
4. 16.164 76.118 ↓ 8.6 75,444 3 / 3

Nested Loop (cost=0.98..21,091.26 rows=8,728 width=4) (actual time=0.037..76.118 rows=75,444 loops=3)

5. 8.013 8.013 ↓ 2.1 6,493 3 / 3

Parallel Index Only Scan using api_host_account_system_uuid_stale_warn_at_index on api_host (cost=0.43..1,274.99 rows=3,114 width=16) (actual time=0.019..8.013 rows=6,493 loops=3)

  • Index Cond: ((account = '729650'::text) AND (stale_warn_at > '2020-05-16 16:16:47.586377+00'::timestamp with time zone))
  • Heap Fetches: 617
6. 51.941 51.941 ↑ 6.2 12 19,478 / 3

Index Only Scan using curreport_system_uuid_rule_id on api_currentreport (cost=0.56..5.61 rows=75 width=20) (actual time=0.005..0.008 rows=12 loops=19,478)

  • Index Cond: (system_uuid = api_host.system_uuid)
  • Heap Fetches: 2438
7. 0.132 1.163 ↑ 1.1 696 3 / 3

Hash (cost=272.70..272.70 rows=738 width=4) (actual time=1.163..1.163 rows=696 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
8. 0.212 1.031 ↑ 1.1 696 3 / 3

Hash Anti Join (cost=28.06..272.70 rows=738 width=4) (actual time=0.265..1.031 rows=696 loops=3)

  • Hash Cond: (api_rule.id = api_ack.rule_id)
9. 0.570 0.570 ↑ 1.0 1,018 3 / 3

Seq Scan on api_rule (cost=0.00..223.77 rows=1,018 width=4) (actual time=0.008..0.570 rows=1,018 loops=3)

  • Filter: active
  • Rows Removed by Filter: 259
10. 0.064 0.249 ↑ 1.0 351 3 / 3

Hash (cost=23.68..23.68 rows=351 width=4) (actual time=0.249..0.249 rows=351 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 21kB
11. 0.185 0.185 ↑ 1.0 351 3 / 3

Seq Scan on api_ack (cost=0.00..23.68 rows=351 width=4) (actual time=0.006..0.185 rows=351 loops=3)

  • Filter: ((account)::text = '729650'::text)
  • Rows Removed by Filter: 752
Planning time : 0.598 ms
Execution time : 129.567 ms