Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033118 | Retail Modules | Web POS | public | 2016-06-02 18:05 | 2017-11-30 09:31 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | shuehner | |||||||||||
Priority | high | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR16Q3 | Fixed in Version | RR16Q3 | |||||||||
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 | 0033118: Cashup does sequential scan of c_order table which takes very long with many orders. | |||||||||||
Description | The OrderGroupingProcess.java which is part of the cashup has 2 queries which filter c_order by cashup id (orders related to cashup being currently processes). As the c_order table does not have an index for that cashup_id field this leads to 2 sequential scan's of the table which for high number or orders take very long. In test database with only 4.3M c_order each of the 2 queries takes roughly 3.2 seconds because of that. Adding index on that column reduces that time to a lot less (few hundred ms). Queries are: - OrderGroupingProcessorData.java:selectSplitOrderLines - insertHeaderNoGrouping Maybe also the grouping version of the 2nd | |||||||||||
Steps To Reproduce | Found by following sequence: configure postgres db to log all queries i.e. slower than 1s Take database with big number of c_order configure to make invoice per order inside cashup. Make i.e. 87 tickets with 2 lines each Then process cashup. Check pg log | |||||||||||
Proposed Solution | add index for cashup_id to c_order table | |||||||||||
Additional Information | ||||||||||||
Tags | Performance | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-06-02 18:05 | shuehner | New Issue | ||||||||||
2016-06-02 18:05 | shuehner | Assigned To | => Retail | |||||||||
2016-06-02 18:05 | shuehner | OBNetwork customer | => No | |||||||||
2016-06-02 18:05 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2016-06-02 18:05 | shuehner | Tag Attached: Performance | ||||||||||
2016-06-02 18:06 | shuehner | Note Added: 0086955 | ||||||||||
2016-06-02 18:06 | shuehner | Priority | normal => high | |||||||||
2016-06-02 18:11 | Orekaria | Status | new => scheduled | |||||||||
2016-06-02 18:11 | Orekaria | Status | scheduled => acknowledged | |||||||||
2016-06-09 15:47 | hgbot | Checkin | ||||||||||
2016-06-09 15:47 | hgbot | Note Added: 0087124 | ||||||||||
2016-06-09 15:47 | hgbot | Status | acknowledged => 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/8f8340d2f494d950011090315dd77feefd5c7cc1 [^] | |||||||||
2016-06-09 15:50 | shuehner | Assigned To | Retail => shuehner | |||||||||
2016-06-09 15:50 | shuehner | Review Assigned To | => marvintm | |||||||||
2016-06-10 09:04 | marvintm | Status | resolved => closed | |||||||||
2016-07-05 10:09 | hgbot | Checkin | ||||||||||
2016-07-05 10:09 | hgbot | Note Added: 0088190 | ||||||||||
2016-07-05 10:09 | hgbot | Status | closed => resolved | |||||||||
2016-07-05 10:09 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8f8340d2f494d950011090315dd77feefd5c7cc1 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal/rev/3c581207edd5792732aa61ee082c3103219d0ab5 [^] | |||||||||
2016-07-05 10:12 | migueldejuana | Status | resolved => closed | |||||||||
2017-11-30 09:31 | shuehner | Fixed in Version | => RR16Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|