explain.depesz.com

PostgreSQL's explain analyze made readable

Result: i8j5

Settings
# exclusive inclusive rows x rows loops node
1. 14.650 487.876 ↑ 533.9 172 1

Gather (cost=23,003.27..813,004.73 rows=91,831 width=1,810) (actual time=476.571..487.876 rows=172 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 0.065 473.054 ↑ 671.3 57 3 / 3

Hash Left Join (cost=22,003.27..52,332.79 rows=38,263 width=1,655) (actual time=469.265..473.054 rows=57 loops=3)

  • Hash Cond: (fi_eps.earlypaymentmapping_id = fi_bpt.mapping_id)
3. 0.063 472.984 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,993.04..52,179.07 rows=38,263 width=1,655) (actual time=469.245..472.984 rows=57 loops=3)

  • Hash Cond: (fi_si.paymentadvice_id = fi_ipa.id)
4. 0.069 472.916 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,982.82..52,068.40 rows=38,263 width=611) (actual time=469.226..472.916 rows=57 loops=3)

  • Hash Cond: (fi_eps.earlypaymentadvice_id = fi_eps_epa.id)
5. 0.066 472.196 ↑ 671.3 57 3 / 3

Nested Loop Left Join (cost=21,950.55..51,935.70 rows=38,263 width=597) (actual time=468.562..472.196 rows=57 loops=3)

6. 0.069 471.958 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,950.12..32,899.57 rows=38,263 width=597) (actual time=468.541..471.958 rows=57 loops=3)

  • Hash Cond: (si.currency_id = c.id)
7. 0.070 471.873 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,948.99..32,727.05 rows=38,263 width=601) (actual time=468.510..471.873 rows=57 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.067 470.416 ↑ 671.3 57 3 / 3

Hash Left Join (cost=21,737.86..32,415.23 rows=38,263 width=591) (actual time=467.105..470.416 rows=57 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.808 468.953 ↑ 671.3 57 3 / 3

Parallel Hash Left Join (cost=21,526.74..32,103.41 rows=38,263 width=581) (actual time=465.693..468.953 rows=57 loops=3)

  • Hash Cond: (fi_ps_apfeps.financingcontext_id = fi_ps_apffc_fc_afc.id)
10. 0.068 383.742 ↑ 671.3 57 3 / 3

Hash Left Join (cost=14,381.65..24,857.88 rows=38,263 width=465) (actual time=380.730..383.742 rows=57 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 0.094 381.960 ↑ 671.3 57 3 / 3

Hash Left Join (cost=14,170.52..24,546.06 rows=38,263 width=455) (actual time=379.000..381.960 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 1.108 381.826 ↑ 671.3 57 3 / 3

Parallel Hash Left Join (cost=14,169.07..24,422.89 rows=38,263 width=455) (actual time=378.927..381.826 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 101.883 248.440 ↑ 671.3 57 3 / 3

Parallel Hash Join (cost=4,325.66..14,479.03 rows=38,263 width=447) (actual time=245.825..248.440 rows=57 loops=3)

  • Hash Cond: (ps_apfeps.id = ps_eps.id)
14. 71.010 71.010 ↑ 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.006..71.010 rows=277,103 loops=3)

15. 3.760 75.547 ↑ 3,088.2 57 3 / 3

Parallel Hash (cost=2,125.31..2,125.31 rows=176,028 width=431) (actual time=75.547..75.547 rows=57 loops=3)

  • Buckets: 1048576 Batches: 1 Memory Usage: 8320kB
16. 0.104 71.787 ↑ 3,088.2 57 3 / 3

Merge Join (cost=1,541.40..2,125.31 rows=176,028 width=431) (actual time=3.244..71.787 rows=57 loops=3)

  • Merge Cond: (si.nettingbundle_id = nb.id)
17. 7.534 68.586 ↑ 27,474.5 58 3 / 3

Nested Loop (cost=0.86..1,786,202.47 rows=1,593,520 width=371) (actual time=0.169..68.586 rows=58 loops=3)

18. 10.954 10.954 ↑ 65.6 25,049 3 / 3

Parallel Index Scan using supplierinvoice_nettingbundle_idx on supplierinvoice si (cost=0.43..784,438.39 rows=1,642,460 width=191) (actual time=0.039..10.954 rows=25,049 loops=3)

19. 50.098 50.098 ↓ 0.0 0 75,147 / 3

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement ps_eps (cost=0.43..0.61 rows=1 width=196) (actual time=0.002..0.002 rows=0 loops=75,147)

  • Index Cond: (invoice_id = si.id)
20. 0.176 3.097 ↓ 7.6 144 3 / 3

Sort (cost=1,540.54..1,540.59 rows=19 width=68) (actual time=3.062..3.097 rows=144 loops=3)

  • Sort Key: nb.id
  • Sort Method: quicksort Memory: 49kB
  • Worker 0: Sort Method: quicksort Memory: 49kB
  • Worker 1: Sort Method: quicksort Memory: 49kB
21. 0.532 2.921 ↓ 9.1 172 3 / 3

Nested Loop Left Join (cost=1.29..1,540.14 rows=19 width=68) (actual time=0.067..2.921 rows=172 loops=3)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 1286
22. 0.157 2.045 ↓ 9.1 172 3 / 3

Nested Loop (cost=1.29..1,535.15 rows=19 width=56) (actual time=0.051..2.045 rows=172 loops=3)

23. 0.106 1.372 ↓ 9.1 172 3 / 3

Nested Loop (cost=0.86..1,522.97 rows=19 width=56) (actual time=0.037..1.372 rows=172 loops=3)

24. 0.176 0.750 ↓ 1.2 172 3 / 3

Nested Loop (cost=0.43..1,457.55 rows=146 width=56) (actual time=0.022..0.750 rows=172 loops=3)

25. 0.058 0.058 ↑ 1.0 172 3 / 3

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

26. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using earlypaymentsettlement_invoice_idx on earlypaymentsettlement fi_eps (cost=0.43..8.45 rows=1 width=40) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate >= '2019-01-01'::date)
27. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement fi_ps_apfeps (cost=0.42..0.45 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (id = fi_eps.id)
28. 0.516 0.516 ↑ 1.0 1 516 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice fi_si (cost=0.43..0.64 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=516)

  • Index Cond: (id = fi_eps.invoice_id)
29. 0.331 0.344 ↑ 1.8 8 516 / 3

Materialize (cost=0.00..1.21 rows=14 width=28) (actual time=0.000..0.002 rows=8 loops=516)

30. 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)

31. 71.471 132.278 ↑ 1.3 131,499 3 / 3

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

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

33. 0.011 0.040 ↑ 1.0 20 3 / 3

Hash (cost=1.20..1.20 rows=20 width=16) (actual time=0.040..0.040 rows=20 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
34. 0.029 0.029 ↑ 1.0 20 3 / 3

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.022..0.029 rows=20 loops=3)

35. 0.642 1.714 ↑ 1.0 1,650 3 / 3

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

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

37. 44.547 84.403 ↑ 1.2 79,932 3 / 3

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

  • Buckets: 262144 Batches: 1 Memory Usage: 20864kB
38. 39.856 39.856 ↑ 1.2 79,932 3 / 3

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

39. 0.620 1.396 ↑ 1.0 1,650 3 / 3

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

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

41. 0.618 1.387 ↑ 1.0 1,650 3 / 3

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

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

43. 0.006 0.016 ↑ 1.0 6 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
44. 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.008..0.010 rows=6 loops=3)

45. 0.172 0.172 ↑ 1.0 1 172 / 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=172)

  • Index Cond: (si.importbatch_id = id)
46. 0.336 0.651 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
47. 0.315 0.315 ↑ 1.0 945 3 / 3

Seq Scan on earlypaymentadvice fi_eps_epa (cost=0.00..20.45 rows=945 width=30) (actual time=0.007..0.315 rows=945 loops=3)

48. 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
49. 0.004 0.004 ↓ 0.0 0 3 / 3

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

50. 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
51. 0.004 0.004 ↓ 0.0 0 3 / 3

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

52.          

SubPlan (for Gather)

53. 0.172 0.172 ↑ 1.0 1 172

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

54. 0.000 0.000 ↓ 0.0 0 172

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.14..8.15 rows=1 width=8) (actual time=0.000..0.000 rows=0 loops=172)

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 8.702 ms
Execution time : 488.309 ms