explain.depesz.com

PostgreSQL's explain analyze made readable

Result: iGE

Settings
# exclusive inclusive rows x rows loops node
1. 9.010 1,558.700 ↑ 2.9 5,438 1

Gather (cost=6,210.58..446,451.47 rows=15,601 width=3,059) (actual time=1,497.869..1,558.700 rows=5,438 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 1.056 1,544.252 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,210.58..316,470.20 rows=3,900 width=2,694) (actual time=1,491.496..1,544.252 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 1.023 1,543.192 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,200.36..316,445.34 rows=3,900 width=2,694) (actual time=1,491.478..1,543.192 rows=1,088 loops=5)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 1.013 1,542.165 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,190.13..316,424.88 rows=3,900 width=1,650) (actual time=1,491.459..1,542.165 rows=1,088 loops=5)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 1.077 1,541.148 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,168.21..316,392.72 rows=3,900 width=1,562) (actual time=1,491.441..1,541.148 rows=1,088 loops=5)

  • Hash Cond: (si.currency_id = c.id)
6. 1.618 1,540.054 ↑ 3.6 1,088 5 / 5

Nested Loop Left Join (cost=5,167.07..316,374.11 rows=3,900 width=1,054) (actual time=1,491.408..1,540.054 rows=1,088 loops=5)

7. 2.133 1,535.173 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=5,166.64..314,433.76 rows=3,900 width=1,054) (actual time=1,491.392..1,535.173 rows=1,088 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 1.072 1,531.256 ↑ 3.6 1,088 5 / 5

Hash Left Join (cost=4,955.51..314,212.38 rows=3,900 width=1,044) (actual time=1,489.591..1,531.256 rows=1,088 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 2.201 1,529.168 ↑ 3.6 1,088 5 / 5

Hash Join (cost=4,947.21..314,150.45 rows=3,900 width=1,034) (actual time=1,488.555..1,529.168 rows=1,088 loops=5)

  • Hash Cond: (ddscfc.paa_id = paa.id)
10. 2.621 1,524.361 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,790.69..313,983.67 rows=3,900 width=1,042) (actual time=1,484.825..1,524.361 rows=1,088 loops=5)

11. 1.569 1,517.390 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,790.27..312,221.42 rows=3,900 width=1,050) (actual time=1,484.809..1,517.390 rows=1,088 loops=5)

12. 1.708 1,512.558 ↑ 3.6 1,088 5 / 5

Nested Loop (cost=4,789.85..310,066.33 rows=3,900 width=1,026) (actual time=1,484.784..1,512.558 rows=1,088 loops=5)

13. 6.734 1,508.675 ↑ 3.6 1,088 5 / 5

Hash Join (cost=4,789.43..308,354.04 rows=3,900 width=1,026) (actual time=1,484.762..1,508.675 rows=1,088 loops=5)

  • Hash Cond: (si.originatordivision_id = od_db.id)
14. 15.660 1,501.921 ↑ 5.2 10,570 5 / 5

Nested Loop (cost=4,788.24..308,166.14 rows=54,602 width=420) (actual time=1,410.728..1,501.921 rows=10,570 loops=5)

15. 711.905 1,454.304 ↑ 5.1 10,652 5 / 5

Parallel Hash Join (cost=4,787.81..273,148.64 rows=54,620 width=228) (actual time=1,410.691..1,454.304 rows=10,652 loops=5)

  • Hash Cond: (ps_eps.id = ps_ddeps.id)
16. 689.934 689.934 ↑ 1.2 1,083,659 5 / 5

Parallel Seq Scan on earlypaymentsettlement ps_eps (cost=0.00..264,805.63 rows=1,354,362 width=220) (actual time=0.007..689.934 rows=1,083,659 loops=5)

  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 189854
17. 30.057 52.465 ↑ 2.9 51,360 5 / 5

Parallel Hash (cost=2,899.58..2,899.58 rows=151,058 width=8) (actual time=52.465..52.465 rows=51,360 loops=5)

  • Buckets: 262144 Batches: 1 Memory Usage: 12160kB
18. 22.408 22.408 ↑ 2.9 51,360 5 / 5

Parallel Seq Scan on ddearlypaymentsettlement ps_ddeps (cost=0.00..2,899.58 rows=151,058 width=8) (actual time=0.007..22.408 rows=51,360 loops=5)

19. 31.957 31.957 ↑ 1.0 1 53,261 / 5

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.64 rows=1 width=208) (actual time=0.003..0.003 rows=1 loops=53,261)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
20. 0.003 0.020 ↑ 1.0 1 5 / 5

Hash (cost=1.18..1.18 rows=1 width=622) (actual time=0.020..0.020 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
21. 0.017 0.017 ↑ 1.0 1 5 / 5

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

  • Filter: (buyer_id = 66895525)
  • Rows Removed by Filter: 13
22. 2.175 2.175 ↑ 1.0 1 5,438 / 5

Index Scan using ddsuppliercentricearlypaymentsettlement_pkey on ddsuppliercentricearlypaymentsettlement ddsceps (cost=0.42..0.44 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=5,438)

  • Index Cond: (id = ps_eps.id)
23. 3.263 3.263 ↑ 1.0 1 5,438 / 5

Index Scan using financingcontextbase_pkey on financingcontextbase ps_ddps_fc_fcb (cost=0.42..0.55 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=5,438)

  • Index Cond: (id = ddsceps.financingcontext_id)
24. 4.350 4.350 ↑ 1.0 1 5,438 / 5

Index Scan using ddsuppliercentricfinancingcontext_pkey on ddsuppliercentricfinancingcontext ddscfc (cost=0.42..0.45 rows=1 width=16) (actual time=0.004..0.004 rows=1 loops=5,438)

  • Index Cond: (id = ps_ddps_fc_fcb.id)
25. 1.961 2.606 ↑ 1.0 1,623 5 / 5

Hash (cost=136.23..136.23 rows=1,623 width=8) (actual time=2.606..2.606 rows=1,623 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 80kB
26. 0.645 0.645 ↑ 1.0 1,623 5 / 5

Seq Scan on payablesapprovalagreement paa (cost=0.00..136.23 rows=1,623 width=8) (actual time=0.011..0.645 rows=1,623 loops=5)

27. 0.005 1.016 ↑ 1.0 1 5 / 5

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=1.016..1.016 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
28. 1.011 1.011 ↑ 1.0 1 5 / 5

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=1.010..1.011 rows=1 loops=5)

  • Index Cond: (id = 66895525)
29. 0.732 1.784 ↑ 1.0 1,650 5 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.783..1.784 rows=1,650 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
30. 1.052 1.052 ↑ 1.0 1,650 5 / 5

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.017..1.052 rows=1,650 loops=5)

31. 3.263 3.263 ↑ 1.0 1 5,438 / 5

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..0.50 rows=1 width=16) (actual time=0.003..0.003 rows=1 loops=5,438)

  • Index Cond: (si.importbatch_id = id)
32. 0.006 0.017 ↑ 1.0 6 5 / 5

Hash (cost=1.06..1.06 rows=6 width=524) (actual time=0.017..0.017 rows=6 loops=5)

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

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=524) (actual time=0.009..0.011 rows=6 loops=5)

34. 0.000 0.004 ↓ 0.0 0 5 / 5

Hash (cost=15.30..15.30 rows=530 width=104) (actual time=0.004..0.004 rows=0 loops=5)

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

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

36. 0.001 0.004 ↓ 0.0 0 5 / 5

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

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

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

38. 0.001 0.004 ↓ 0.0 0 5 / 5

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

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

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

40.          

SubPlan (for Gather)

41. 5.438 5.438 ↑ 1.0 1 5,438

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=5,438)

42. 0.000 0.000 ↓ 0.0 0 5,438

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=5,438)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 9.923 ms
Execution time : 1,560.554 ms