explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 6ka6 : slow

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Aggregate (cost=73.18..73.19 rows=1 width=4) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.97..73.18 rows=1 width=4) (actual rows= loops=)

  • Join Filter: ((caracteris2_.id_lieustockage)::text = (lieustocka3_.id)::text)
3. 0.000 0.000 ↓ 0.0

Seq Scan on dm5_lieustockage lieustocka3_ (cost=0.00..1.44 rows=1 width=138) (actual rows= loops=)

  • Filter: ((id_etablissement)::text = ($2)::text)
4. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.97..71.62 rows=10 width=37) (actual rows= loops=)

5. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.83..69.94 rows=10 width=37) (actual rows= loops=)

6. 0.000 0.000 ↓ 0.0

Index Scan using x_dm5_caracteristiquearticlestock_00 on dm5_caracteristiquearticlestock caracteris1_ (cost=0.42..20.99 rows=20 width=33) (actual rows= loops=)

  • Index Cond: ((id_article)::text = ($1)::text)
7. 0.000 0.000 ↓ 0.0

Index Scan using x_dm5_quantitestock_00 on dm5_quantitestock quantitest0_ (cost=0.42..2.44 rows=1 width=70) (actual rows= loops=)

  • Index Cond: ((id_caracteristiquearticlestock)::text = (caracteris1_.id)::text)
  • Filter: ((datefinvalidite IS NULL) AND (quantite_valeur <> '0'::numeric))
8. 0.000 0.000 ↓ 0.0

Index Scan using dm5_caracteristiquelieustock_pkey on dm5_caracteristiquelieustock caracteris2_ (cost=0.14..0.16 rows=1 width=66) (actual rows= loops=)

  • Index Cond: ((id)::text = (quantitest0_.id_caracteristiquelieustock)::text)