explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SQBN : Optimization for: Optimization for: Optimization for: Optimization for: plan #EnRL; plan #HHM9; plan #FxYF; plan #AU47

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.001 0.015 ↓ 0.0 0 1

Hash Semi Join (cost=31.97..40.46 rows=1 width=415) (actual time=0.015..0.015 rows=0 loops=1)

  • Hash Cond: (dossier0_.id = dossierrec1_.id)
  • Join Filter: (NOT (SubPlan 1))
2. 0.002 0.014 ↓ 0.0 0 1

Bitmap Heap Scan on dossier dossier0_ (cost=4.30..12.79 rows=1 width=415) (actual time=0.014..0.014 rows=0 loops=1)

  • Recheck Cond: (provider = 64)
  • Filter: ((NOT for_delete) AND (((modificationdate IS NULL) AND ((insertion_date)::date < '2020-06-08'::date)) OR ((modificationdate IS NOT NULL) AND ((modificationdate)::date < '2020-06-08'::date))))
3. 0.012 0.012 ↓ 0.0 0 1

Bitmap Index Scan on idx_dossier_provider_id (cost=0.00..4.29 rows=3 width=0) (actual time=0.012..0.012 rows=0 loops=1)

  • Index Cond: (provider = 64)
4. 0.000 0.000 ↓ 0.0 0

Hash (cost=17.30..17.30 rows=830 width=16) (never executed)

5. 0.000 0.000 ↓ 0.0 0

Seq Scan on dossier_receivers dossierrec1_ (cost=0.00..17.30 rows=830 width=16) (never executed)

6.          

SubPlan (for Hash Semi Join)

7. 0.000 0.000 ↓ 0.0 0

Bitmap Heap Scan on activation_code activation2_ (cost=13.29..25.20 rows=1 width=0) (never executed)

  • Recheck Cond: ((id = dossier0_.activation_code_patient_id) OR (id = dossier0_.activation_code_prescriber_id) OR (id = dossierrec1_.activation_code_id))
  • Filter: ((state)::text = 'UNSUBSCRIBE'::text)
8. 0.000 0.000 ↓ 0.0 0

BitmapOr (cost=13.29..13.29 rows=3 width=0) (never executed)

9. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on activation_code_pkey (cost=0.00..4.43 rows=1 width=0) (never executed)

  • Index Cond: (id = dossier0_.activation_code_patient_id)
10. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on activation_code_pkey (cost=0.00..4.43 rows=1 width=0) (never executed)

  • Index Cond: (id = dossier0_.activation_code_prescriber_id)
11. 0.000 0.000 ↓ 0.0 0

Bitmap Index Scan on activation_code_pkey (cost=0.00..4.43 rows=1 width=0) (never executed)

  • Index Cond: (id = dossierrec1_.activation_code_id)