explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8y7E

Settings
# exclusive inclusive rows x rows loops node
1. 20.234 423.796 ↑ 1.5 833 1

Gather (cost=10,528.31..46,007.05 rows=1,230 width=3,059) (actual time=412.626..423.796 rows=833 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
2. 0.196 402.729 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,528.31..34,838.02 rows=397 width=2,694) (actual time=397.552..402.729 rows=208 loops=4)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 0.193 402.526 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,518.08..34,826.30 rows=397 width=2,694) (actual time=397.532..402.526 rows=208 loops=4)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 0.188 402.329 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,507.86..34,815.03 rows=397 width=1,650) (actual time=397.512..402.329 rows=208 loops=4)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 0.208 402.137 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,485.93..34,792.07 rows=397 width=1,562) (actual time=397.494..402.137 rows=208 loops=4)

  • Hash Cond: (si.currency_id = c.id)
6. 0.276 401.915 ↑ 1.9 208 4 / 4

Nested Loop Left Join (cost=9,484.80..34,789.15 rows=397 width=1,054) (actual time=397.466..401.915 rows=208 loops=4)

7. 0.429 401.223 ↑ 1.9 208 4 / 4

Nested Loop Left Join (cost=9,484.36..34,591.64 rows=397 width=1,054) (actual time=397.451..401.223 rows=208 loops=4)

8. 0.216 400.586 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,484.09..34,474.48 rows=397 width=1,044) (actual time=397.437..400.586 rows=208 loops=4)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.227 398.620 ↑ 1.9 208 4 / 4

Hash Left Join (cost=9,272.96..34,262.31 rows=397 width=1,034) (actual time=395.671..398.620 rows=208 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 0.285 398.358 ↑ 1.9 208 4 / 4

Nested Loop (cost=9,271.65..34,259.64 rows=397 width=428) (actual time=395.622..398.358 rows=208 loops=4)

11. 0.389 397.657 ↑ 1.9 208 4 / 4

Nested Loop (cost=9,271.22..34,040.27 rows=397 width=428) (actual time=395.611..397.657 rows=208 loops=4)

12. 3.627 396.829 ↑ 1.8 220 4 / 4

Nested Loop (cost=9,270.79..33,031.56 rows=397 width=236) (actual time=395.507..396.829 rows=220 loops=4)

13. 27.156 383.057 ↑ 1.0 5,072 4 / 4

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

  • Merge Cond: (ps_ddeps.id = ddsceps.id)
14. 28.890 28.890 ↑ 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.020..28.890 rows=64,200 loops=4)

  • Heap Fetches: 256,799
15. 12.887 327.011 ↑ 1.1 15,057 4 / 4

Sort (cost=9,269.94..9,309.49 rows=15,822 width=24) (actual time=322.878..327.011 rows=15,057 loops=4)

  • Sort Key: ddsceps.id
  • Sort Method: quicksort Memory: 2,354kB
  • Worker 0: Sort Method: quicksort Memory: 2,354kB
  • Worker 1: Sort Method: quicksort Memory: 2,354kB
  • Worker 2: Sort Method: quicksort Memory: 2,354kB
16. 107.819 314.124 ↓ 1.3 20,289 4 / 4

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

  • Hash Cond: (ddsceps.financingcontext_id = ddscfc.id)
17. 86.249 86.249 ↑ 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.008..86.249 rows=256,798 loops=4)

18. 6.287 120.056 ↓ 1.6 15,179 4 / 4

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

  • Buckets: 16,384 Batches: 1 Memory Usage: 721kB
19. 62.740 113.769 ↓ 1.6 15,179 4 / 4

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

  • Hash Cond: (ddscfc.paa_id = paa.id)
20. 50.919 50.919 ↑ 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.007..50.919 rows=155,112 loops=4)

21. 0.039 0.110 ↑ 1.0 100 4 / 4

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 12kB
22. 0.071 0.071 ↑ 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.021..0.071 rows=100 loops=4)

  • Index Cond: (buyer_id = 66,895,525)
23. 10.145 10.145 ↓ 0.0 0 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=0 loops=20,289)

  • Index Cond: (id = ps_ddeps.id)
  • Filter: (creationdate = '2019-02-01'::date)
  • Rows Removed by Filter: 1
24. 0.439 0.439 ↑ 1.0 1 878 / 4

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..2.54 rows=1 width=208) (actual time=0.002..0.002 rows=1 loops=878)

  • Index Cond: (id = ps_eps.invoice_id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 0
25. 0.416 0.416 ↑ 1.0 1 833 / 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=833)

  • Index Cond: (id = ddsceps.financingcontext_id)
26. 0.010 0.035 ↑ 1.0 14 4 / 4

Hash (cost=1.14..1.14 rows=14 width=622) (actual time=0.035..0.035 rows=14 loops=4)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
27. 0.025 0.025 ↑ 1.0 14 4 / 4

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=622) (actual time=0.017..0.025 rows=14 loops=4)

28. 0.727 1.750 ↑ 1.0 1,650 4 / 4

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.749..1.750 rows=1,650 loops=4)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
29. 1.023 1.023 ↑ 1.0 1,650 4 / 4

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.006..1.023 rows=1,650 loops=4)

30. 0.208 0.208 ↑ 1.0 1 833 / 4

Index Scan using corporatebase_pkey on corporatebase s_cb (cost=0.28..0.30 rows=1 width=26) (actual time=0.001..0.001 rows=1 loops=833)

  • Index Cond: (id = si.supplier_id)
31. 0.416 0.416 ↑ 1.0 1 833 / 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=833)

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

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
33. 0.009 0.009 ↑ 1.0 6 4 / 4

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

34. 0.001 0.004 ↓ 0.0 0 4 / 4

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
35. 0.003 0.003 ↓ 0.0 0 4 / 4

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

36. 0.001 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: 1,024 Batches: 1 Memory Usage: 8kB
37. 0.003 0.003 ↓ 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.003 rows=0 loops=4)

38. 0.001 0.007 ↓ 0.0 0 4 / 4

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
39. 0.006 0.006 ↓ 0.0 0 4 / 4

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

40.          

SubPlan (for Gather)

41. 0.833 0.833 ↑ 1.0 1 833

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

42. 0.000 0.000 ↓ 0.0 0 833

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=833)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 10.347 ms
Execution time : 424.295 ms