explain.depesz.com

PostgreSQL's explain analyze made readable

Result: s94Q

Settings
# exclusive inclusive rows x rows loops node
1. 29.574 2,455.176 ↑ 4.9 10,261 1

Gather (cost=340,003.07..779,039.27 rows=50,461 width=1,810) (actual time=2,365.181..2,455.176 rows=10,261 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 2,422.182 2,425.602 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=339,003.07..360,600.65 rows=21,025 width=1,655) (actual time=2,358.618..2,425.602 rows=3,420 loops=3)

3. 0.000 3.420 ↑ 1.0 1 10,261 / 3

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

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
4. 2,422.528 2,422.528 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=338,992.85..360,511.57 rows=21,025 width=1,655) (actual time=2,358.597..2,422.528 rows=3,420 loops=3)

5. 0.004 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)

6. 0.000 0.000 ↓ 0.0 0 10,261 / 3

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,261)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
7. 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)

8. 2,419.567 2,419.567 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=338,982.62..360,446.15 rows=21,025 width=611) (actual time=2,358.575..2,419.567 rows=3,420 loops=3)

9. 0.000 0.006 ↓ 0.0 0 3 / 3

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

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
10. 0.005 0.005 ↓ 0.0 0 3 / 3

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

11. 2,415.845 2,415.845 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=338,950.36..360,358.70 rows=21,025 width=597) (actual time=2,357.802..2,415.845 rows=3,420 loops=3)

12. 0.000 0.758 ↑ 1.0 945 3 / 3

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

  • Hash Cond: (si.currency_id = c.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
13. 0.361 0.361 ↑ 1.0 945 3 / 3

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

14. 2,412.605 2,412.605 ↑ 6.1 3,420 3 / 3

Nested Loop Left Join (cost=338,949.23..360,263.39 rows=21,025 width=601) (actual time=2,357.766..2,412.605 rows=3,420 loops=3)

15. 0.000 0.019 ↑ 1.0 6 3 / 3

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

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

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

17. 6.841 6.841 ↑ 1.0 1 10,261 / 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,261)

18. 3.242 2,400.616 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=338,948.79..349,802.97 rows=21,025 width=601) (actual time=2,357.743..2,400.616 rows=3,420 loops=3)

  • Index Cond: (si.importbatch_id = id)
  • Hash Cond: (si.supplier_id = s_cb.id)
19. 2,395.606 2,395.606 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=338,737.67..349,536.51 rows=21,025 width=591) (actual time=2,355.959..2,395.606 rows=3,420 loops=3)

20. 0.000 1.768 ↑ 1.0 1,650 3 / 3

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

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
21. 1.038 1.038 ↑ 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.007..1.038 rows=1,650 loops=3)

22. 2,392.433 2,392.433 ↑ 6.1 3,420 3 / 3

Parallel Hash Left Join (cost=338,729.36..349,239.11 rows=21,025 width=581) (actual time=2,355.913..2,392.433 rows=3,420 loops=3)

23. 0.000 0.031 ↑ 1.0 1 3 / 3

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

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
24. 2,299.233 2,299.233 ↑ 6.1 3,420 3 / 3

Parallel Hash Left Join (cost=331,584.27..342,038.83 rows=21,025 width=465) (actual time=2,266.438..2,299.233 rows=3,420 loops=3)

25. 88.648 88.648 ↑ 1.2 79,932 3 / 3

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

26. 0.000 0.026 ↑ 1.0 1 3 / 3

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

  • Index Cond: (id = 67002626)
  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
  • Buckets: 262144 Batches: 1 Memory Usage: 20832kB
27. 39.850 39.850 ↑ 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.007..39.850 rows=79,932 loops=3)

28. 134.845 134.845 ↑ 1.3 131,499 3 / 3

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

29. 0.000 2,160.031 ↑ 6.1 3,420 3 / 3

Hash Left Join (cost=321,740.86..332,140.23 rows=21,025 width=449) (actual time=2,130.790..2,160.031 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
  • Buckets: 524288 Batches: 1 Memory Usage: 26688kB
30. 60.885 60.885 ↑ 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.011..60.885 rows=131,499 loops=3)

31. 2,156.676 2,156.676 ↑ 6.1 3,420 3 / 3

Parallel Hash Join (cost=321,737.68..331,847.95 rows=21,025 width=439) (actual time=2,130.637..2,156.676 rows=3,420 loops=3)

32. 0.000 0.125 ↑ 1.0 20 3 / 3

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

  • Hash Cond: (ps_apfeps.id = ps_eps.id)
  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
33. 83.350 83.350 ↑ 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..83.350 rows=277,103 loops=3)

34. 1,954.286 1,954.286 ↑ 28.3 3,420 3 / 3

Parallel Hash (cost=320,528.59..320,528.59 rows=96,727 width=423) (actual time=1,954.286..1,954.286 rows=3,420 loops=3)

35. 0.000 0.112 ↑ 1.0 20 3 / 3

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

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
  • Buckets: 524288 Batches: 1 Memory Usage: 8512kB
36. 0.065 0.065 ↑ 1.0 20 3 / 3

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

37. 0.027 0.027 ↑ 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.024..0.027 rows=6 loops=3)

38. 945.419 1,947.609 ↑ 28.3 3,420 3 / 3

Hash Join (cost=49,385.50..320,528.59 rows=96,727 width=423) (actual time=1,934.308..1,947.609 rows=3,420 loops=3)

  • Worker 1: Sort Method: quicksort Memory: 25kB
  • Worker 0: Sort Method: quicksort Memory: 25kB
  • Sort Method: quicksort Memory: 25kB
  • Sort Key: ps_apfeps_t_apfda.bank_id
  • Hash Cond: (ps_eps.invoice_id = si.id)
39. 0.022 0.022 ↑ 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.015..0.022 rows=20 loops=3)

40. 837.022 837.022 ↓ 1.3 1,808,270 3 / 3

Parallel Seq Scan on earlypaymentsettlement ps_eps (cost=0.00..265,095.99 rows=1,354,620 width=220) (actual time=0.012..837.022 rows=1,808,270 loops=3)

41. 59.644 165.146 ↑ 5.8 80,348 3 / 3

Hash (cost=43,521.49..43,521.49 rows=469,121 width=219) (actual time=165.146..165.146 rows=80,348 loops=3)

  • Rows Removed by Filter: 316423
  • Filter: (creationdate >= '2019-01-01'::date)
  • Buckets: 524288 Batches: 1 Memory Usage: 24137kB
42. 58.109 105.502 ↑ 5.8 80,348 3 / 3

Nested Loop (cost=0.43..43,521.49 rows=469,121 width=219) (actual time=0.055..105.502 rows=80,348 loops=3)

43. 0.025 0.025 ↑ 1.0 1 3 / 3

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=28) (actual time=0.023..0.025 rows=1 loops=3)

44. 47.368 47.368 ↑ 5.8 80,348 3 / 3

Index Scan using supplierinvoice_originatordivision_idx on supplierinvoice si (cost=0.43..38,829.11 rows=469,121 width=207) (actual time=0.025..47.368 rows=80,348 loops=3)

  • Rows Removed by Filter: 402
  • Rows Removed by Filter: 13
  • Index Cond: (originatordivision_id = od_db.id)
  • Filter: (nettingbundle_id IS NULL)
  • Filter: (buyer_id = 67002626)
Planning time : 8.543 ms
Execution time : 2,458.414 ms