explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ShZw

Settings
# exclusive inclusive rows x rows loops node
1. 4.143 16,339.877 ↓ 130.5 2,871 1

Sort (cost=50,401.19..50,401.25 rows=22 width=4) (actual time=16,339.276..16,339.877 rows=2,871 loops=1)

  • Sort Key: i0_.oid
  • Sort Method: quicksort Memory: 231kB
2. 1,511.667 16,335.734 ↓ 130.5 2,871 1

Nested Loop (cost=1,848.67..50,400.70 rows=22 width=4) (actual time=361.009..16,335.734 rows=2,871 loops=1)

  • Join Filter: (i1_.id_jdd = i2_.id_jdd)
  • Rows Removed by Join Filter: 7312229
3. 1,532.897 13,361.047 ↓ 266.7 731,510 1

Nested Loop (cost=1,848.40..49,953.70 rows=2,743 width=8) (actual time=355.981..13,361.047 rows=731,510 loops=1)

4. 2,806.309 3,160.182 ↓ 525.3 2,166,992 1

Bitmap Heap Scan on vm_requeteur_observations i0_ (cost=1,847.97..16,138.51 rows=4,125 width=8) (actual time=355.939..3,160.182 rows=2,166,992 loops=1)

  • Recheck Cond: (groupes_fonctionnels && '{12}'::integer[])
  • Rows Removed by Index Recheck: 1704409
5. 353.873 353.873 ↓ 525.3 2,166,992 1

Bitmap Index Scan on vm_requeteur_observations_groupes_fonctionnels_idx (cost=0.00..1,846.94 rows=4,125 width=0) (actual time=353.873..353.873 rows=2,166,992 loops=1)

  • Index Cond: (groupes_fonctionnels && '{12}'::integer[])
6. 8,667.968 8,667.968 ↓ 0.0 0 2,166,992

Index Scan using vm_requeteur_releves_rid_idx on vm_requeteur_releves i1_ (cost=0.43..8.19 rows=1 width=8) (actual time=0.004..0.004 rows=0 loops=2,166,992)

  • Index Cond: (rid = i0_.id_releve)
7. 1,462.996 1,463.020 ↑ 1.0 10 731,510

Materialize (cost=0.28..35.58 rows=10 width=4) (actual time=0.000..0.002 rows=10 loops=731,510)

8. 0.024 0.024 ↑ 1.0 10 1

Index Scan using jdd_id_ca_idx on jdd i2_ (cost=0.28..35.53 rows=10 width=4) (actual time=0.013..0.024 rows=10 loops=1)

  • Index Cond: (id_ca = 451)
Total runtime : 16,340.299 ms