Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033121 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2016-06-02 18:13 | 2016-09-29 16:15 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | Sandrahuguet | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | b61897bd8ae0 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | |||||||
Tags | Performance | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0090043) hgbot (developer) 2016-09-19 08:38 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: b61897bd8ae06b7cb8756fbf7010051ce63ce59e Author: Sandra Huguet <sandra.huguet <at> openbravo.com> Date: Thu Sep 15 13:18:02 2016 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b61897bd8ae06b7cb8756fbf7010051ce63ce59e [^] Fixed issue 33121 OrderLoader does extra update c_order for each c_order created --- M src/org/openbravo/retail/posterminal/OrderLoader.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |