Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033121 | Retail Modules | Web POS | public | 2016-06-02 18:13 | 2016-09-29 16:15 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | Sandrahuguet | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | No | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0033121: OrderLoader does extra update c_order for each c_order created | |||||||||||
Description | OrderLoader code has a function called updateAuditInfo which after having inserted a new c_order (it was added in issue 22315) Does and extra sql update to update the created + updated field with timestamp coming from the client. However that causes it do need to do that 2nd db updated which is bad for performance: a.) Double db action, bloat, etc... If that created + updated modification is needed it should be done directly in the creation of the order. Note: Issue 22315 adding that updateAuditInfo probably did this workaround because of bug or missing feature in DAL to allow that -> Maybe some change in platform is required for this as well. Note: updateAuditInfo also does similar modification for invoice created in OrderLoader (optional) same fix should be applied for this as well. | |||||||||||
Steps To Reproduce | trace OrderLoader.java code or check all sql done by OrderLoader to find the extra update c_order statement | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-06-02 18:13 | shuehner | New Issue | ||||||||||
2016-06-02 18:13 | shuehner | Assigned To | => Retail | |||||||||
2016-06-02 18:13 | shuehner | OBNetwork customer | => No | |||||||||
2016-06-02 18:13 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2016-06-02 18:13 | shuehner | Tag Attached: Performance | ||||||||||
2016-06-02 18:13 | shuehner | Relationship added | caused by 0022315 | |||||||||
2016-09-02 10:38 | Sandrahuguet | Assigned To | Retail => Sandrahuguet | |||||||||
2016-09-02 13:27 | Sandrahuguet | Status | new => scheduled | |||||||||
2016-09-19 08:38 | hgbot | Checkin | ||||||||||
2016-09-19 08:38 | hgbot | Note Added: 0090043 | ||||||||||
2016-09-19 08:38 | hgbot | Status | scheduled => resolved | |||||||||
2016-09-19 08:38 | hgbot | Resolution | open => fixed | |||||||||
2016-09-19 08:38 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b61897bd8ae06b7cb8756fbf7010051ce63ce59e [^] | |||||||||
2016-09-19 08:43 | Sandrahuguet | Review Assigned To | => marvintm | |||||||||
2016-09-29 16:15 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|