Openbravo Issue Tracking System - Retail Modules
View Issue Details
0022428Retail ModulesWeb POSpublic2012-11-29 14:082012-12-20 13:58
marvintm 
adrianromero 
normalmajoralways
closedduplicate 
5
 
RMP18 
No
0022428: Performance problem when there is a large number of products
There is a performance problem when there is a large number of products. The problem has been reproduced with 19000 products.

The problem happens even if there is a limit in the number of displayed products, and occurs due to the way the products are currently stored and rendered.

As the prices are currently stored in a separate table, we do a separate query and then iterate for all the prices until the product we want to set the price for is found. This is very costly in performance, and it scales poorly with the number of products and prices.

Also, the problem is exacerbated due to the fact that prices for all products in the defined pricelist are loaded, regardless of the existance of those products in the assortment. So, if an assortment of 5 products is defined, but there are 20000 products in the system, the initial renderization of the POS will still be very slow.
- Create a large number of products in the system, each with their price correctly defined in the pricelist.
- Create an assortment which contains all products. Notice that when doing login in the POS, the browser gets completely locked up for 15-20 seconds.
- Create an assortment of five products. Notice that basically the same thing happens (due to the fact that all prices were loaded regardless of the new assortment).
Both problems should be fixed:
- We should load only prices for the products in the current assortment.
- We shouldn't iterate through all the prices to find the correct price for a product.
No tags attached.
duplicate of defect 0021785 closed marvintm Remove entity ProductPrice and add the required princing information to the Product 
Issue History
2012-11-29 14:08marvintmNew Issue
2012-11-29 14:08marvintmAssigned To => adrianromero
2012-12-05 19:55adrianromeroTarget Version => RMP18
2012-12-20 13:58adrianromeroRelationship addedduplicate of 0021785
2012-12-20 13:58adrianromeroStatusnew => closed
2012-12-20 13:58adrianromeroResolutionopen => duplicate

There are no notes attached to this issue.