explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hTo

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

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

  • Workers Planned: 2
  • Workers Launched: 2
2. 3.099 2,294.074 ↑ 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,229.873..2,294.074 rows=3,420 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 2.943 2,290.971 ↑ 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,229.853..2,290.971 rows=3,420 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 2.951 2,288.022 ↑ 6.1 3,420 3 / 3

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

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 3.157 2,284.316 ↑ 6.1 3,420 3 / 3

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

  • Hash Cond: (si.currency_id = c.id)
6. 4.889 2,281.144 ↑ 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,229.029..2,281.144 rows=3,420 loops=3)

7. 3.065 2,269.414 ↑ 6.1 3,420 3 / 3

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

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 3.106 2,264.597 ↑ 6.1 3,420 3 / 3

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

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 4.304 2,261.434 ↑ 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,227.156..2,261.434 rows=3,420 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
10. 4.130 2,172.982 ↑ 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,142.219..2,172.982 rows=3,420 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
11. 3.136 2,041.111 ↑ 6.1 3,420 3 / 3

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

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 109.889 2,037.848 ↑ 6.1 3,420 3 / 3

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

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

14. 6.285 1,837.469 ↑ 28.3 3,420 3 / 3

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

  • Buckets: 524288 Batches: 1 Memory Usage: 8480kB
15. 864.872 1,831.184 ↑ 28.3 3,420 3 / 3

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

  • Hash Cond: (ps_eps.invoice_id = si.id)
16. 799.592 799.592 ↓ 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.007..799.592 rows=1,808,270 loops=3)

  • Filter: (creationdate >= '2019-01-01'::date)
  • Rows Removed by Filter: 316423
17. 59.638 166.720 ↑ 5.8 80,348 3 / 3

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

  • Buckets: 524288 Batches: 1 Memory Usage: 24137kB
18. 58.675 107.082 ↑ 5.8 80,348 3 / 3

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

19. 0.014 0.014 ↑ 1.0 1 3 / 3

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

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 13
20. 48.393 48.393 ↑ 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.019..48.393 rows=80,348 loops=3)

  • Index Cond: (originatordivision_id = od_db.id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 402
21. 0.012 0.127 ↑ 1.0 20 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
22. 0.021 0.115 ↑ 1.0 20 3 / 3

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

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
23. 0.021 0.021 ↑ 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.019..0.021 rows=6 loops=3)

24. 0.052 0.073 ↑ 1.0 20 3 / 3

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.067..0.073 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
25. 0.021 0.021 ↑ 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.014..0.021 rows=20 loops=3)

26. 67.602 127.741 ↑ 1.3 131,499 3 / 3

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

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

28. 44.350 84.148 ↑ 1.2 79,932 3 / 3

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

  • Buckets: 262144 Batches: 1 Memory Usage: 20864kB
29. 39.798 39.798 ↑ 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..39.798 rows=79,932 loops=3)

30. 0.008 0.057 ↑ 1.0 1 3 / 3

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

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

  • Index Cond: (id = 67002626)
32. 0.717 1.752 ↑ 1.0 1,650 3 / 3

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

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

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

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

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

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

37. 0.392 0.755 ↑ 1.0 945 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
38. 0.363 0.363 ↑ 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.363 rows=945 loops=3)

39. 0.001 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)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
40. 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)

41. 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
42. 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)

43.          

SubPlan (for Gather)

44. 10.261 10.261 ↑ 1.0 1 10,261

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

45. 0.000 0.000 ↓ 0.0 0 10,261

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)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 11.450 ms
Execution time : 2,325.120 ms