explain.depesz.com

PostgreSQL's explain analyze made readable

Result: wOnn

Settings
# exclusive inclusive rows x rows loops node
1. 17.148 1,469.733 ↑ 13.7 10,328 1

Gather (cost=18,685.50..1,385,231.80 rows=141,290 width=1,810) (actual time=1,162.924..1,469.733 rows=10,328 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.348 1,442.257 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,685.50..215,410.28 rows=58,871 width=1,655) (actual time=1,156.646..1,442.257 rows=3,443 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 3.204 1,438.905 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,675.28..215,179.28 rows=58,871 width=1,655) (actual time=1,156.624..1,438.905 rows=3,443 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 3.045 1,435.696 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,665.06..215,014.52 rows=58,871 width=611) (actual time=1,156.600..1,435.696 rows=3,443 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 3.300 1,431.875 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,632.79..214,827.72 rows=58,871 width=597) (actual time=1,155.807..1,431.875 rows=3,443 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 4.330 1,428.558 ↑ 17.1 3,443 3 / 3

Nested Loop Left Join (cost=17,631.66..214,562.89 rows=58,871 width=601) (actual time=1,155.768..1,428.558 rows=3,443 loops=3)

7. 3.278 1,413.900 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,631.22..185,274.13 rows=58,871 width=601) (actual time=1,154.762..1,413.900 rows=3,443 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.151 1,409.062 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,420.10..184,908.07 rows=58,871 width=591) (actual time=1,153.185..1,409.062 rows=3,443 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 3.311 1,404.334 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,208.97..184,542.01 rows=58,871 width=581) (actual time=1,151.587..1,404.334 rows=3,443 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 3.296 1,400.998 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=17,207.66..184,339.37 rows=58,871 width=569) (actual time=1,151.544..1,400.998 rows=3,443 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 4.621 1,395.779 ↑ 17.1 3,443 3 / 3

Parallel Hash Left Join (cost=16,996.53..183,973.31 rows=58,871 width=559) (actual time=1,149.599..1,395.779 rows=3,443 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 4.532 1,055.062 ↑ 17.1 3,443 3 / 3

Parallel Hash Left Join (cost=9,851.45..176,673.69 rows=58,871 width=443) (actual time=812.722..1,055.062 rows=3,443 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 3.145 602.915 ↑ 17.1 3,443 3 / 3

Hash Left Join (cost=8.04..166,675.74 rows=58,871 width=427) (actual time=364.374..602.915 rows=3,443 loops=3)

  • Hash Cond: (si.nettingbundle_id = nb.id)
  • Filter: ((si.nettingbundle_id IS NULL) OR (si.id = nb.surplus_id))
14. 5.181 599.624 ↑ 17.1 3,443 3 / 3

Nested Loop (cost=2.17..166,515.28 rows=58,890 width=435) (actual time=364.199..599.624 rows=3,443 loops=3)

15. 30.520 580.672 ↑ 17.1 3,443 3 / 3

Nested Loop (cost=1.73..128,761.94 rows=58,890 width=236) (actual time=363.112..580.672 rows=3,443 loops=3)

16. 97.293 390.782 ↑ 2.6 26,562 3 / 3

Hash Join (cost=1.30..9,862.01 rows=69,276 width=24) (actual time=361.535..390.782 rows=26,562 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
17. 293.467 293.467 ↑ 1.3 277,103 3 / 3

Parallel Seq Scan on apfearlypaymentsettlement ps_apfeps (cost=0.00..8,758.79 rows=346,379 width=24) (actual time=0.682..293.467 rows=277,103 loops=3)

18. 0.006 0.022 ↑ 1.0 4 3 / 3

Hash (cost=1.25..1.25 rows=4 width=16) (actual time=0.022..0.022 rows=4 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
19. 0.016 0.016 ↑ 1.0 4 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=16) (actual time=0.014..0.016 rows=4 loops=3)

  • Filter: (buyer_id = 67,002,626)
  • Rows Removed by Filter: 16
20. 159.370 159.370 ↓ 0.0 0 79,685 / 3

Index Scan using earlypaymentsettlement_pkey on earlypaymentsettlement ps_eps (cost=0.43..1.72 rows=1 width=220) (actual time=0.006..0.006 rows=0 loops=79,685)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
21. 13.771 13.771 ↑ 1.0 1 10,328 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..0.64 rows=1 width=207) (actual time=0.004..0.004 rows=1 loops=10,328)

  • Index Cond: (id = ps_eps.invoice_id)
22. 0.071 0.146 ↑ 1.0 172 3 / 3

Hash (cost=3.72..3.72 rows=172 width=16) (actual time=0.146..0.146 rows=172 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 17kB
23. 0.075 0.075 ↑ 1.0 172 3 / 3

Seq Scan on nettingbundle nb (cost=0.00..3.72 rows=172 width=16) (actual time=0.012..0.075 rows=172 loops=3)

24. 77.943 447.615 ↑ 1.3 131,499 3 / 3

Parallel Hash (cost=7,788.74..7,788.74 rows=164,374 width=24) (actual time=447.615..447.615 rows=131,499 loops=3)

  • Buckets: 524,288 Batches: 1 Memory Usage: 26,656kB
25. 369.672 369.672 ↑ 1.3 131,499 3 / 3

Parallel Seq Scan on financingcontextbase ps_apffc_fc_fcb (cost=0.00..7,788.74 rows=164,374 width=24) (actual time=0.579..369.672 rows=131,499 loops=3)

26. 48.578 336.096 ↑ 1.2 79,932 3 / 3

Parallel Hash (cost=5,896.15..5,896.15 rows=99,915 width=132) (actual time=336.096..336.096 rows=79,932 loops=3)

  • Buckets: 262,144 Batches: 1 Memory Usage: 20,832kB
27. 287.518 287.518 ↑ 1.2 79,932 3 / 3

Parallel Seq Scan on apffinancingcontext ps_apffc_fc_afc (cost=0.00..5,896.15 rows=99,915 width=132) (actual time=0.706..287.518 rows=79,932 loops=3)

28. 0.743 1.923 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.923..1.923 rows=1,650 loops=3)

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

Seq Scan on corporatebase ps_eps_t_bc_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.007..1.180 rows=1,650 loops=3)

30. 0.011 0.025 ↑ 1.0 14 3 / 3

Hash (cost=1.14..1.14 rows=14 width=28) (actual time=0.024..0.025 rows=14 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
31. 0.014 0.014 ↑ 1.0 14 3 / 3

Seq Scan on divisionbase od_db (cost=0.00..1.14 rows=14 width=28) (actual time=0.007..0.014 rows=14 loops=3)

32. 0.732 1.577 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.577..1.577 rows=1,650 loops=3)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
33. 0.845 0.845 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase od_c_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.002..0.845 rows=1,650 loops=3)

34. 0.733 1.560 ↑ 1.0 1,650 3 / 3

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.560..1.560 rows=1,650 loops=3)

  • Buckets: 2,048 Batches: 1 Memory Usage: 119kB
35. 0.827 0.827 ↑ 1.0 1,650 3 / 3

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.002..0.827 rows=1,650 loops=3)

36. 10.328 10.328 ↑ 1.0 1 10,328 / 3

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=10,328)

  • Index Cond: (si.importbatch_id = id)
37. 0.007 0.017 ↑ 1.0 6 3 / 3

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.017..0.017 rows=6 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
38. 0.010 0.010 ↑ 1.0 6 3 / 3

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.007..0.010 rows=6 loops=3)

39. 0.416 0.776 ↑ 1.0 945 3 / 3

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.775..0.776 rows=945 loops=3)

  • Buckets: 1,024 Batches: 1 Memory Usage: 68kB
40. 0.360 0.360 ↑ 1.0 945 3 / 3

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.006..0.360 rows=945 loops=3)

41. 0.001 0.005 ↓ 0.0 0 3 / 3

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
42. 0.004 0.004 ↓ 0.0 0 3 / 3

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

43. 0.000 0.004 ↓ 0.0 0 3 / 3

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

  • Buckets: 1,024 Batches: 1 Memory Usage: 8kB
44. 0.004 0.004 ↓ 0.0 0 3 / 3

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

45.          

SubPlan (for Gather)

46. 10.328 10.328 ↑ 1.0 1 10,328

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

47. 0.000 0.000 ↓ 0.0 0 10,328

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=10,328)

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