explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iEPM

Settings
# exclusive inclusive rows x rows loops node
1. 0.020 13,595.744 ↑ 5.0 1 1

Nested Loop (cost=0.03..5,271.96 rows=5 width=128) (actual time=13,595.739..13,595.744 rows=1 loops=1)

  • Buffers: shared hit=1983352 read=11691
2. 0.058 0.058 ↑ 1.0 1 1

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

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

Aggregate (cost=0..5,271.01 rows=5 width=289) (actual time=13,595.666..13,595.666 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=1983349 read=11691
4. 1.055 13,588.621 ↓ 553.8 2,769 1

Append (cost=0..5,270.87 rows=5 width=215) (actual time=0.844..13,588.621 rows=2,769 loops=1)

  • Buffers: shared hit=1983349 read=11691
5. 230.306 230.306 ↓ 239.0 239 1

Seq Scan on _accrgat2634 t3 (cost=0..5,263.86 rows=1 width=205) (actual time=0.843..230.306 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 hit=6 read=11691
6. 0.051 46.357 ↓ 152.0 152 1

Subquery Scan on *SELECT* 2 (cost=0.1..1.75 rows=1 width=181) (actual time=0.173..46.357 rows=152 loops=1)

  • Buffers: shared hit=9421
7. 4.468 46.306 ↓ 152.0 152 1

Nested Loop (cost=0.1..1.74 rows=1 width=161) (actual time=0.171..46.306 rows=152 loops=1)

  • Buffers: shared hit=9421
8. 0.771 0.771 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t5 (cost=0.04..0.86 rows=1 width=65) (actual time=0.078..0.771 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=57
9. 41.067 41.067 ↓ 105.0 105 243

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t6 (cost=0.06..0.87 rows=1 width=74) (actual time=0.008..0.169 rows=105 loops=243)

  • Index Cond: ((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) AND (t6._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t6._correspond = '0'::numeric))
  • Filter: ((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))
  • Buffers: shared hit=9364
10. 0.008 40.988 ↓ 21.0 21 1

Subquery Scan on *SELECT* 3 (cost=0.1..1.75 rows=1 width=221) (actual time=0.354..40.988 rows=21 loops=1)

  • Buffers: shared hit=5532
11. 0.864 40.980 ↓ 21.0 21 1

Nested Loop (cost=0.1..1.74 rows=1 width=201) (actual time=0.352..40.98 rows=21 loops=1)

  • Buffers: shared hit=5532
12. 0.264 0.264 ↓ 243.0 243 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t7 (cost=0.04..0.86 rows=1 width=65) (actual time=0.037..0.264 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=57
13. 39.852 39.852 ↓ 20.0 20 243

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t8 (cost=0.06..0.87 rows=1 width=74) (actual time=0.007..0.164 rows=20 loops=243)

  • Index Cond: ((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) AND (t8._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t8._correspond = '1'::numeric))
  • Filter: ((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))
  • Buffers: shared hit=5475
14. 0.851 6,943.286 ↓ 1,887.0 1,887 1

Subquery Scan on *SELECT* 4 (cost=0.1..1.75 rows=1 width=233) (actual time=0.117..6,943.286 rows=1,887 loops=1)

  • Buffers: shared hit=1115653
15. 677.932 6,942.435 ↓ 1,887.0 1,887 1

Nested Loop (cost=0.1..1.74 rows=1 width=185) (actual time=0.115..6,942.435 rows=1,887 loops=1)

  • Buffers: shared hit=1115653
16. 9.379 9.379 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t9 (cost=0.04..0.86 rows=1 width=65) (actual time=0.064..9.379 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=603
17. 6,255.124 6,255.124 ↓ 1,382.0 1,382 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t10 (cost=0.06..0.87 rows=1 width=74) (actual time=0.01..1.774 rows=1,382 loops=3,526)

  • Index Cond: ((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) AND (t10._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t10._correspond = '0'::numeric))
  • Filter: ((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))
  • Buffers: shared hit=1115050
18. 0.194 6,326.629 ↓ 470.0 470 1

Subquery Scan on *SELECT* 5 (cost=0.1..1.75 rows=1 width=233) (actual time=12.368..6,326.629 rows=470 loops=1)

  • Buffers: shared hit=852737
19. 196.072 6,326.435 ↓ 470.0 470 1

Nested Loop (cost=0.1..1.74 rows=1 width=185) (actual time=12.366..6,326.435 rows=470 loops=1)

  • Buffers: shared hit=852737
20. 5.701 5.701 ↓ 3,526.0 3,526 1

Index Scan using _accrg601_byperiod_trn on _accrg601 t11 (cost=0.04..0.86 rows=1 width=65) (actual time=0.048..5.701 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=603
21. 6,124.662 6,124.662 ↓ 439.0 439 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t12 (cost=0.06..0.87 rows=1 width=74) (actual time=0.009..1.737 rows=439 loops=3,526)

  • Index Cond: ((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) AND (t12._kindrref = '\\200\\226\\310\\357\\267\\312\\036YB|\\210\\271\\363\\336O\\024'::bytea) AND (t12._correspond = '1'::numeric))
  • Filter: ((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))
  • Buffers: shared hit=852134