explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 3WrB

Settings
# exclusive inclusive rows x rows loops node
1. 20.010 768.541 ↑ 8.2 21,537 1

Gather (cost=18,482.70..1,725,014.03 rows=176,612 width=1,810) (actual time=211.901..768.541 rows=21,537 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 6.805 726.994 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,482.70..262,991.26 rows=73,588 width=1,655) (actual time=205.810..726.994 rows=7,179 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 6.528 720.185 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,472.47..262,705.07 rows=73,588 width=1,655) (actual time=205.793..720.185 rows=7,179 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 6.340 713.652 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,462.25..262,501.68 rows=73,588 width=611) (actual time=205.776..713.652 rows=7,179 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 6.704 706.616 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,429.99..262,276.25 rows=73,588 width=597) (actual time=205.069..706.616 rows=7,179 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 11.896 699.898 ↑ 10.3 7,179 3 / 3

Nested Loop Left Join (cost=17,428.85..261,945.49 rows=73,588 width=601) (actual time=205.042..699.898 rows=7,179 loops=3)

7. 6.883 673.644 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,428.42..225,334.92 rows=73,588 width=601) (actual time=205.027..673.644 rows=7,179 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 6.749 665.294 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,217.29..224,930.12 rows=73,588 width=591) (actual time=203.545..665.294 rows=7,179 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 6.919 656.976 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,006.17..224,525.33 rows=73,588 width=581) (actual time=201.961..656.976 rows=7,179 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 6.866 650.034 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=17,004.85..224,272.37 rows=73,588 width=569) (actual time=201.923..650.034 rows=7,179 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 8.352 643.139 ↑ 10.3 7,179 3 / 3

Parallel Hash Left Join (cost=16,996.55..223,252.23 rows=73,588 width=559) (actual time=201.880..643.139 rows=7,179 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 8.261 556.085 ↑ 10.3 7,179 3 / 3

Parallel Hash Left Join (cost=9,851.46..215,913.98 rows=73,588 width=443) (actual time=122.510..556.085 rows=7,179 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 6.591 426.285 ↑ 10.3 7,179 3 / 3

Hash Left Join (cost=8.05..205,877.39 rows=73,588 width=427) (actual time=0.235..426.285 rows=7,179 loops=3)

  • Hash Cond: (si.nettingbundle_id = nb.id)
  • Filter: ((si.nettingbundle_id IS NULL) OR (si.id = nb.surplus_id))
14. 13.437 419.562 ↑ 10.3 7,179 3 / 3

Nested Loop (cost=2.18..205,678.29 rows=73,612 width=435) (actual time=0.089..419.562 rows=7,179 loops=3)

15. 61.083 391.767 ↑ 10.3 7,179 3 / 3

Nested Loop (cost=1.75..158,486.94 rows=73,612 width=236) (actual time=0.074..391.767 rows=7,179 loops=3)

16. 114.569 192.063 ↑ 1.2 69,311 3 / 3

Hash Join (cost=1.31..9,862.02 rows=86,595 width=24) (actual time=0.054..192.063 rows=69,311 loops=3)

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

18. 0.005 0.025 ↑ 1.0 5 3 / 3

Hash (cost=1.25..1.25 rows=5 width=16) (actual time=0.024..0.025 rows=5 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
19. 0.020 0.020 ↑ 1.0 5 3 / 3

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

  • Filter: (bank_id = 3053)
  • Rows Removed by Filter: 15
20. 138.621 138.621 ↓ 0.0 0 207,932 / 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=207,932)

  • Index Cond: (id = ps_apfeps.id)
  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 1
21. 14.358 14.358 ↑ 1.0 1 21,537 / 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=21,537)

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

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

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

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

24. 65.470 121.539 ↑ 1.3 131,499 3 / 3

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

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

26. 42.142 78.702 ↑ 1.2 79,932 3 / 3

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

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

28. 0.003 0.029 ↑ 1.0 1 3 / 3

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.029..0.029 rows=1 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.026 0.026 ↑ 1.0 1 3 / 3

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.025..0.026 rows=1 loops=3)

  • Index Cond: (id = 3053)
30. 0.010 0.023 ↑ 1.0 14 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
31. 0.013 0.013 ↑ 1.0 14 3 / 3

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

32. 0.660 1.569 ↑ 1.0 1,650 3 / 3

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

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

34. 0.660 1.467 ↑ 1.0 1,650 3 / 3

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

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

36. 14.358 14.358 ↑ 1.0 1 21,537 / 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=21,537)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
38. 0.009 0.009 ↑ 1.0 6 3 / 3

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

39. 0.365 0.696 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
40. 0.331 0.331 ↑ 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.331 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.004..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.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: 1024 Batches: 1 Memory Usage: 8kB
44. 0.003 0.003 ↓ 0.0 0 3 / 3

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

45.          

SubPlan (for Gather)

46. 21.537 21.537 ↑ 1.0 1 21,537

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

47. 0.000 0.000 ↓ 0.0 0 21,537

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=21,537)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 7.142 ms
Execution time : 774.365 ms