explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Gypj : Optimization for: plan #JDQi

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 104.331 333.564 ↓ 1.0 2,291 1

GroupAggregate (cost=0.42..60,917.14 rows=2,228 width=64) (actual time=0.195..333.564 rows=2,291 loops=1)

  • Group Key: tenant_id, asset_id
2. 229.233 229.233 ↑ 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=48) (actual time=0.030..229.233 rows=571,371 loops=1)

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