Get number of sales for a product
Posted: Mon Mar 18, 2013 10:02 am
Hi,
I'm facing a problem of complexity.
My problem is that i have a list of 20 products and i have to sort them according to their number of sales.
The basic solution is to cover all the orders for each product. But if i have 1000+ orders, the complexity will be too high.
Do you know a better solution to do this type of sort ?
Thanks in advance for your help !
I'm facing a problem of complexity.
My problem is that i have a list of 20 products and i have to sort them according to their number of sales.
The basic solution is to cover all the orders for each product. But if i have 1000+ orders, the complexity will be too high.
Do you know a better solution to do this type of sort ?
Thanks in advance for your help !