explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 4qHi

Settings
# exclusive inclusive rows x rows loops node
1. 30.133 144.569 ↑ 1.0 1 1

Aggregate (cost=22,446.51..22,446.52 rows=1 width=8) (actual time=144.569..144.569 rows=1 loops=1)

2. 11.376 114.436 ↓ 5.8 69,129 1

Gather (cost=1,123.85..22,416.55 rows=11,984 width=16) (actual time=1.517..114.436 rows=69,129 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
3. 22.948 103.060 ↓ 4.9 34,564 2 / 2

Hash Join (cost=123.85..20,218.15 rows=7,049 width=16) (actual time=1.052..103.060 rows=34,564 loops=2)

  • Hash Cond: (api_currentreport.rule_id = api_rule.id)
4. 25.571 79.192 ↓ 9.3 113,064 2 / 2

Nested Loop (cost=0.86..19,978.95 rows=12,195 width=20) (actual time=0.069..79.192 rows=113,064 loops=2)

5. 4.986 4.986 ↓ 2.2 9,727 2 / 2

Parallel Index Only Scan using api_host_account_system_uuid_stale_warn_at_index on api_host (cost=0.43..1,038.07 rows=4,375 width=16) (actual time=0.041..4.986 rows=9,727 loops=2)

  • Index Cond: ((account = '729650'::text) AND (stale_warn_at > '2020-05-16 16:16:47.586377+00'::timestamp with time zone))
  • Heap Fetches: 0
6. 48.635 48.635 ↑ 1.3 12 19,454 / 2

Index Only Scan using api_currentreport_system_uuid_rule_id_index on api_currentreport (cost=0.43..4.17 rows=16 width=20) (actual time=0.004..0.005 rows=12 loops=19,454)

  • Index Cond: (system_uuid = api_host.system_uuid)
  • Heap Fetches: 0
7. 0.151 0.920 ↑ 1.1 696 2 / 2

Hash (cost=113.77..113.77 rows=738 width=4) (actual time=0.920..0.920 rows=696 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 33kB
8. 0.290 0.769 ↑ 1.1 696 2 / 2

Hash Anti Join (cost=23.09..113.77 rows=738 width=4) (actual time=0.192..0.769 rows=696 loops=2)

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

Index Only Scan using api_rule_active_id_rule_id_index2 on api_rule (cost=0.28..70.09 rows=1,018 width=4) (actual time=0.020..0.317 rows=1,018 loops=2)

  • Index Cond: (active = true)
  • Filter: active
  • Heap Fetches: 0
10. 0.068 0.162 ↑ 1.0 351 2 / 2

Hash (cost=18.42..18.42 rows=351 width=4) (actual time=0.162..0.162 rows=351 loops=2)

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

Index Only Scan using api_ack_account_rule_id_index on api_ack (cost=0.28..18.42 rows=351 width=4) (actual time=0.029..0.094 rows=351 loops=2)

  • Index Cond: (account = '729650'::text)
  • Heap Fetches: 0
Planning time : 1.083 ms
Execution time : 144.727 ms