explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 6gYl

Settings
# exclusive inclusive rows x rows loops node
1. 37.558 1,143.197 ↑ 3.2 21,329 1

Gather (cost=276,781.81..928,360.50 rows=67,453 width=1,810) (actual time=728.140..1,143.197 rows=21,329 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
2. 6.914 1,084.310 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,781.81..369,355.56 rows=28,105 width=1,655) (actual time=721.418..1,084.310 rows=7,110 loops=3)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 6.690 1,077.392 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,771.58..369,239.93 rows=28,105 width=1,655) (actual time=721.397..1,077.392 rows=7,110 loops=3)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 6.742 1,070.697 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,761.36..369,155.93 rows=28,105 width=611) (actual time=721.374..1,070.697 rows=7,110 loops=3)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 6.768 1,063.272 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,729.09..369,049.89 rows=28,105 width=597) (actual time=720.672..1,063.272 rows=7,110 loops=3)

  • Hash Cond: (si.currency_id = c.id)
6. 10.583 1,056.490 ↑ 4.0 7,110 3 / 3

Nested Loop Left Join (cost=275,727.96..368,922.87 rows=28,105 width=601) (actual time=720.642..1,056.490 rows=7,110 loops=3)

7. 6.793 1,031.688 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,727.53..354,940.43 rows=28,105 width=601) (actual time=720.625..1,031.688 rows=7,110 loops=3)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 6.581 1,023.433 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,516.40..354,655.34 rows=28,105 width=591) (actual time=719.145..1,023.433 rows=7,110 loops=3)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 6.748 1,015.400 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,305.28..354,370.25 rows=28,105 width=581) (actual time=717.669..1,015.400 rows=7,110 loops=3)

  • Hash Cond: (si.originatordivision_id = od_db.id)
10. 7.093 1,008.626 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=275,303.96..354,272.82 rows=28,105 width=569) (actual time=717.622..1,008.626 rows=7,110 loops=3)

  • Hash Cond: (ps_apfeps_t_apfda.bank_id = ps_eps_t_bc_cb.id)
11. 8.532 999.680 ↑ 4.0 7,110 3 / 3

Parallel Hash Left Join (cost=275,092.84..353,987.73 rows=28,105 width=559) (actual time=715.750..999.680 rows=7,110 loops=3)

  • Hash Cond: (ps_apffc_fc_fcb.id = ps_apffc_fc_afc.id)
12. 8.342 913.298 ↑ 4.0 7,110 3 / 3

Parallel Hash Left Join (cost=267,947.75..346,768.87 rows=28,105 width=443) (actual time=637.028..913.298 rows=7,110 loops=3)

  • Hash Cond: (ps_apfeps.financingcontext_id = ps_apffc_fc_fcb.id)
13. 6.752 783.688 ↑ 4.0 7,110 3 / 3

Hash Join (cost=258,104.34..336,851.68 rows=28,105 width=427) (actual time=514.927..783.688 rows=7,110 loops=3)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
14. 6.667 776.906 ↑ 4.0 7,110 3 / 3

Hash Left Join (cost=258,102.89..336,760.82 rows=28,105 width=427) (actual time=514.869..776.906 rows=7,110 loops=3)

  • Hash Cond: (si.nettingbundle_id = nb.id)
  • Filter: ((si.nettingbundle_id IS NULL) OR (si.id = nb.surplus_id))
15. 12.668 770.095 ↑ 4.0 7,110 3 / 3

Nested Loop (cost=258,097.02..336,681.15 rows=28,115 width=435) (actual time=514.698..770.095 rows=7,110 loops=3)

16. 147.542 743.208 ↑ 4.0 7,110 3 / 3

Parallel Hash Join (cost=258,096.58..267,764.62 rows=28,115 width=236) (actual time=514.668..743.208 rows=7,110 loops=3)

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

18. 166.828 513.916 ↓ 1.3 168,023 3 / 3

Parallel Hash (cost=256,479.81..256,479.81 rows=129,342 width=220) (actual time=513.916..513.916 rows=168,023 loops=3)

  • Buckets: 524288 Batches: 1 Memory Usage: 118624kB
19. 327.899 347.088 ↓ 1.3 168,023 3 / 3

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=9,686.03..256,479.81 rows=129,342 width=220) (actual time=103.258..347.088 rows=168,023 loops=3)

  • Recheck Cond: (creationdate >= '2019-02-01'::date)
  • Heap Blocks: exact=62334
20. 19.189 19.189 ↑ 1.0 504,070 1 / 3

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..9,556.69 rows=517,368 width=0) (actual time=57.566..57.566 rows=504,070 loops=1)

  • Index Cond: (creationdate >= '2019-02-01'::date)
21. 14.219 14.219 ↑ 1.0 1 21,329 / 3

Index Scan using supplierinvoice_pkey on supplierinvoice si (cost=0.43..2.45 rows=1 width=207) (actual time=0.002..0.002 rows=1 loops=21,329)

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

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

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

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

24. 0.012 0.030 ↑ 1.0 20 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.018 0.018 ↑ 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.011..0.018 rows=20 loops=3)

26. 63.485 121.268 ↑ 1.3 131,499 3 / 3

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

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

28. 40.652 77.850 ↑ 1.2 79,932 3 / 3

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

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

30. 0.633 1.853 ↑ 1.0 1,650 3 / 3

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

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

32. 0.011 0.026 ↑ 1.0 14 3 / 3

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
33. 0.015 0.015 ↑ 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.015 rows=14 loops=3)

34. 0.667 1.452 ↑ 1.0 1,650 3 / 3

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

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

36. 0.670 1.462 ↑ 1.0 1,650 3 / 3

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

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

38. 14.219 14.219 ↑ 1.0 1 21,329 / 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,329)

  • Index Cond: (si.importbatch_id = id)
39. 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
40. 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)

41. 0.345 0.683 ↑ 1.0 945 3 / 3

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

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

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

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

47.          

SubPlan (for Gather)

48. 21.329 21.329 ↑ 1.0 1 21,329

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

49. 0.000 0.000 ↓ 0.0 0 21,329

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

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 11.488 ms
Execution time : 1,149.314 ms