explain.depesz.com

PostgreSQL's explain analyze made readable

Result: LpMN : Optimization for: plan #mDKe

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 226.103 370.033 ↓ 7.1 516,318 1

Hash Join (cost=624.72..18,080.99 rows=72,933 width=32) (actual time=1.703..370.033 rows=516,318 loops=1)

  • Hash Cond: (r.access_id = aa.access_id)
2. 142.322 142.322 ↑ 1.0 571,371 1

Seq Scan on security_policy_risk r (cost=0.00..15,956.14 rows=571,371 width=48) (actual time=0.081..142.322 rows=571,371 loops=1)

  • Filter: (tenant_id = '7b26e0d9-d493-30c1-ac75-38d68d70538d'::uuid)
3. 0.400 1.608 ↑ 1.0 2,763 1

Hash (cost=590.18..590.18 rows=2,763 width=32) (actual time=1.608..1.608 rows=2,763 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 205kB
4. 1.004 1.208 ↑ 1.0 2,763 1

Bitmap Heap Scan on access_application aa (cost=316.73..590.18 rows=2,763 width=32) (actual time=0.237..1.208 rows=2,763 loops=1)

  • Recheck Cond: ((tenant_id = '7b26e0d9-d493-30c1-ac75-38d68d70538d'::uuid) AND (application_id = '8a8bb7cd-343a-32ad-99b7-d762030857a2'::uuid))
  • Heap Blocks: exact=148
5. 0.204 0.204 ↑ 1.0 2,763 1

Bitmap Index Scan on idx_access_application_application (cost=0.00..316.04 rows=2,763 width=0) (actual time=0.204..0.204 rows=2,763 loops=1)

  • Index Cond: ((tenant_id = '7b26e0d9-d493-30c1-ac75-38d68d70538d'::uuid) AND (application_id = '8a8bb7cd-343a-32ad-99b7-d762030857a2'::uuid))
Planning time : 0.368 ms
Execution time : 408.205 ms