Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033136
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2016-06-05 13:512017-11-30 10:15
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in VersionRR16Q3
StatusclosedFix in branchFixed in SCM revisione19a0fea7727
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033136: Useless read from c_bpartner_location in Orderloader -> should use Proxy instead

DescriptionOrderLoader.java in its createOrder method uses following code:

    order.setPartnerAddress(OBDal.getInstance().get(Location.class,
        jsonorder.getJSONObject("bp").getString("locId")));

Reading from c_bp_location here is not required a Proxy should be used instead to pass on the id.

2nd case of same bug later in createShipment function:
    shipment.setPartnerAddress(OBDal.getInstance().get(Location.class,
        jsonorder.getJSONObject("bp").getString("locId")));
Steps To ReproduceTrace sql's done during OrderLoader.
TagsPerformance
Attached Filesdiff file icon 33136.diff [^] (701 bytes) 2016-06-05 13:53 [Show Content]
diff file icon 33136_part2.diff [^] (680 bytes) 2016-06-05 14:34 [Show Content]
diff file icon 33136_part3.diff [^] (735 bytes) 2016-06-05 15:39 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033135 closedshuehner LogClientLoader does useless select to ad_user (and indirectly ad_language) on every insert 

-  Notes
(0087125)
hgbot (developer)
2016-06-09 15:47

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e19a0fea772752d11f0921ef5db809f142b314ff
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Tue Jun 07 17:04:42 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e19a0fea772752d11f0921ef5db809f142b314ff [^]

Fixed 33136. Avoid read from c_bpartner_location by using Proxy

Don't read 3 times from c_bpartner_location but use Proxy instead
to avoid select to database which is not needed here.

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---

- Issue History
Date Modified Username Field Change
2016-06-05 13:51 shuehner New Issue
2016-06-05 13:51 shuehner Assigned To => Retail
2016-06-05 13:51 shuehner Triggers an Emergency Pack => No
2016-06-05 13:51 shuehner Relationship added related to 0033135
2016-06-05 13:52 shuehner Tag Attached: Performance
2016-06-05 13:53 shuehner File Added: 33136.diff
2016-06-05 14:34 shuehner Description Updated View Revisions
2016-06-05 14:34 shuehner File Added: 33136_part2.diff
2016-06-05 15:39 shuehner File Added: 33136_part3.diff
2016-06-09 15:47 hgbot Checkin
2016-06-09 15:47 hgbot Note Added: 0087125
2016-06-09 15:47 hgbot Status new => resolved
2016-06-09 15:47 hgbot Resolution open => fixed
2016-06-09 15:47 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e19a0fea772752d11f0921ef5db809f142b314ff [^]
2016-06-09 15:51 shuehner Assigned To Retail => shuehner
2016-06-09 15:51 shuehner Review Assigned To => marvintm
2016-06-10 09:07 marvintm Status resolved => closed
2017-11-30 10:15 shuehner Fixed in Version => RR16Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker