explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ayO4

Settings
# exclusive inclusive rows x rows loops node
1. 6.566 85.266 ↓ 25.0 75 1

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

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

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

3. 0.063 78.559 ↓ 19.0 38 2 / 2

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

4. 0.061 78.496 ↓ 19.0 38 2 / 2

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

5. 0.068 78.435 ↓ 19.0 38 2 / 2

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

6. 0.071 78.330 ↓ 19.0 38 2 / 2

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

7. 0.049 78.184 ↓ 19.0 38 2 / 2

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

8. 0.052 78.060 ↓ 19.0 38 2 / 2

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

9. 0.072 77.933 ↓ 19.0 38 2 / 2

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

10. 0.071 77.824 ↓ 19.0 38 2 / 2

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

11. 0.044 77.678 ↓ 19.0 38 2 / 2

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

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

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

13. 0.111 77.350 ↓ 19.0 38 2 / 2

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

14. 0.230 76.789 ↓ 7.8 225 2 / 2

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

15. 38.501 76.109 ↓ 7.8 225 2 / 2

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

  • Hash Cond: (ddsceps.id = ps_eps.id)
16. 35.203 35.203 ↑ 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..35.203 rows=128,399 loops=2)

17. 1.086 2.405 ↓ 1.3 1,585 2 / 2

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

  • Buckets: 2048 Batches: 1 Memory Usage: 376kB
18. 1.319 1.319 ↓ 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.319 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.520 ms
Execution time : 85.545 ms