explain.depesz.com

PostgreSQL's explain analyze made readable

Result: svgf

Settings
# exclusive inclusive rows x rows loops node
1. 6.154 89.699 ↓ 18.8 75 1

Gather (cost=5,527.99..9,100.82 rows=4 width=3,059) (actual time=80.875..89.699 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.068 83.470 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.99..8,067.75 rows=2 width=2,694) (actual time=75.996..83.470 rows=38 loops=2)

3. 0.066 83.402 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.85..8,067.36 rows=2 width=2,694) (actual time=75.985..83.402 rows=38 loops=2)

4. 0.067 83.336 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.72..8,067.03 rows=2 width=1,650) (actual time=75.975..83.336 rows=38 loops=2)

5. 0.062 83.269 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.57..8,066.58 rows=2 width=1,562) (actual time=75.965..83.269 rows=38 loops=2)

6. 0.063 83.170 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.43..8,066.27 rows=2 width=1,054) (actual time=75.953..83.170 rows=38 loops=2)

7. 0.054 83.032 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.00..8,065.28 rows=2 width=1,054) (actual time=75.937..83.032 rows=38 loops=2)

8. 0.053 82.903 ↓ 19.0 38 2 / 2

Hash Left Join (cost=4,526.72..8,064.68 rows=2 width=1,044) (actual time=75.927..82.903 rows=38 loops=2)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.067 82.820 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,518.42..8,056.35 rows=2 width=1,034) (actual time=75.878..82.820 rows=38 loops=2)

10. 0.066 82.678 ↓ 19.0 38 2 / 2

Nested Loop (cost=4,517.99..8,055.24 rows=2 width=1,026) (actual time=75.860..82.678 rows=38 loops=2)

  • Join Filter: (ps_eps.id = ddsceps.id)
11. 0.136 82.537 ↓ 19.0 38 2 / 2

Hash Join (cost=4,517.57..8,054.28 rows=2 width=1,026) (actual time=75.840..82.537 rows=38 loops=2)

  • Hash Cond: (si.originatordivision_id = od_db.id)
12. 0.331 82.381 ↓ 7.8 225 2 / 2

Nested Loop (cost=4,516.39..8,052.99 rows=29 width=420) (actual time=9.230..82.381 rows=225 loops=2)

13. 41.275 81.600 ↓ 7.8 225 2 / 2

Hash Join (cost=4,515.95..7,812.06 rows=29 width=228) (actual time=9.212..81.600 rows=225 loops=2)

  • Hash Cond: (ps_ddeps.id = ps_eps.id)
14. 37.895 37.895 ↑ 1.2 128,400 2 / 2

Parallel Seq Scan on ddearlypaymentsettlement ps_ddeps (cost=0.00..2,899.58 rows=151,058 width=8) (actual time=0.005..37.895 rows=128,400 loops=2)

15. 1.095 2.430 ↓ 1.3 1,585 2 / 2

Hash (cost=4,500.47..4,500.47 rows=1,239 width=220) (actual time=2.429..2.430 rows=1,585 loops=2)

  • Buckets: 2048 Batches: 1 Memory Usage: 376kB
16. 1.335 1.335 ↓ 1.3 1,585 2 / 2

Index Scan using earlypaymentsettlement_creationdate_idx on earlypaymentsettlement ps_eps (cost=0.43..4,500.47 rows=1,239 width=220) (actual time=0.018..1.335 rows=1,585 loops=2)

  • Index Cond: (creationdate = '2019-01-01'::date)
17. 0.450 0.450 ↑ 1.0 1 450 / 2

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..8.31 rows=1 width=208) (actual time=0.002..0.002 rows=1 loops=450)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
18. 0.004 0.020 ↑ 1.0 1 2 / 2

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.020..0.020 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.016 0.016 ↑ 1.0 1 2 / 2

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.014..0.016 rows=1 loops=2)

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
20. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using ddsuppliercentricearlypaymentsettlement_pkey on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.42..0.47 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (id = ps_ddeps.id)
21. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (id = ddsceps.financingcontext_id)
22. 0.007 0.030 ↑ 1.0 1 2 / 2

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.030..0.030 rows=1 loops=2)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
23. 0.023 0.023 ↑ 1.0 1 2 / 2

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.022..0.023 rows=1 loops=2)

  • Index Cond: (id = 66895525)
24. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.30 rows=1 width=26) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (id = si.supplier_id)
25. 0.075 0.075 ↑ 1.0 1 75 / 2

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=75)

  • Index Cond: (si.importbatch_id = id)
26. 0.037 0.037 ↑ 1.0 1 75 / 2

Index Scan using crxcurrency_pkey on crxcurrency c (cost=0.13..0.15 rows=1 width=524) (actual time=0.001..0.001 rows=1 loops=75)

  • Index Cond: (si.currency_id = id)
27. 0.000 0.000 ↓ 0.0 0 75 / 2

Index Scan using earlypaymentadvice_pkey on earlypaymentadvice eps_epa (cost=0.15..0.20 rows=1 width=104) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (id = ps_eps.earlypaymentadvice_id)
28. 0.000 0.000 ↓ 0.0 0 75 / 2

Index Scan using invoicepaymentadvice_pkey on invoicepaymentadvice ipa (cost=0.14..0.15 rows=1 width=1,052) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (si.paymentadvice_id = id)
29. 0.000 0.000 ↓ 0.0 0 75 / 2

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..0.19 rows=1 width=16) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (mapping_id = ps_eps.earlypaymentmapping_id)
30.          

SubPlan (for Gather)

31. 0.075 0.075 ↑ 1.0 1 75

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=75)

32. 0.000 0.000 ↓ 0.0 0 75

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=75)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 7.140 ms
Execution time : 89.983 ms