explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 1JGj

Settings
# exclusive inclusive rows x rows loops node
1. 11.291 697.711 ↑ 4.1 1,181 1

Gather (cost=60,335.49..353,938.62 rows=4,811 width=1,810) (actual time=679.519..697.711 rows=1,181 loops=1)

  • Workers Planned: 4
  • Workers Launched: 4
2. 0.459 680.515 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,335.49..313,139.62 rows=1,203 width=1,655) (actual time=671.621..680.515 rows=236 loops=5)

  • Hash Cond: (ps_eps.earlypaymentmapping_id = bpt.mapping_id)
3. 0.236 680.051 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,325.26..313,124.87 rows=1,203 width=1,655) (actual time=671.600..680.051 rows=236 loops=5)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 0.244 679.810 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,315.04..313,111.49 rows=1,203 width=611) (actual time=671.580..679.810 rows=236 loops=5)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 0.248 678.809 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,282.77..313,076.07 rows=1,203 width=597) (actual time=670.809..678.809 rows=236 loops=5)

  • Hash Cond: (si.currency_id = c.id)
6. 0.394 678.545 ↑ 5.1 236 5 / 5

Nested Loop Left Join (cost=59,281.64..313,069.55 rows=1,203 width=601) (actual time=670.777..678.545 rows=236 loops=5)

7. 0.250 677.679 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,281.21..312,471.03 rows=1,203 width=601) (actual time=670.760..677.679 rows=236 loops=5)

  • Hash Cond: (si.supplier_id = s_cb.id)
8. 0.257 675.694 ↑ 5.1 236 5 / 5

Hash Left Join (cost=59,070.08..312,256.74 rows=1,203 width=591) (actual time=669.009..675.694 rows=236 loops=5)

  • Hash Cond: (od_db.buyer_id = od_c_cb.id)
9. 1.174 675.396 ↑ 5.1 236 5 / 5

Nested Loop Left Join (cost=59,061.77..312,231.89 rows=1,203 width=581) (actual time=668.949..675.396 rows=236 loops=5)

10. 0.369 673.750 ↑ 5.1 236 5 / 5

Nested Loop Left Join (cost=59,061.35..311,637.78 rows=1,203 width=465) (actual time=668.934..673.750 rows=236 loops=5)

11. 0.305 672.909 ↑ 5.1 236 5 / 5

Hash Join (cost=59,060.93..311,066.62 rows=1,203 width=449) (actual time=668.916..672.909 rows=236 loops=5)

  • Hash Cond: (ps_apfeps.apfda_id = ps_apfeps_t_apfda.id)
12. 0.472 672.509 ↑ 5.1 236 5 / 5

Nested Loop (cost=59,057.75..311,046.89 rows=1,203 width=439) (actual time=668.762..672.509 rows=236 loops=5)

13. 57.326 670.384 ↑ 39.1 236 5 / 5

Hash Join (cost=59,057.32..306,425.08 rows=9,222 width=423) (actual time=667.592..670.384 rows=236 loops=5)

  • Hash Cond: (ps_eps.invoice_id = si.id)
14. 348.499 373.955 ↑ 1.3 100,814 5 / 5

Parallel Bitmap Heap Scan on earlypaymentsettlement ps_eps (cost=9,671.82..256,463.09 rows=129,142 width=220) (actual time=169.188..373.955 rows=100,814 loops=5)

  • Recheck Cond: (creationdate = '2019-02-01'::date)
  • Heap Blocks: exact=53592
15. 25.456 25.456 ↑ 1.0 504,070 1 / 5

Bitmap Index Scan on earlypaymentsettlement_creationdate_idx (cost=0.00..9,542.68 rows=516,566 width=0) (actual time=127.281..127.281 rows=504,070 loops=1)

  • Index Cond: (creationdate = '2019-02-01'::date)
16. 80.018 239.103 ↑ 5.8 80,348 5 / 5

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

  • Buckets: 524288 Batches: 1 Memory Usage: 24137kB
17. 92.073 159.085 ↑ 5.8 80,348 5 / 5

Nested Loop (cost=0.43..43,521.49 rows=469,121 width=219) (actual time=0.044..159.085 rows=80,348 loops=5)

18. 0.019 0.019 ↑ 1.0 1 5 / 5

Seq Scan on divisionbase od_db (cost=0.00..1.18 rows=1 width=28) (actual time=0.018..0.019 rows=1 loops=5)

  • Filter: (buyer_id = 67002626)
  • Rows Removed by Filter: 13
19. 66.993 66.993 ↑ 5.8 80,348 5 / 5

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

  • Index Cond: (originatordivision_id = od_db.id)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 402
20. 1.653 1.653 ↑ 1.0 1 1,181 / 5

Index Scan using apfearlypaymentsettlement_pkey on apfearlypaymentsettlement ps_apfeps (cost=0.42..0.50 rows=1 width=24) (actual time=0.007..0.007 rows=1 loops=1,181)

  • Index Cond: (id = ps_eps.id)
21. 0.012 0.095 ↑ 1.0 20 5 / 5

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
22. 0.018 0.083 ↑ 1.0 20 5 / 5

Merge Right Join (cost=2.05..2.93 rows=20 width=26) (actual time=0.063..0.083 rows=20 loops=5)

  • Merge Cond: (ps_eps_t_bc_cb.id = ps_apfeps_t_apfda.bank_id)
23. 0.017 0.017 ↑ 275.0 6 5 / 5

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.015..0.017 rows=6 loops=5)

24. 0.032 0.048 ↑ 1.0 20 5 / 5

Sort (cost=1.63..1.68 rows=20 width=16) (actual time=0.043..0.048 rows=20 loops=5)

  • 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
  • Worker 2: Sort Method: quicksort Memory: 25kB
  • Worker 3: Sort Method: quicksort Memory: 25kB
25. 0.016 0.016 ↑ 1.0 20 5 / 5

Seq Scan on apfdebtoragreement ps_apfeps_t_apfda (cost=0.00..1.20 rows=20 width=16) (actual time=0.009..0.016 rows=20 loops=5)

26. 0.472 0.472 ↑ 1.0 1 1,181 / 5

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

  • Index Cond: (id = ps_apfeps.financingcontext_id)
27. 0.472 0.472 ↑ 1.0 1 1,181 / 5

Index Scan using apffinancingcontext_pkey on apffinancingcontext ps_apffc_fc_afc (cost=0.42..0.49 rows=1 width=132) (actual time=0.002..0.002 rows=1 loops=1,181)

  • Index Cond: (ps_apffc_fc_fcb.id = id)
28. 0.006 0.041 ↑ 1.0 1 5 / 5

Hash (cost=8.29..8.29 rows=1 width=26) (actual time=0.040..0.041 rows=1 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
29. 0.035 0.035 ↑ 1.0 1 5 / 5

Index Scan using corporatebase_pkey on corporatebase od_c_cb (cost=0.28..8.29 rows=1 width=26) (actual time=0.034..0.035 rows=1 loops=5)

  • Index Cond: (id = 67002626)
30. 0.727 1.735 ↑ 1.0 1,650 5 / 5

Hash (cost=190.50..190.50 rows=1,650 width=26) (actual time=1.734..1.735 rows=1,650 loops=5)

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
31. 1.008 1.008 ↑ 1.0 1,650 5 / 5

Seq Scan on corporatebase s_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.014..1.008 rows=1,650 loops=5)

32. 0.472 0.472 ↑ 1.0 1 1,181 / 5

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=1,181)

  • Index Cond: (si.importbatch_id = id)
33. 0.006 0.016 ↑ 1.0 6 5 / 5

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

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
34. 0.010 0.010 ↑ 1.0 6 5 / 5

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

35. 0.397 0.757 ↑ 1.0 945 5 / 5

Hash (cost=20.45..20.45 rows=945 width=30) (actual time=0.756..0.757 rows=945 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 68kB
36. 0.360 0.360 ↑ 1.0 945 5 / 5

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

37. 0.000 0.005 ↓ 0.0 0 5 / 5

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
38. 0.005 0.005 ↓ 0.0 0 5 / 5

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

39. 0.001 0.005 ↓ 0.0 0 5 / 5

Hash (cost=10.10..10.10 rows=10 width=16) (actual time=0.005..0.005 rows=0 loops=5)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
40. 0.004 0.004 ↓ 0.0 0 5 / 5

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

41.          

SubPlan (for Gather)

42. 5.905 5.905 ↑ 1.0 1 1,181

Aggregate (cost=8.15..8.16 rows=1 width=8) (actual time=0.004..0.005 rows=1 loops=1,181)

43. 0.000 0.000 ↓ 0.0 0 1,181

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=1,181)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 8.682 ms
Execution time : 698.575 ms