explain.depesz.com

PostgreSQL's explain analyze made readable

Result: LqdG

Settings
# exclusive inclusive rows x rows loops node
1. 6.692 92.880 ↓ 25.0 75 1

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

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

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

3. 0.065 86.047 ↓ 19.0 38 2 / 2

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

4. 0.064 85.982 ↓ 19.0 38 2 / 2

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

5. 0.069 85.918 ↓ 19.0 38 2 / 2

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

6. 0.074 85.812 ↓ 19.0 38 2 / 2

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

7. 0.054 85.663 ↓ 19.0 38 2 / 2

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

8. 0.056 85.534 ↓ 19.0 38 2 / 2

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

9. 0.058 85.403 ↓ 19.0 38 2 / 2

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

10. 0.076 84.745 ↓ 19.0 38 2 / 2

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

11. 0.051 84.594 ↓ 19.0 38 2 / 2

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

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

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

13. 0.171 84.256 ↓ 19.0 38 2 / 2

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

14. 0.291 80.485 ↓ 7.8 225 2 / 2

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

15. 40.324 79.744 ↓ 7.8 225 2 / 2

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

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

17. 1.163 2.519 ↓ 1.3 1,585 2 / 2

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

  • Buckets: 2048 Batches: 1 Memory Usage: 376kB
18. 1.356 1.356 ↓ 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.020..1.356 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. 3.600 3.600 ↓ 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.016..0.016 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.600 0.600 ↑ 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.016..0.016 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 : 10.251 ms
Execution time : 93.309 ms