explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Dbw8

Settings
# exclusive inclusive rows x rows loops node
1. 9.380 289.383 ↑ 288.6 67 1

Gather (cost=4,057.83..185,899.67 rows=19,333 width=1,810) (actual time=287.211..289.383 rows=67 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 0.036 279.869 ↑ 366.1 22 3 / 3

Hash Left Join (cost=3,057.83..24,967.43 rows=8,055 width=1,655) (actual time=279.276..279.869 rows=22 loops=3)

  • Hash Cond: (fi_eps.earlypaymentmapping_id = fi_bpt.mapping_id)
3. 0.037 279.829 ↑ 366.1 22 3 / 3

Hash Left Join (cost=3,047.61..24,926.99 rows=8,055 width=1,655) (actual time=279.257..279.829 rows=22 loops=3)

  • Hash Cond: (fi_si.paymentadvice_id = fi_ipa.id)
4. 0.037 279.787 ↑ 366.1 22 3 / 3

Hash Left Join (cost=3,037.38..24,895.62 rows=8,055 width=611) (actual time=279.235..279.787 rows=22 loops=3)

  • Hash Cond: (fi_eps.earlypaymentadvice_id = fi_eps_epa.id)
5. 0.028 279.008 ↑ 366.1 22 3 / 3

Nested Loop Left Join (cost=3,005.12..24,842.21 rows=8,055 width=597) (actual time=278.479..279.008 rows=22 loops=3)

6. 0.037 278.913 ↑ 366.1 22 3 / 3

Hash Left Join (cost=3,004.69..20,834.79 rows=8,055 width=597) (actual time=278.464..278.913 rows=22 loops=3)

  • Hash Cond: (si.currency_id = c.id)
7. 0.039 278.860 ↑ 366.1 22 3 / 3

Hash Left Join (cost=3,003.55..20,797.58 rows=8,055 width=601) (actual time=278.432..278.860 rows=22 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.038 277.253 ↑ 366.1 22 3 / 3

Hash Left Join (cost=2,792.43..20,565.26 rows=8,055 width=591) (actual time=276.849..277.253 rows=22 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 0.030 275.398 ↑ 366.1 22 3 / 3

Nested Loop Left Join (cost=2,581.30..20,332.93 rows=8,055 width=581) (actual time=275.016..275.398 rows=22 loops=3)

10. 0.039 275.301 ↑ 366.1 22 3 / 3

Nested Loop Left Join (cost=2,580.88..16,593.45 rows=8,055 width=465) (actual time=275.000..275.301 rows=22 loops=3)

11. 0.052 275.195 ↑ 366.1 22 3 / 3

Hash Left Join (cost=2,580.46..12,769.07 rows=8,055 width=457) (actual time=274.981..275.195 rows=22 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 111.774 275.049 ↑ 366.1 22 3 / 3

Parallel Hash Join (cost=2,577.28..12,655.13 rows=8,055 width=447) (actual time=274.858..275.049 rows=22 loops=3)

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

14. 0.377 74.471 ↑ 1,684.5 22 3 / 3

Parallel Hash (cost=2,114.05..2,114.05 rows=37,058 width=431) (actual time=74.471..74.471 rows=22 loops=3)

  • Buckets: 262144 Batches: 1 Memory Usage: 2080kB
15. 0.046 74.094 ↑ 1,684.5 22 3 / 3

Merge Join (cost=1,530.82..2,114.05 rows=37,058 width=431) (actual time=50.473..74.094 rows=22 loops=3)

  • Merge Cond: (si.nettingbundle_id = nb.id)
16. 10.058 71.485 ↑ 27,474.5 58 3 / 3

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

17. 11.329 11.329 ↑ 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.022..11.329 rows=25,049 loops=3)

18. 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)
19. 0.067 2.563 ↓ 5.8 23 3 / 3

Sort (cost=1,529.95..1,529.96 rows=4 width=68) (actual time=2.555..2.563 rows=23 loops=3)

  • Sort Key: nb.id
  • Sort Method: quicksort Memory: 34kB
  • Worker 0: Sort Method: quicksort Memory: 34kB
  • Worker 1: Sort Method: quicksort Memory: 34kB
20. 0.289 2.496 ↓ 16.8 67 3 / 3

Nested Loop Left Join (cost=1.29..1,529.91 rows=4 width=68) (actual time=1.154..2.496 rows=67 loops=3)

  • Join Filter: (fi_si.originatordivision_id = od_db.id)
  • Rows Removed by Join Filter: 871
21. 0.108 1.939 ↓ 16.8 67 3 / 3

Nested Loop (cost=1.29..1,527.90 rows=4 width=56) (actual time=1.123..1.939 rows=67 loops=3)

22. 0.270 1.697 ↓ 16.8 67 3 / 3

Nested Loop (cost=0.86..1,525.34 rows=4 width=56) (actual time=1.110..1.697 rows=67 loops=3)

  • Join Filter: (fi_ps_apfeps.apfda_id = fi_ps_apfeps_t_apfda.id)
  • Rows Removed by Join Filter: 525
23. 0.220 1.255 ↓ 9.1 172 3 / 3

Nested Loop (cost=0.86..1,522.97 rows=19 width=64) (actual time=0.029..1.255 rows=172 loops=3)

24. 0.289 0.691 ↓ 1.2 172 3 / 3

Nested Loop (cost=0.43..1,457.55 rows=146 width=56) (actual time=0.017..0.691 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.010..0.058 rows=172 loops=3)

26. 0.344 0.344 ↑ 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.002..0.002 rows=1 loops=516)

  • Index Cond: (invoice_id = nb.surplus_id)
  • Filter: (creationdate >= '2019-01-01'::date)
27. 0.344 0.344 ↑ 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.002..0.002 rows=1 loops=516)

  • Index Cond: (id = fi_eps.id)
28. 0.164 0.172 ↑ 1.3 3 516 / 3

Materialize (cost=0.00..1.27 rows=4 width=8) (actual time=0.000..0.001 rows=3 loops=516)

29. 0.008 0.008 ↑ 1.0 4 3 / 3

Seq Scan on apfdebtoragreement fi_ps_apfeps_t_apfda (cost=0.00..1.25 rows=4 width=8) (actual time=0.006..0.008 rows=4 loops=3)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 16
30. 0.134 0.134 ↑ 1.0 1 201 / 3

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

  • Index Cond: (id = fi_eps.invoice_id)
31. 0.255 0.268 ↑ 1.0 14 201 / 3

Materialize (cost=0.00..1.21 rows=14 width=28) (actual time=0.000..0.004 rows=14 loops=201)

32. 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.007..0.013 rows=14 loops=3)

33. 0.012 0.094 ↑ 1.0 20 3 / 3

Hash (cost=2.93..2.93 rows=20 width=26) (actual time=0.094..0.094 rows=20 loops=3)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
34. 0.023 0.082 ↑ 1.0 20 3 / 3

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.058..0.082 rows=20 loops=3)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
35. 0.019 0.019 ↑ 275.0 6 3 / 3

Index Scan using corporatebase_pkey on corporatebase ps_eps_t_bc_cb (cost=0.28..234.48 rows=1,650 width=26) (actual time=0.016..0.019 rows=6 loops=3)

36. 0.026 0.040 ↑ 1.0 20 3 / 3

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.035..0.040 rows=20 loops=3)

  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Worker 1: Sort Method: quicksort Memory: 25kB
37. 0.014 0.014 ↑ 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.007..0.014 rows=20 loops=3)

38. 0.067 0.067 ↑ 1.0 1 67 / 3

Index Scan using financingcontextbase_pkey on financingcontextbase ps_apffc_fc_fcb (cost=0.42..0.47 rows=1 width=24) (actual time=0.003..0.003 rows=1 loops=67)

  • Index Cond: (id = ps_apfeps.financingcontext_id)
39. 0.067 0.067 ↑ 1.0 1 67 / 3

Index Scan using apffinancingcontext_pkey on apffinancingcontext fi_ps_apffc_fc_afc (cost=0.42..0.46 rows=1 width=132) (actual time=0.003..0.003 rows=1 loops=67)

  • Index Cond: (fi_ps_apfeps.financingcontext_id = id)
40. 0.709 1.817 ↑ 1.0 1,650 3 / 3

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

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

42. 0.711 1.568 ↑ 1.0 1,650 3 / 3

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

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

44. 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
45. 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)

46. 0.067 0.067 ↑ 1.0 1 67 / 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=67)

  • Index Cond: (si.importbatch_id = id)
47. 0.387 0.742 ↑ 1.0 945 3 / 3

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

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

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

49. 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
50. 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)

51. 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
52. 0.003 0.003 ↓ 0.0 0 3 / 3

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

53.          

SubPlan (for Gather)

54. 0.134 0.134 ↑ 1.0 1 67

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

55. 0.000 0.000 ↓ 0.0 0 67

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

  • Index Cond: (mapping_id = fi_eps.maturitypaymentmapping_id)
Planning time : 10.605 ms
Execution time : 289.791 ms