Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048120Retail ModulesWeb POSpublic2021-11-22 12:512021-11-23 08:54
jetxarri 
Retail 
normalminoralways
newopen 
5
 
RR20Q3.4 
No
0048120: Improve Discount endpoint performance creating a cache of the rules
Improve Discount endpoint performance creating a cache of the rules.

In every request it is necessary to create rule object with all the properties like (products, productcategories, characteristics ....) so it will be interesting to cache all the rules and do not need to recalculate data.

-Do a request to endpoint discount.discount
-The time of each request with big amount of discounts should improve and it does not improve as much as expected
Attached a patch.
Limitations:
To update the cache is taking only the updated of the header of the discount.

Also it creates a preference with value of the cache Maximum time. Currently to 0 to maintain standard behaviour
NOR
diff performance.diff (33,576) 2021-11-22 13:02
https://issues.openbravo.com/file_download.php?file_id=16383&type=bug
Issue History
2021-11-22 12:51jetxarriNew Issue
2021-11-22 12:51jetxarriAssigned To => Retail
2021-11-22 12:51jetxarriFile Added: performance.diff
2021-11-22 12:51jetxarriTriggers an Emergency Pack => No
2021-11-22 12:56jetxarriFile Deleted: performance.diff
2021-11-22 13:02jetxarriFile Added: performance.diff
2021-11-23 08:54rafarodaTag Attached: NOR

There are no notes attached to this issue.