explain.depesz.com

PostgreSQL's explain analyze made readable

Result: aXjH

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

Nested Loop (cost=0.03..5,307.76 rows=5 width=128) (actual time=13,892.382..13,892.387 rows=1 loops=1)

  • Buffers: shared hit=2577561 read=13036
2. 0.188 0.188 ↑ 1.0 1 1

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

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

Aggregate (cost=0..5,306.81 rows=5 width=286) (actual time=13,892.179..13,892.179 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=2577561 read=13033
4. 1.064 13,885.190 ↓ 553.8 2,769 1

Append (cost=0..5,306.67 rows=5 width=212) (actual time=0.66..13,885.19 rows=2,769 loops=1)

  • Buffers: shared hit=2577561 read=13033
5. 215.180 215.180 ↓ 239.0 239 1

Seq Scan on _accrgat2634 t3 (cost=0..5,299.66 rows=1 width=202) (actual time=0.659..215.18 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.051 47.644 ↓ 152.0 152 1

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

  • Buffers: shared hit=11878 read=89
7. 4.372 47.593 ↓ 152.0 152 1

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

  • Buffers: shared hit=11878 read=89
8. 1.182 1.182 ↓ 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.112..1.182 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. 42.039 42.039 ↓ 105.0 105 243

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t6 (cost=0.06..0.87 rows=1 width=69) (actual time=0.007..0.173 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=11860 read=47
10. 0.008 40.956 ↓ 21.0 21 1

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

  • Buffers: shared hit=6864 read=6
11. 0.881 40.948 ↓ 21.0 21 1

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

  • Buffers: shared hit=6864 read=6
12. 0.215 0.215 ↓ 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.024..0.215 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. 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=69) (actual time=0.006..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=6804 read=6
14. 0.851 7,061.655 ↓ 1,887.0 1,887 1

Subquery Scan on *SELECT* 4 (cost=0.1..1.75 rows=1 width=230) (actual time=0.122..7,061.655 rows=1,887 loops=1)

  • Buffers: shared hit=1407952 read=841
15. 662.968 7,060.804 ↓ 1,887.0 1,887 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=0.12..7,060.804 rows=1,887 loops=1)

  • Buffers: shared hit=1407952 read=841
16. 12.250 12.250 ↓ 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.055..12.25 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. 6,385.586 6,385.586 ↓ 1,382.0 1,382 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t10 (cost=0.06..0.87 rows=1 width=69) (actual time=0.015..1.811 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=1407682 read=487
18. 0.220 6,518.691 ↓ 470.0 470 1

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

  • Buffers: shared hit=1150867 read=42
19. 191.026 6,518.471 ↓ 470.0 470 1

Nested Loop (cost=0.1..1.74 rows=1 width=182) (actual time=12.745..6,518.471 rows=470 loops=1)

  • Buffers: shared hit=1150867 read=42
20. 5.327 5.327 ↓ 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.043..5.327 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. 6,322.118 6,322.118 ↓ 439.0 439 3,526

Index Scan using _accrged637_byperiod_trnrn on _accrged637 t12 (cost=0.06..0.87 rows=1 width=69) (actual time=0.014..1.793 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=1150243 read=42