explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ycd5 : Optimization for: plan #EYye

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 121.064 521.893 ↓ 1.0 2,291 1

GroupAggregate (cost=0.42..59,488.66 rows=2,228 width=48) (actual time=0.271..521.893 rows=2,291 loops=1)

  • Group Key: asset_id
2. 400.829 400.829 ↑ 1.0 571,371 1

Index Only Scan using security_policy_risk_pkey on security_policy_risk (cost=0.42..56,603.85 rows=571,392 width=32) (actual time=0.074..400.829 rows=571,371 loops=1)

  • Index Cond: (tenant_id = '7b26e0d9-d493-30c1-ac75-38d68d70538d'::uuid)
  • Heap Fetches: 571371
Planning time : 0.510 ms
Execution time : 522.179 ms