explain.depesz.com

PostgreSQL's explain analyze made readable

Result: lvxM

Settings
# exclusive inclusive rows x rows loops node
1. 6.045 91.785 ↓ 18.8 75 1

Gather (cost=5,527.99..9,100.80 rows=4 width=3,059) (actual time=83.012..91.785 rows=75 loops=1)

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

Nested Loop Left Join (cost=4,527.99..8,067.73 rows=2 width=2,694) (actual time=78.189..85.665 rows=38 loops=2)

3. 0.066 85.597 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.85..8,067.33 rows=2 width=2,694) (actual time=78.179..85.597 rows=38 loops=2)

4. 0.070 85.531 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.72..8,067.01 rows=2 width=1,650) (actual time=78.169..85.531 rows=38 loops=2)

5. 0.068 85.461 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.57..8,066.55 rows=2 width=1,562) (actual time=78.157..85.461 rows=38 loops=2)

6. 0.072 84.530 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.43..8,066.25 rows=2 width=1,054) (actual time=77.313..84.530 rows=38 loops=2)

7. 0.059 84.383 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,527.00..8,065.25 rows=2 width=1,054) (actual time=77.292..84.383 rows=38 loops=2)

8. 0.062 84.249 ↓ 19.0 38 2 / 2

Hash Left Join (cost=4,526.72..8,064.66 rows=2 width=1,044) (actual time=77.281..84.249 rows=38 loops=2)

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

Nested Loop Left Join (cost=4,518.42..8,056.32 rows=2 width=1,034) (actual time=77.211..84.143 rows=38 loops=2)

10. 0.065 84.003 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,517.99..8,055.22 rows=2 width=1,026) (actual time=77.193..84.003 rows=38 loops=2)

11. 0.141 83.863 ↓ 19.0 38 2 / 2

Hash Join (cost=4,517.57..8,054.28 rows=2 width=1,018) (actual time=77.172..83.863 rows=38 loops=2)

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

Nested Loop (cost=4,516.39..8,052.99 rows=29 width=412) (actual time=10.670..83.701 rows=225 loops=2)

13. 41.558 82.931 ↓ 7.8 225 2 / 2

Hash Join (cost=4,515.95..7,812.06 rows=29 width=220) (actual time=10.652..82.931 rows=225 loops=2)

  • Hash Cond: (ps_ddeps.id = ps_eps.id)
14. 37.830 37.830 ↑ 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.004..37.830 rows=128,400 loops=2)

15. 1.160 3.543 ↓ 1.3 1,585 2 / 2

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

  • Buckets: 2048 Batches: 1 Memory Usage: 376kB
16. 2.383 2.383 ↓ 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.574..2.383 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.007 0.021 ↑ 1.0 1 2 / 2

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

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

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.013..0.014 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.006 0.044 ↑ 1.0 1 2 / 2

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
23. 0.038 0.038 ↑ 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.037..0.038 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.862 0.862 ↑ 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.023..0.023 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 : 6.476 ms
Execution time : 92.278 ms