explain.depesz.com

PostgreSQL's explain analyze made readable

Result: qkMH

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 551.088 ↓ 18.9 20,244 1

Gather (cost=10,325.36..46,415.41 rows=1,069 width=3,059) (actual time=379.213..551.088 rows=20,244 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
2. 4.788 520.356 ↓ 14.7 5,061 4 / 4

Hash Left Join (cost=9,325.36..36,577.45 rows=345 width=2,694) (actual time=373.316..520.356 rows=5,061 loops=4)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 4.534 515.564 ↓ 14.7 5,061 4 / 4

Hash Left Join (cost=9,315.14..36,565.92 rows=345 width=2,694) (actual time=373.298..515.564 rows=5,061 loops=4)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 4.421 511.026 ↓ 14.7 5,061 4 / 4

Hash Left Join (cost=9,304.91..36,554.79 rows=345 width=1,650) (actual time=373.278..511.026 rows=5,061 loops=4)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 5.132 506.600 ↓ 14.7 5,061 4 / 4

Hash Left Join (cost=9,282.99..36,531.96 rows=345 width=1,562) (actual time=373.259..506.600 rows=5,061 loops=4)

  • Hash Cond: (si.currency_id = c.id)
6. 9.390 501.443 ↓ 14.7 5,061 4 / 4

Nested Loop Left Join (cost=9,281.85..36,529.27 rows=345 width=1,054) (actual time=373.225..501.443 rows=5,061 loops=4)

7. 6.167 481.931 ↓ 14.7 5,061 4 / 4

Nested Loop Left Join (cost=9,281.42..36,357.63 rows=345 width=1,054) (actual time=373.213..481.931 rows=5,061 loops=4)

8. 6.470 465.642 ↓ 14.7 5,061 4 / 4

Hash Left Join (cost=9,281.14..36,255.81 rows=345 width=1,044) (actual time=373.205..465.642 rows=5,061 loops=4)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 8.010 459.158 ↓ 14.7 5,061 4 / 4

Nested Loop (cost=9,272.83..36,242.76 rows=345 width=1,034) (actual time=373.179..459.158 rows=5,061 loops=4)

10. 5.394 441.026 ↓ 14.7 5,061 4 / 4

Hash Join (cost=9,272.41..36,052.12 rows=345 width=1,034) (actual time=373.166..441.026 rows=5,061 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
11. 5.322 435.610 ↓ 1.0 5,061 4 / 4

Nested Loop (cost=9,271.22..36,034.42 rows=4,828 width=428) (actual time=373.092..435.610 rows=5,061 loops=4)

12. 11.801 415.071 ↓ 1.1 5,072 4 / 4

Nested Loop (cost=9,270.79..33,031.56 rows=4,829 width=236) (actual time=373.077..415.071 rows=5,072 loops=4)

13. 29.724 393.126 ↑ 1.0 5,072 4 / 4

Merge Join (cost=9,270.36..15,939.82 rows=5,104 width=32) (actual time=373.054..393.126 rows=5,072 loops=4)

  • Merge Cond: (ps_ddeps.id = ddsceps.id)
14. 28.140 28.140 ↑ 1.3 64,200 4 / 4

Parallel Index Only Scan using ddearlypaymentsettlement_pkey on ddearlypaymentsettlement ps_ddeps (cost=0.42..6,332.80 rows=82,838 width=8) (actual time=0.016..28.140 rows=64,200 loops=4)

  • Heap Fetches: 256799
15. 17.446 335.262 ↓ 1.3 19,907 4 / 4

Sort (cost=9,269.94..9,309.49 rows=15,822 width=24) (actual time=329.342..335.262 rows=19,907 loops=4)

  • Sort Key: ddsceps.id
  • Sort Method: quicksort Memory: 2354kB
  • Worker 0: Sort Method: quicksort Memory: 2354kB
  • Worker 1: Sort Method: quicksort Memory: 2354kB
  • Worker 2: Sort Method: quicksort Memory: 2354kB
16. 110.731 317.816 ↓ 1.3 20,289 4 / 4

Hash Join (cost=3,088.17..8,166.38 rows=15,822 width=24) (actual time=285.390..317.816 rows=20,289 loops=4)

  • Hash Cond: (ddsceps.financingcontext_id = ddscfc.id)
17. 87.302 87.302 ↑ 1.0 256,798 4 / 4

Seq Scan on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.00..3,956.99 rows=256,799 width=16) (actual time=0.006..87.302 rows=256,798 loops=4)

18. 6.252 119.783 ↓ 1.6 15,179 4 / 4

Hash (cost=2,968.71..2,968.71 rows=9,557 width=8) (actual time=119.782..119.783 rows=15,179 loops=4)

  • Buckets: 16384 Batches: 1 Memory Usage: 721kB
19. 61.805 113.531 ↓ 1.6 15,179 4 / 4

Hash Join (cost=21.36..2,968.71 rows=9,557 width=8) (actual time=96.487..113.531 rows=15,179 loops=4)

  • Hash Cond: (ddscfc.paa_id = paa.id)
20. 51.619 51.619 ↑ 1.0 155,112 4 / 4

Seq Scan on ddsuppliercentricfinancingcontext ddscfc (cost=0.00..2,539.12 rows=155,112 width=16) (actual time=0.005..51.619 rows=155,112 loops=4)

21. 0.040 0.107 ↑ 1.0 100 4 / 4

Hash (cost=20.11..20.11 rows=100 width=8) (actual time=0.106..0.107 rows=100 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 12kB
22. 0.067 0.067 ↑ 1.0 100 4 / 4

Index Scan using paa_buyer_idx on payablesapprovalagreement paa (cost=0.28..20.11 rows=100 width=8) (actual time=0.018..0.067 rows=100 loops=4)

  • Index Cond: (buyer_id = 66895525)
23. 10.145 10.145 ↑ 1.0 1 20,289 / 4

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..3.35 rows=1 width=220) (actual time=0.002..0.002 rows=1 loops=20,289)

  • Index Cond: (id = ps_ddeps.id)
  • Filter: (creationdate >= '2018-01-01'::date)
24. 15.217 15.217 ↑ 1.0 1 20,289 / 4

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.62 rows=1 width=208) (actual time=0.003..0.003 rows=1 loops=20,289)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
25. 0.005 0.022 ↑ 1.0 1 4 / 4

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
26. 0.017 0.017 ↑ 1.0 1 4 / 4

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=622) (actual time=0.015..0.017 rows=1 loops=4)

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
27. 10.122 10.122 ↑ 1.0 1 20,244 / 4

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=20,244)

  • Index Cond: (id = ddsceps.financingcontext_id)
28. 0.003 0.014 ↑ 1.0 1 4 / 4

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.013..0.014 rows=1 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.011 0.011 ↑ 1.0 1 4 / 4

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.010..0.011 rows=1 loops=4)

  • Index Cond: (id = 66895525)
30. 10.122 10.122 ↑ 1.0 1 20,244 / 4

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=20,244)

  • Index Cond: (id = si.supplier_id)
31. 10.122 10.122 ↑ 1.0 1 20,244 / 4

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=20,244)

  • Index Cond: (si.importbatch_id = id)
32. 0.009 0.025 ↑ 1.0 6 4 / 4

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.025..0.025 rows=6 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
33. 0.016 0.016 ↑ 1.0 6 4 / 4

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.013..0.016 rows=6 loops=4)

34. 0.001 0.005 ↓ 0.0 0 4 / 4

Hash (cost=15.30..15.30 rows=530 width=104) (actual time=0.005..0.005 rows=0 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
35. 0.004 0.004 ↓ 0.0 0 4 / 4

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..15.30 rows=530 width=104) (actual time=0.004..0.004 rows=0 loops=4)

36. 0.000 0.004 ↓ 0.0 0 4 / 4

Hash (cost=10.10..10.10 rows=10 width=1,052) (actual time=0.004..0.004 rows=0 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
37. 0.004 0.004 ↓ 0.0 0 4 / 4

Seq Scan on invoicepaymentadvice ipa (cost=0.00..10.10 rows=10 width=1,052) (actual time=0.003..0.004 rows=0 loops=4)

38. 0.000 0.004 ↓ 0.0 0 4 / 4

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.004..0.004 rows=0 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
39. 0.004 0.004 ↓ 0.0 0 4 / 4

Seq Scan on bankpaymenttransaction bpt (cost=0.00..10.10 rows=10 width=16) (actual time=0.003..0.004 rows=0 loops=4)

40.          

SubPlan (for Gather)

41. 40.488 40.488 ↑ 1.0 1 20,244

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.002 rows=1 loops=20,244)

42. 0.000 0.000 ↓ 0.0 0 20,244

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=20,244)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 12.681 ms
Execution time : 557.067 ms