Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0045453 | Retail Modules | Web POS | public | 2020-10-27 06:35 | 2020-11-18 09:11 |
|
Reporter | marvintm | |
Assigned To | aferraz | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR20Q3.2 | Fixed in Version | RR20Q3.2 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0045453: Performance of the tax engine can be improved |
Description | Currently, the ticket calculation performance degrades quite significantly with the number of lines. Almost all the degradation comes from the tax engine, and particularly the call to the OB.Taxes.filterRulesByTicketLine function, which computes which tax rules could be applied to a line.
If this was optimised, the performance of the engine, and the ticket calculation speed in general, would improve by a very large amount. |
Steps To Reproduce | Create a big ticket using "GPS" products (to ensure that all lines have a discount).
Realise that after 200 lines, calculating a ticket takes around 1.5 seconds.
Do some profiling. Realise that almost all the time is spent in the OB.Taxes.filterRulesByTicketLine function. |
Proposed Solution | The initial optimisation we are going to try consists in trying to avoid calculating the rules if the line already has them, and the line itself didn't change. |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0045303 | | closed | aferraz | Performance of the tax engine can be improved |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-11-16 16:36 | marvintm | Type | defect => backport |
2020-11-16 16:36 | marvintm | Target Version | => RR20Q3.2 |
2020-11-18 09:07 | aferraz | Assigned To | marvintm => aferraz |
2020-11-18 09:09 | hgbot | Resolution | open => fixed |
2020-11-18 09:09 | hgbot | Status | scheduled => resolved |
2020-11-18 09:09 | hgbot | Fixed in Version | => RR20Q3.2 |
2020-11-18 09:09 | hgbot | Note Added: 0124472 | |
2020-11-18 09:11 | marvintm | Review Assigned To | => marvintm |
2020-11-18 09:11 | marvintm | Status | resolved => closed |