explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WtCw

Settings
# exclusive inclusive rows x rows loops node
1. 0.010 51.032 ↓ 107.0 107 1

Subquery Scan on v_no_ass2 (cost=228,898.51..228,898.53 rows=1 width=214) (actual time=50.995..51.032 rows=107 loops=1)

2. 0.269 51.022 ↓ 107.0 107 1

HashAggregate (cost=228,898.51..228,898.52 rows=1 width=78) (actual time=50.994..51.022 rows=107 loops=1)

3. 0.113 50.753 ↓ 195.0 195 1

Nested Loop (cost=1.71..228,898.47 rows=1 width=78) (actual time=13.557..50.753 rows=195 loops=1)

4. 0.740 50.246 ↓ 197.0 197 1

Nested Loop (cost=1.28..228,892.82 rows=1 width=66) (actual time=13.549..50.246 rows=197 loops=1)

  • Join Filter: ((t_caso.tp_accesso)::text = (t_tp_accesso.tp_accesso)::text)
  • Rows Removed by Join Filter: 2364
5. 0.048 49.112 ↓ 197.0 197 1

Nested Loop (cost=1.28..228,891.47 rows=1 width=64) (actual time=13.527..49.112 rows=197 loops=1)

6. 0.000 48.670 ↓ 197.0 197 1

Nested Loop Left Join (cost=0.85..228,886.21 rows=1 width=62) (actual time=13.520..48.670 rows=197 loops=1)

  • Filter: (c.dt_cancel IS NULL)
7. 1.562 48.290 ↓ 197.0 197 1

Nested Loop (cost=0.43..228,880.92 rows=1 width=50) (actual time=13.511..48.290 rows=197 loops=1)

8. 40.092 40.092 ↑ 10.3 3,318 1

Seq Scan on t_blocchetto b (cost=0.00..6,428.39 rows=34,299 width=28) (actual time=0.041..40.092 rows=3,318 loops=1)

  • Filter: ((dt_cancel IS NULL) AND (((fl_estemporanea)::text <> 'S'::text) OR (fl_estemporanea IS NULL)) AND ((tp_inclusione IS NULL) OR ((tp_inclusione)::text <> 'O'::text)) AND (user_inclusione = 0) AND ((tp_bloc (...)
  • Rows Removed by Filter: 153032
9. 6.636 6.636 ↓ 0.0 0 3,318

Index Scan using t_caso2 on t_caso (cost=0.43..6.48 rows=1 width=40) (actual time=0.002..0.002 rows=0 loops=3,318)

  • Index Cond: (id_acc_mat = b.id_acc_mat)
  • Filter: ((dt_cancel IS NULL) AND (id_caso_p = id_caso) AND (((fl_stato)::text <> ALL ('{I,P,V,R,Z,F}'::text[])) OR ((b.splittato)::text = 'S'::text)))
  • Rows Removed by Filter: 1
10. 0.394 0.394 ↑ 1.0 1 197

Index Scan using p_t_campionamento on t_campionamento c (cost=0.43..5.28 rows=1 width=24) (actual time=0.001..0.002 rows=1 loops=197)

  • Index Cond: (b.id_campionamento = id_campionamento)
11. 0.394 0.394 ↑ 1.0 1 197

Index Scan using p_t_prelievo on t_prelievo (cost=0.43..5.25 rows=1 width=10) (actual time=0.002..0.002 rows=1 loops=197)

  • Index Cond: (id_prelievo = b.id_prelievo)
  • Filter: (dt_cancel IS NULL)
12. 0.394 0.394 ↑ 1.0 13 197

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

  • Filter: (dt_cancel IS NULL)
  • Rows Removed by Filter: 6
13. 0.394 0.394 ↑ 1.0 1 197

Index Scan using p_t_paziente on t_paziente (cost=0.42..5.63 rows=1 width=20) (actual time=0.002..0.002 rows=1 loops=197)

  • Index Cond: (id_paziente = t_caso.id_paziente)
  • Filter: (dt_cancel IS NULL)
Total runtime : 51.197 ms