explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Yg0

Settings
# exclusive inclusive rows x rows loops node
1. 3.211 249.383 ↓ 5,157.0 5,157 1

Nested Loop Left Join (cost=1,594.55..171,115.11 rows=1 width=10,298) (actual time=5.303..249.383 rows=5,157 loops=1)

  • Filter: (c.dt_cancel IS NULL)
2. 4.511 235.858 ↓ 5,157.0 5,157 1

Nested Loop (cost=1,594.12..171,108.60 rows=1 width=10,278) (actual time=5.294..235.858 rows=5,157 loops=1)

3. 4.934 221.033 ↓ 5,157.0 5,157 1

Nested Loop (cost=1,593.70..171,102.10 rows=1 width=9,430) (actual time=5.283..221.033 rows=5,157 loops=1)

4. 22.509 205.223 ↓ 5,438.0 5,438 1

Nested Loop (cost=1,593.28..171,095.61 rows=1 width=8,601) (actual time=5.273..205.223 rows=5,438 loops=1)

  • Join Filter: ((t_caso.tp_accesso)::text = (t_tp_accesso.tp_accesso)::text)
  • Rows Removed by Join Filter: 65256
5. 5.113 171.838 ↓ 5,438.0 5,438 1

Nested Loop (cost=1,593.28..171,094.25 rows=1 width=8,523) (actual time=5.254..171.838 rows=5,438 loops=1)

6. 4.058 155.781 ↓ 5,472.0 5,472 1

Nested Loop (cost=1,592.85..171,087.35 rows=1 width=6,672) (actual time=5.244..155.781 rows=5,472 loops=1)

  • Join Filter: (t_caso_1.id_caso_p = t_caso.id_caso)
  • Rows Removed by Join Filter: 2806
7. 2.607 140.771 ↓ 101.4 5,476 1

Nested Loop (cost=1,592.43..170,692.38 rows=54 width=3,486) (actual time=5.236..140.771 rows=5,476 loops=1)

8. 19.677 48.654 ↓ 2.0 44,755 1

Hash Left Join (cost=1,592.00..7,319.50 rows=22,322 width=300) (actual time=5.221..48.654 rows=44,755 loops=1)

  • Hash Cond: ((t_vetrino.id_colorazione)::text = (t_colorazione.id_colorazione)::text)
  • Filter: (((t_colorazione.tp_colorazione)::text <> 'R'::text) OR (t_vetrino.id_colorazione IS NULL))
9. 24.371 28.960 ↓ 2.0 44,755 1

Bitmap Heap Scan on t_vetrino (cost=1,589.97..7,062.74 rows=22,679 width=249) (actual time=5.189..28.960 rows=44,755 loops=1)

  • Recheck Cond: (user_taglio = 0)
  • Filter: ((dt_cancel IS NULL) AND (annullato IS NULL) AND (user_consegna = 0))
  • Rows Removed by Filter: 41466
10. 4.589 4.589 ↓ 1.0 86,221 1

Bitmap Index Scan on i_ppppp (cost=0.00..1,584.31 rows=85,318 width=0) (actual time=4.589..4.589 rows=86,221 loops=1)

  • Index Cond: (user_taglio = 0)
11. 0.008 0.017 ↑ 1.0 38 1

Hash (cost=1.55..1.55 rows=38 width=51) (actual time=0.017..0.017 rows=38 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 3kB
12. 0.009 0.009 ↑ 1.0 38 1

Seq Scan on t_colorazione (cost=0.00..1.55 rows=38 width=51) (actual time=0.005..0.009 rows=38 loops=1)

  • Filter: (dt_cancel IS NULL)
  • Rows Removed by Filter: 17
13. 89.510 89.510 ↓ 0.0 0 44,755

Index Scan using p_t_caso on t_caso t_caso_1 (cost=0.43..7.31 rows=1 width=3,186) (actual time=0.002..0.002 rows=0 loops=44,755)

  • Index Cond: (id_caso = t_vetrino.id_caso)
  • Filter: ((dt_cancel IS NULL) AND ((fl_stato)::text <> ALL ('{I,P,V,R,Z,F}'::text[])))
  • Rows Removed by Filter: 1
14. 10.952 10.952 ↓ 2.0 2 5,476

Index Scan using t_caso2 on t_caso (cost=0.43..7.30 rows=1 width=3,186) (actual time=0.001..0.002 rows=2 loops=5,476)

  • Index Cond: (id_acc_mat = t_vetrino.id_acc_mat)
  • Filter: (dt_cancel IS NULL)
  • Rows Removed by Filter: 0
15. 10.944 10.944 ↑ 1.0 1 5,472

Index Scan using p_t_paziente on t_paziente (cost=0.42..6.90 rows=1 width=1,851) (actual time=0.002..0.002 rows=1 loops=5,472)

  • Index Cond: (id_paziente = t_caso_1.id_paziente)
  • Filter: (dt_cancel IS NULL)
  • Rows Removed by Filter: 0
16. 10.876 10.876 ↑ 1.0 13 5,438

Seq Scan on t_tp_accesso (cost=0.00..1.19 rows=13 width=78) (actual time=0.001..0.002 rows=13 loops=5,438)

  • Filter: (dt_cancel IS NULL)
  • Rows Removed by Filter: 6
17. 10.876 10.876 ↑ 1.0 1 5,438

Index Scan using p_t_blocchetto on t_blocchetto b (cost=0.42..6.48 rows=1 width=829) (actual time=0.002..0.002 rows=1 loops=5,438)

  • Index Cond: (id_blocchetto = t_vetrino.id_blocchetto)
  • Filter: ((dt_cancel IS NULL) AND ((tp_blocchetto)::text <> 'P'::text))
  • Rows Removed by Filter: 0
18. 10.314 10.314 ↑ 1.0 1 5,157

Index Scan using p_t_prelievo on t_prelievo (cost=0.43..6.50 rows=1 width=848) (actual time=0.002..0.002 rows=1 loops=5,157)

  • Index Cond: (id_prelievo = b.id_prelievo)
  • Filter: ((dt_cancel IS NULL) AND ((cd_prelievo)::text <> '-'::text))
19. 10.314 10.314 ↑ 1.0 1 5,157

Index Scan using p_t_campionamento on t_campionamento c (cost=0.43..6.50 rows=1 width=28) (actual time=0.002..0.002 rows=1 loops=5,157)

  • Index Cond: (b.id_campionamento = id_campionamento)
Total runtime : 250.332 ms