Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0045303 | Retail Modules | Web POS | public | 2020-10-27 06:35 | 2020-11-18 09:06 |
|
Reporter | marvintm | |
Assigned To | aferraz | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR21Q1 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0045303: 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 | depends on | backport | 0045305 | RR20Q4 | closed | aferraz | Performance of the tax engine can be improved | depends on | backport | 0045453 | RR20Q3.2 | closed | aferraz | Performance of the tax engine can be improved | related to | defect | 0048737 | | closed | aferraz | Performance problem in Tax Engine having tax rules with many tax zones |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-10-27 06:35 | marvintm | New Issue | |
2020-10-27 06:35 | marvintm | Assigned To | => Retail |
2020-10-27 06:35 | marvintm | Triggers an Emergency Pack | => No |
2020-10-27 09:36 | marvintm | Status | new => scheduled |
2020-10-27 09:36 | marvintm | Assigned To | Retail => marvintm |
2020-10-28 08:23 | hgbot | Note Added: 0123966 | |
2020-10-30 13:11 | hgbot | Note Added: 0124065 | |
2020-11-09 07:59 | hgbot | Note Added: 0124232 | |
2020-11-09 08:00 | hgbot | Note Added: 0124233 | |
2020-11-09 08:02 | hgbot | Note Added: 0124234 | |
2020-11-09 08:02 | hgbot | Note Added: 0124235 | |
2020-11-16 16:36 | marvintm | Status | scheduled => acknowledged |
2020-11-16 16:36 | marvintm | Status | acknowledged => scheduled |
2020-11-16 19:29 | hgbot | Note Added: 0124432 | |
2020-11-18 08:30 | hgbot | Resolution | open => fixed |
2020-11-18 08:30 | hgbot | Status | scheduled => closed |
2020-11-18 08:30 | hgbot | Note Added: 0124463 | |
2020-11-18 08:30 | hgbot | Fixed in Version | => RR21Q1 |
2020-11-18 08:30 | hgbot | Note Added: 0124464 | |
2020-11-18 08:56 | hgbot | Note Added: 0124466 | |
2020-11-18 08:56 | hgbot | Note Added: 0124467 | |
2020-11-18 09:06 | aferraz | Assigned To | marvintm => aferraz |
2022-03-08 13:25 | aferraz | Relationship added | related to 0048737 |
Notes |
|
(0123966)
|
hgbot
|
2020-10-28 08:23
|
|
|
|
(0124065)
|
hgbot
|
2020-10-30 13:11
|
|
|
|
(0124232)
|
hgbot
|
2020-11-09 07:59
|
|
|
|
(0124233)
|
hgbot
|
2020-11-09 08:00
|
|
|
|
(0124234)
|
hgbot
|
2020-11-09 08:02
|
|
|
|
(0124235)
|
hgbot
|
2020-11-09 08:02
|
|
|
|
(0124432)
|
hgbot
|
2020-11-16 19:29
|
|
|
|
(0124463)
|
hgbot
|
2020-11-18 08:30
|
|
|
|
(0124464)
|
hgbot
|
2020-11-18 08:30
|
|
|
|
(0124466)
|
hgbot
|
2020-11-18 08:56
|
|
|
|
(0124467)
|
hgbot
|
2020-11-18 08:56
|
|
|