explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Mqvq

Settings
# exclusive inclusive rows x rows loops node
1. 0.011 11,900.356 ↑ 5.0 1 1

Nested Loop (cost=0.03..5,307.76 rows=5 width=128) (actual time=11,900.352..11,900.356 rows=1 loops=1)

  • Buffers: shared hit=2353395 read=12711
2. 0.103 0.103 ↑ 1.0 1 1

Index Scan using _reference22_pkey on _reference22 t13 (cost=0.03..0.84 rows=1 width=40) (actual time=0.099..0.103 rows=1 loops=1)

  • Index Cond: (t13._idrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea)
  • Buffers: shared read=3
3. 7.806 11,900.242 ↑ 5.0 1 1

Aggregate (cost=0..5,306.81 rows=5 width=286) (actual time=11,900.241..11,900.242 rows=1 loops=1)

  • Filter: ((CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum(((t3._fld606 + t3._turnover620))) IS NULL) THEN '0'::numeric ELSE sum(((t3._fld606 + t3._turnover620))) END <> '0'::numeric) OR (CASE WHEN (sum((((t3._fld606 + t3._turnover620)) + (0.00::numeric(15,2)))) IS NULL) THEN '0'::numeric ELSE sum((((t3._fld606 + t3._turnover620)) + (0.00::numeric(15,2)))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum((0.00::numeric(15,2))) IS NULL) THEN '0'::numeric ELSE sum((0.00::numeric(15,2))) END <> '0'::numeric) OR (CASE WHEN (sum(((t3._fld605 + t3._turnover617))) IS NULL) THEN '0'::numeric ELSE sum(((t3._fld605 + t3._turnover617))) END <> '0'::numeric) OR (CASE WHEN (sum((((t3._fld605 + t3._turnover617)) + (0.00::numeric(15,2)))) IS NULL) THEN '0'::numeric ELSE sum((((t3._fld605 + t3._turnover617)) + (0.00::numeric(15,2)))) END <> '0'::numeric))
  • Buffers: shared hit=2353395 read=12708
4. 1.063 11,892.436 ↓ 553.8 2,769 1

Append (cost=0..5,306.67 rows=5 width=212) (actual time=0.392..11,892.436 rows=2,769 loops=1)

  • Buffers: shared hit=2353395 read=12708
5. 190.567 190.567 ↓ 239.0 239 1

Seq Scan on _accrgat2634 t3 (cost=0..5,299.66 rows=1 width=202) (actual time=0.391..190.567 rows=239 loops=1)

  • Filter: ((t3._value1_type = '\\010'::bytea) AND (t3._value1_rtref = '\\000\\000\\000\\026'::bytea) AND (t3._value1_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea))
  • Buffers: shared read=12055
6. 0.062 41.470 ↓ 152.0 152 1

Subquery Scan on *SELECT* 2 (cost=0.1..1.75 rows=1 width=178) (actual time=0.276..41.47 rows=152 loops=1)

  • Buffers: shared hit=9227 read=67
7. 6.860 41.408 ↓ 152.0 152 1

Nested Loop (cost=0.1..1.74 rows=1 width=158) (actual time=0.274..41.408 rows=152 loops=1)

  • Buffers: shared hit=9227 read=67
8. 1.014 1.014 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t5 (cost=0.04..0.86 rows=1 width=63) (actual time=0.11..1.014 rows=243 loops=1)

  • Index Cond: ((t5._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t5._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: (t5._active AND (t5._accountdtrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t5._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=18 read=42
9. 33.534 33.534 ↓ 152.0 152 243

Index Scan using _accrged637_byextdim_rt on _accrged637 t6 (cost=0.06..0.87 rows=1 width=69) (actual time=0.029..0.138 rows=152 loops=243)

  • Index Cond: ((t6._value_type = '\\010'::bytea) AND (t6._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t6._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea) AND (t6._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t6._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: ((t6._correspond = '0'::numeric) AND (t6._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea))
  • Buffers: shared hit=9209 read=25
10. 0.010 29.825 ↓ 21.0 21 1

Subquery Scan on *SELECT* 3 (cost=0.1..1.75 rows=1 width=218) (actual time=0.294..29.825 rows=21 loops=1)

  • Buffers: shared hit=9294
11. 0.921 29.815 ↓ 21.0 21 1

Nested Loop (cost=0.1..1.74 rows=1 width=198) (actual time=0.292..29.815 rows=21 loops=1)

  • Buffers: shared hit=9294
12. 0.220 0.220 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t7 (cost=0.04..0.86 rows=1 width=63) (actual time=0.044..0.22 rows=243 loops=1)

  • Index Cond: ((t7._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t7._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: (t7._active AND (t7._accountctrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t7._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=60
13. 28.674 28.674 ↓ 21.0 21 243

Index Scan using _accrged637_byextdim_rt on _accrged637 t8 (cost=0.06..0.87 rows=1 width=69) (actual time=0.028..0.118 rows=21 loops=243)

  • Index Cond: ((t8._value_type = '\\010'::bytea) AND (t8._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t8._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea) AND (t8._period >= '2019-04-12 00:00:00'::timestamp without time zone) AND (t8._period <= '2019-04-12 23:59:59'::timestamp without time zone))
  • Filter: ((t8._correspond = '1'::numeric) AND (t8._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea))
  • Buffers: shared hit=9234
14. 0.985 6,272.063 ↓ 1,887.0 1,887 1

Subquery Scan on *SELECT* 4 (cost=0.1..1.75 rows=1 width=230) (actual time=0.148..6,272.063 rows=1,887 loops=1)

  • Buffers: shared hit=1167144 read=586
15. 954.905 6,271.078 ↓ 1,887.0 1,887 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=0.147..6,271.078 rows=1,887 loops=1)

  • Buffers: shared hit=1167144 read=586
16. 13.069 13.069 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t9 (cost=0.04..0.86 rows=1 width=63) (actual time=0.068..13.069 rows=3,526 loops=1)

  • Index Cond: ((t9._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t9._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: (t9._active AND (t9._accountdtrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t9._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=270 read=354
17. 5,303.104 5,303.104 ↓ 1,887.0 1,887 3,526

Index Scan using _accrged637_byextdim_rt on _accrged637 t10 (cost=0.06..0.87 rows=1 width=69) (actual time=0.025..1.504 rows=1,887 loops=3,526)

  • Index Cond: ((t10._value_type = '\\010'::bytea) AND (t10._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t10._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea) AND (t10._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t10._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: ((t10._correspond = '0'::numeric) AND (t10._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea))
  • Buffers: shared hit=1166874 read=232
18. 0.287 5,357.448 ↓ 470.0 470 1

Subquery Scan on *SELECT* 5 (cost=0.1..1.75 rows=1 width=230) (actual time=8.483..5,357.448 rows=470 loops=1)

  • Buffers: shared hit=1167730
19. 231.474 5,357.161 ↓ 470.0 470 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=8.481..5,357.161 rows=470 loops=1)

  • Buffers: shared hit=1167730
20. 5.935 5.935 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t11 (cost=0.04..0.86 rows=1 width=63) (actual time=0.042..5.935 rows=3,526 loops=1)

  • Index Cond: ((t11._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t11._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: (t11._active AND (t11._accountctrref <> '\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000'::bytea) AND (t11._fld602rref = '\\226\\331\\000\\014nF\\374\\255\\021\\335<H\\371f\\000\\014'::bytea))
  • Buffers: shared hit=624
21. 5,119.752 5,119.752 ↓ 470.0 470 3,526

Index Scan using _accrged637_byextdim_rt on _accrged637 t12 (cost=0.06..0.87 rows=1 width=69) (actual time=0.029..1.452 rows=470 loops=3,526)

  • Index Cond: ((t12._value_type = '\\010'::bytea) AND (t12._value_rtref = '\\000\\000\\000\\026'::bytea) AND (t12._value_rrref = '\\332\\222\\000\\014)&\\343I\\021\\345 \\220l\\267\\032H'::bytea) AND (t12._period > '2019-04-12 23:59:59'::timestamp without time zone) AND (t12._period < '2019-05-01 00:00:00'::timestamp without time zone))
  • Filter: ((t12._correspond = '1'::numeric) AND (t12._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea))
  • Buffers: shared hit=1167106