explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rQpT

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 15,561.669 ↓ 0.0 0 1

GroupAggregate (cost=6,382.15..6,382.20 rows=1 width=552) (actual time=15,561.669..15,561.669 rows=0 loops=1)

  • Group Key: datielabap0_.cod_periodo, datielabap0_.cod_dest2, datielabap0_.cod_dest5
  • Filter: (abs(sum(datielabap0_.importo_cambio)) <> '0'::numeric)
  • Buffers: local hit=6775408 read=6244
2. 0.008 15,561.667 ↓ 0.0 0 1

Sort (cost=6,382.15..6,382.16 rows=1 width=582) (actual time=15,561.667..15,561.667 rows=0 loops=1)

  • Sort Key: datielabap0_.cod_dest2, datielabap0_.cod_dest5
  • Sort Method: quicksort Memory: 25kB
  • Buffers: local hit=6775408 read=6244
3. 0.001 15,561.659 ↓ 0.0 0 1

Nested Loop (cost=0.81..6,382.14 rows=1 width=582) (actual time=15,561.659..15,561.659 rows=0 loops=1)

  • Join Filter: ((datielabap0_.cod_conto)::text = (appk1x3_.k1)::text)
  • Buffers: local hit=6775408 read=6244
4. 0.001 15,561.658 ↓ 0.0 0 1

Nested Loop (cost=0.54..6,379.64 rows=1 width=582) (actual time=15,561.658..15,561.658 rows=0 loops=1)

  • Join Filter: ((datielabap0_.cod_azienda)::text = (appk1x2_.k1)::text)
  • Buffers: local hit=6775408 read=6244
5. 6,331.973 15,561.657 ↓ 0.0 0 1

Nested Loop (cost=0.27..6,377.14 rows=1 width=582) (actual time=15,561.656..15,561.657 rows=0 loops=1)

  • Join Filter: ((datielabap0_.cod_dest5)::text = (appk1x1_.k1)::text)
  • Rows Removed by Join Filter: 18971148
  • Buffers: local hit=6775408 read=6244
6. 195.804 195.804 ↓ 225,847.0 225,847 1

Seq Scan on app_consu datielabap0_ (cost=0.00..6,374.64 rows=1 width=582) (actual time=0.016..195.804 rows=225,847 loops=1)

  • Filter: (((cod_periodo)::text = '03'::text) AND ((cod_scenario)::text = 'BGT2019NO2'::text) AND ((cod_categoria)::text = 'REVENUE'::text) AND ((cod_regola)::text = ANY ('{01R,02,$R$f$}'::text[])))
  • Rows Removed by Filter: 5134
  • Buffers: local read=6242
7. 9,033.880 9,033.880 ↓ 84.0 84 225,847

Index Only Scan using kkk on app_consu_k1 appk1x1_ (cost=0.27..2.49 rows=1 width=516) (actual time=0.004..0.040 rows=84 loops=225,847)

  • Index Cond: (cid = 'FF8081816B1C9D4F016B1CC677311293'::text)
  • Heap Fetches: 18971148
  • Buffers: local hit=6775408 read=2
8. 0.000 0.000 ↓ 0.0 0

Index Only Scan using kkk on app_consu_k1 appk1x2_ (cost=0.27..2.49 rows=1 width=516) (never executed)

  • Index Cond: (cid = 'FF8081816B1C9D4F016B1CC6A51412D1'::text)
  • Heap Fetches: 0
9. 0.000 0.000 ↓ 0.0 0

Index Only Scan using kkk on app_consu_k1 appk1x3_ (cost=0.27..2.49 rows=1 width=516) (never executed)

  • Index Cond: (cid = 'FF8081816B1C9D4F016B1CC6861312A6'::text)
  • Heap Fetches: 0