explain.depesz.com

PostgreSQL's explain analyze made readable

Result: IT1cf

Settings
# exclusive inclusive rows x rows loops node
1. 6.399 90.063 ↓ 25.0 75 1

Gather (cost=5,519.60..8,893.57 rows=3 width=3,059) (actual time=80.897..90.063 rows=75 loops=1)

  • Workers Planned: 1
  • Workers Launched: 1
2. 0.066 83.589 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,519.60..7,868.77 rows=2 width=2,694) (actual time=75.697..83.589 rows=38 loops=2)

3. 0.065 83.523 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,519.47..7,868.38 rows=2 width=2,694) (actual time=75.689..83.523 rows=38 loops=2)

4. 0.063 83.458 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,519.33..7,868.05 rows=2 width=1,650) (actual time=75.681..83.458 rows=38 loops=2)

5. 0.067 83.395 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,519.18..7,867.59 rows=2 width=1,562) (actual time=75.673..83.395 rows=38 loops=2)

6. 0.080 83.290 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,519.05..7,867.29 rows=2 width=1,054) (actual time=75.663..83.290 rows=38 loops=2)

7. 0.053 83.135 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,518.62..7,866.29 rows=2 width=1,054) (actual time=75.650..83.135 rows=38 loops=2)

8. 0.056 83.007 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,518.34..7,865.70 rows=2 width=1,044) (actual time=75.638..83.007 rows=38 loops=2)

9. 0.075 82.876 ↓ 19.0 38 2 / 2

Nested Loop Left Join (cost=4,518.06..7,853.11 rows=2 width=1,034) (actual time=75.626..82.876 rows=38 loops=2)

10. 0.074 82.764 ↓ 19.0 38 2 / 2

Nested Loop (cost=4,517.93..7,852.80 rows=2 width=428) (actual time=75.615..82.764 rows=38 loops=2)

11. 0.049 82.615 ↓ 19.0 38 2 / 2

Nested Loop (cost=4,517.50..7,851.69 rows=2 width=428) (actual time=75.599..82.615 rows=38 loops=2)

  • Join Filter: (ps_eps.id = ps_ddeps.id)
12. 0.062 82.453 ↓ 19.0 38 2 / 2

Nested Loop (cost=4,517.08..7,850.73 rows=2 width=436) (actual time=75.575..82.453 rows=38 loops=2)

13. 0.120 82.279 ↓ 19.0 38 2 / 2

Nested Loop (cost=4,516.65..7,834.11 rows=2 width=244) (actual time=75.551..82.279 rows=38 loops=2)

14. 0.263 81.709 ↓ 7.8 225 2 / 2

Nested Loop (cost=4,516.37..7,825.39 rows=29 width=252) (actual time=9.207..81.709 rows=225 loops=2)

15. 40.673 80.996 ↓ 7.8 225 2 / 2

Hash Join (cost=4,515.95..7,812.06 rows=29 width=236) (actual time=9.193..80.996 rows=225 loops=2)

  • Hash Cond: (ddsceps.id = ps_eps.id)
16. 37.851 37.851 ↑ 1.2 128,399 2 / 2

Parallel Seq Scan on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.00..2,899.58 rows=151,058 width=16) (actual time=0.007..37.851 rows=128,399 loops=2)

17. 1.120 2.472 ↓ 1.3 1,585 2 / 2

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

  • Buckets: 2048 Batches: 1 Memory Usage: 376kB
18. 1.352 1.352 ↓ 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.017..1.352 rows=1,585 loops=2)

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

Index Scan using ddsuppliercentricfinancingcontext_pkey on ddsuppliercentricfinancingcontext ddscfc (cost=0.42..0.46 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=450)

  • Index Cond: (id = ddsceps.financingcontext_id)
20. 0.450 0.450 ↓ 0.0 0 450 / 2

Index Scan using payablesapprovalagreement_pkey on payablesapprovalagreement paa (cost=0.28..0.30 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=450)

  • Index Cond: (id = ddscfc.paa_id)
  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 1
21. 0.113 0.113 ↑ 1.0 1 75 / 2

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

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
22. 0.113 0.113 ↑ 1.0 1 75 / 2

Index Only Scan using ddearlypaymentsettlement_pkey on ddearlypaymentsettlement ps_ddeps (cost=0.42..0.47 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=75)

  • Index Cond: (id = ddsceps.id)
  • Heap Fetches: 75
23. 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)
24. 0.037 0.037 ↑ 1.0 1 75 / 2

Index Scan using divisionbase_pkey on divisionbase od_db (cost=0.14..0.15 rows=1 width=622) (actual time=0.001..0.001 rows=1 loops=75)

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

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

  • Index Cond: (id = od_db.buyer_id)
26. 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)
27. 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)
28. 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)
29. 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)
30. 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)
31. 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)
32.          

SubPlan (for Gather)

33. 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)

34. 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 : 9.559 ms
Execution time : 90.351 ms