explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gFha

Settings
# exclusive inclusive rows x rows loops node
1. 36.706 264.901 ↓ 2.5 12,760 1

Nested Loop Left Join (cost=1,813.78..214,728.56 rows=5,118 width=1,770) (actual time=7.139..264.901 rows=12,760 loops=1)

2. 13.076 164.395 ↓ 2.5 12,760 1

Hash Join (cost=1,813.49..170,478.78 rows=5,118 width=1,793) (actual time=7.118..164.395 rows=12,760 loops=1)

  • Hash Cond: ((ps_abseps.absda_id = ifca.absda_id) AND (si.currency_id = ifca.currency_id))
3. 10.217 151.279 ↓ 1.1 12,760 1

Hash Left Join (cost=1,811.77..170,268.06 rows=11,943 width=1,693) (actual time=7.069..151.279 rows=12,760 loops=1)

  • Hash Cond: (si.paymentadvice_id = ipa.id)
4. 9.973 141.060 ↓ 1.1 12,760 1

Hash Left Join (cost=1,801.55..170,226.48 rows=11,943 width=649) (actual time=7.055..141.060 rows=12,760 loops=1)

  • Hash Cond: (ps_eps.earlypaymentadvice_id = eps_epa.id)
5. 10.476 131.060 ↓ 1.1 12,760 1

Hash Left Join (cost=1,799.65..170,193.23 rows=11,943 width=635) (actual time=7.019..131.060 rows=12,760 loops=1)

  • Hash Cond: (si.currency_id = c.id)
6. 17.726 120.576 ↓ 1.1 12,760 1

Nested Loop (cost=1,798.51..170,138.61 rows=11,943 width=631) (actual time=7.004..120.576 rows=12,760 loops=1)

7. 11.551 77.330 ↓ 1.1 12,760 1

Hash Join (cost=1,798.08..88,541.12 rows=11,943 width=631) (actual time=6.992..77.330 rows=12,760 loops=1)

  • Hash Cond: (ps_abseps_t_absda.bank_id = ps_eps_t_bc_cb.id)
8. 10.826 64.341 ↓ 1.1 12,760 1

Hash Join (cost=1,586.95..88,298.57 rows=11,943 width=621) (actual time=5.548..64.341 rows=12,760 loops=1)

  • Hash Cond: (si.supplier_id = s_cb.id)
9. 9.148 52.307 ↓ 1.1 12,760 1

Nested Loop (cost=1,375.83..88,056.01 rows=11,943 width=611) (actual time=4.333..52.307 rows=12,760 loops=1)

10. 0.007 0.007 ↑ 1.0 1 1

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

  • Index Cond: (id = 64608300)
11. 11.507 43.152 ↓ 1.1 12,760 1

Hash Join (cost=1,375.55..87,928.29 rows=11,943 width=601) (actual time=4.323..43.152 rows=12,760 loops=1)

  • Hash Cond: (ps_abseps.absda_id = ps_abseps_t_absda.id)
12. 17.560 31.633 ↓ 1.1 12,760 1

Nested Loop (cost=1,374.24..87,886.13 rows=11,943 width=585) (actual time=4.303..31.633 rows=12,760 loops=1)

13. 0.007 0.007 ↑ 1.0 1 1

Seq Scan on capfloorauction cfa (cost=0.00..1.31 rows=1 width=21) (actual time=0.003..0.007 rows=1 loops=1)

  • Filter: (id = 6656)
  • Rows Removed by Filter: 24
14. 0.000 14.066 ↓ 1.1 12,760 1

Gather (cost=1,374.24..87,765.39 rows=11,943 width=580) (actual time=4.296..14.066 rows=12,760 loops=1)

  • Workers Planned: 3
  • Workers Launched: 3
15. 2.927 38.266 ↑ 1.2 3,190 4 / 4

Hash Left Join (cost=374.24..85,571.09 rows=3,853 width=580) (actual time=2.085..38.266 rows=3,190 loops=4)

  • Hash Cond: (ps_absfc_fc_fcb.id = ps_absfc_fc_afc.id)
16. 2.531 33.641 ↑ 1.2 3,190 4 / 4

Nested Loop (cost=282.99..85,469.73 rows=3,853 width=463) (actual time=0.366..33.641 rows=3,190 loops=4)

17. 2.772 24.730 ↑ 1.2 3,190 4 / 4

Hash Join (cost=282.56..83,753.32 rows=3,853 width=447) (actual time=0.352..24.730 rows=3,190 loops=4)

  • Hash Cond: (si.originatordivision_id = od_db.id)
18. 2.562 21.932 ↑ 1.2 3,190 4 / 4

Nested Loop (cost=280.21..83,737.80 rows=3,853 width=435) (actual time=0.279..21.932 rows=3,190 loops=4)

19. 4.450 12.990 ↑ 1.5 3,190 4 / 4

Nested Loop (cost=279.78..81,498.28 rows=4,631 width=419) (actual time=0.265..12.990 rows=3,190 loops=4)

20. 1.947 2.160 ↑ 1.5 3,190 4 / 4

Parallel Bitmap Heap Scan on supplierinvoice si (cost=279.35..47,334.75 rows=4,782 width=215) (actual time=0.251..2.160 rows=3,190 loops=4)

  • Recheck Cond: (lastauction_id = 6656)
  • Filter: (nettingbundle_id IS NULL)
  • Rows Removed by Filter: 500
  • Heap Blocks: exact=66
21. 0.213 0.213 ↑ 1.0 14,760 1 / 4

Bitmap Index Scan on supplierinvoice_lastauction_idx (cost=0.00..275.64 rows=14,828 width=0) (actual time=0.854..0.854 rows=14,760 loops=1)

  • Index Cond: (lastauction_id = 6656)
22. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using earlypaymentsettlement_invoice_uq on earlypaymentsettlement ps_eps (cost=0.43..7.14 rows=1 width=220) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (invoice_id = si.id)
23. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using absearlypaymentsettlement_pkey on absearlypaymentsettlement ps_abseps (cost=0.43..0.48 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (id = ps_eps.id)
24. 0.009 0.026 ↑ 1.0 14 4 / 4

Hash (cost=2.17..2.17 rows=14 width=28) (actual time=0.026..0.026 rows=14 loops=4)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
25. 0.017 0.017 ↑ 1.0 14 4 / 4

Seq Scan on divisionbase od_db (cost=0.00..2.17 rows=14 width=28) (actual time=0.009..0.017 rows=14 loops=4)

  • Filter: (buyer_id = 64608300)
26. 6.380 6.380 ↑ 1.0 1 12,760 / 4

Index Scan using financingcontextbase_pkey on financingcontextbase ps_absfc_fc_fcb (cost=0.42..0.45 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (id = ps_abseps.financingcontext_id)
27. 0.857 1.698 ↑ 1.0 2,100 4 / 4

Hash (cost=65.00..65.00 rows=2,100 width=133) (actual time=1.698..1.698 rows=2,100 loops=4)

  • Buckets: 4096 Batches: 1 Memory Usage: 197kB
28. 0.841 0.841 ↑ 1.0 2,100 4 / 4

Seq Scan on absfinancingcontext ps_absfc_fc_afc (cost=0.00..65.00 rows=2,100 width=133) (actual time=0.005..0.841 rows=2,100 loops=4)

29. 0.005 0.012 ↑ 1.0 14 1

Hash (cost=1.14..1.14 rows=14 width=16) (actual time=0.011..0.012 rows=14 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
30. 0.007 0.007 ↑ 1.0 14 1

Seq Scan on absdebtoragreement ps_abseps_t_absda (cost=0.00..1.14 rows=14 width=16) (actual time=0.002..0.007 rows=14 loops=1)

31. 0.524 1.208 ↑ 1.0 1,650 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
32. 0.684 0.684 ↑ 1.0 1,650 1

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

33. 0.509 1.438 ↑ 1.0 1,650 1

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

  • Buckets: 2048 Batches: 1 Memory Usage: 119kB
34. 0.929 0.929 ↑ 1.0 1,650 1

Seq Scan on corporatebase ps_eps_t_bc_cb (cost=0.00..190.50 rows=1,650 width=26) (actual time=0.003..0.929 rows=1,650 loops=1)

35. 25.520 25.520 ↑ 1.0 1 12,760

Index Scan using arpimportbatch_pkey on arpimportbatch ib (cost=0.43..6.83 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (id = si.importbatch_id)
36. 0.003 0.008 ↑ 1.0 6 1

Hash (cost=1.06..1.06 rows=6 width=12) (actual time=0.007..0.008 rows=6 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
37. 0.005 0.005 ↑ 1.0 6 1

Seq Scan on crxcurrency c (cost=0.00..1.06 rows=6 width=12) (actual time=0.003..0.005 rows=6 loops=1)

38. 0.013 0.027 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=30) (actual time=0.027..0.027 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
39. 0.014 0.014 ↑ 1.0 40 1

Seq Scan on earlypaymentadvice eps_epa (cost=0.00..1.40 rows=40 width=30) (actual time=0.002..0.014 rows=40 loops=1)

40. 0.001 0.002 ↓ 0.0 0 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
41. 0.001 0.001 ↓ 0.0 0 1

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

42. 0.005 0.040 ↑ 1.0 6 1

Hash (cost=1.63..1.63 rows=6 width=140) (actual time=0.040..0.040 rows=6 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
43. 0.008 0.035 ↑ 1.0 6 1

Merge Join (cost=1.42..1.63 rows=6 width=140) (actual time=0.028..0.035 rows=6 loops=1)

  • Merge Cond: (cba.id = ifca.maturitypaymentsaccount_id)
44. 0.011 0.011 ↑ 544.3 3 1

Index Scan using corporatebankaccount_pkey on corporatebankaccount cba (cost=0.28..99.78 rows=1,633 width=132) (actual time=0.010..0.011 rows=3 loops=1)

45. 0.010 0.016 ↑ 1.0 6 1

Sort (cost=1.14..1.15 rows=6 width=24) (actual time=0.014..0.016 rows=6 loops=1)

  • Sort Key: ifca.maturitypaymentsaccount_id
  • Sort Method: quicksort Memory: 25kB
46. 0.006 0.006 ↑ 1.0 6 1

Seq Scan on fiduciarycashaccount ifca (cost=0.00..1.06 rows=6 width=24) (actual time=0.004..0.006 rows=6 loops=1)

47. 25.520 25.520 ↑ 1.0 1 12,760

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt (cost=0.29..0.31 rows=1 width=16) (actual time=0.002..0.002 rows=1 loops=12,760)

  • Index Cond: (mapping_id = ps_eps.earlypaymentmapping_id)
48.          

SubPlan (for Nested Loop Left Join)

49. 12.760 38.280 ↑ 1.0 1 12,760

Aggregate (cost=8.31..8.32 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=12,760)

50. 25.520 25.520 ↑ 1.0 1 12,760

Index Scan using bankpaymenttransaction_mapping_idx on bankpaymenttransaction bpt_1 (cost=0.29..8.30 rows=1 width=8) (actual time=0.001..0.002 rows=1 loops=12,760)

  • Index Cond: (mapping_id = ps_eps.maturitypaymentmapping_id)
Planning time : 10.053 ms
Execution time : 268.414 ms