Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033137 | Retail Modules | Web POS | public | 2016-06-05 14:14 | 2016-06-15 19:12 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | shuehner | |||||||||||
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 | 0033137: Useless m_product read from services product even if services are not used | |||||||||||
Description | The addition of services project with createLinesForServiceProduct and the HashMap orderlineServiceList added a m_product read to OrderLoader which is not required if services are not used. That extra overhead should be at least avoided if services are not used. Relevant code is in createOrderLines: if ("S".equals(orderline.getProduct().getProductType())) { // related can be null if (jsonOrderLine.has("relatedLines")) { orderLineServiceList.put(orderline.getId(), jsonOrderLine.getJSONArray("relatedLines")); The conditions can be swapped around to avoid the getProduct() call if there is no relatedLines in the json. | |||||||||||
Steps To Reproduce | Trace all SQL of orderloader. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=9484&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=9485&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-06-05 14:14 | shuehner | New Issue | ||||||||||
2016-06-05 14:14 | shuehner | Assigned To | => Retail | |||||||||
2016-06-05 14:14 | shuehner | OBNetwork customer | => No | |||||||||
2016-06-05 14:14 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2016-06-05 14:14 | shuehner | Tag Attached: Performance | ||||||||||
2016-06-05 14:20 | shuehner | Note Added: 0087002 | ||||||||||
2016-06-05 14:20 | shuehner | File Added: 33137_part1.diff | ||||||||||
2016-06-05 14:20 | shuehner | File Added: 33137_part2.diff | ||||||||||
2016-06-07 18:09 | shuehner | Relationship added | related to 0033178 | |||||||||
2016-06-09 15:48 | hgbot | Checkin | ||||||||||
2016-06-09 15:48 | hgbot | Note Added: 0087130 | ||||||||||
2016-06-09 15:48 | hgbot | Checkin | ||||||||||
2016-06-09 15:48 | hgbot | Note Added: 0087131 | ||||||||||
2016-06-09 15:48 | hgbot | Status | new => resolved | |||||||||
2016-06-09 15:48 | hgbot | Resolution | open => fixed | |||||||||
2016-06-09 15:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ff679a9729794badd242c68064c80efc8c4e1457 [^] | |||||||||
2016-06-09 15:57 | shuehner | Assigned To | Retail => shuehner | |||||||||
2016-06-09 15:57 | shuehner | Review Assigned To | => marvintm | |||||||||
2016-06-15 19:12 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|