explain.depesz.com

PostgreSQL's explain analyze made readable

Result: AkZB

Settings
# exclusive inclusive rows x rows loops node
1. 17.502 582.758 ↑ 13.7 10,328 1

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.287 554.928 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 3.113 551.636 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 3.114 548.518 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 3.295 544.631 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (si.currency_id = c.id)
6. 5.592 541.320 ↑ 17.1 3,443 3 / 3

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

7. 3.193 528.843 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.200 524.069 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 3.268 519.302 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 3.414 516.008 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 4.618 510.605 ↑ 17.1 3,443 3 / 3

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

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 4.474 419.715 ↑ 17.1 3,443 3 / 3

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

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

Hash Left Join (cost=8.04..166,675.74 rows=58,871 width=427) (actual time=153.334..276.268 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. 6.750 272.809 ↑ 17.1 3,443 3 / 3

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

15. 24.554 259.174 ↑ 17.1 3,443 3 / 3

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

16. 99.904 181.497 ↑ 2.6 26,562 3 / 3

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

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
17. 81.569 81.569 ↑ 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.005..81.569 rows=277,103 loops=3)

18. 0.006 0.024 ↑ 1.0 4 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.018 0.018 ↑ 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.016..0.018 rows=4 loops=3)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
20. 53.123 53.123 ↓ 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.002..0.002 rows=0 loops=79,685)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
21. 6.885 6.885 ↑ 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.002..0.002 rows=1 loops=10,328)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 17kB
23. 0.083 0.083 ↑ 1.0 172 3 / 3

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

24. 74.379 138.973 ↑ 1.3 131,499 3 / 3

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

  • Buckets: 524288 Batches: 1 Memory Usage: 26688kB
25. 64.594 64.594 ↑ 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.007..64.594 rows=131,499 loops=3)

26. 44.331 86.272 ↑ 1.2 79,932 3 / 3

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

  • Buckets: 262144 Batches: 1 Memory Usage: 20832kB
27. 41.941 41.941 ↑ 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.005..41.941 rows=79,932 loops=3)

28. 0.769 1.989 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
29. 1.220 1.220 ↑ 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.006..1.220 rows=1,650 loops=3)

30. 0.010 0.026 ↑ 1.0 14 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.016 0.016 ↑ 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.016 rows=14 loops=3)

32. 0.734 1.567 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
33. 0.833 0.833 ↑ 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.003..0.833 rows=1,650 loops=3)

34. 0.743 1.581 ↑ 1.0 1,650 3 / 3

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
35. 0.838 0.838 ↑ 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.003..0.838 rows=1,650 loops=3)

36. 6.885 6.885 ↑ 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.002..0.002 rows=1 loops=10,328)

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

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

  • Buckets: 1024 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.414 0.773 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
40. 0.359 0.359 ↑ 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.359 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: 1024 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.001 0.005 ↓ 0.0 0 3 / 3

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

  • Buckets: 1024 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 : 8.311 ms
Execution time : 585.839 ms