andy_1984, on 17 December 2010, 19:58, said:
i dont know if any ecommerce solution would cope with 5 million products all displayed at the same time (if thats what you mean) but with limits on the amount of results returned from mysql and pagination i dont think it would be much of an issue ?
I'm not talking about displaying 5 million products at the same time.
This is the SQL query from a default osCommerce 2.3.1 :
select distinct p.products_image, m.manufacturers_id, p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from ziwico_conz.products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id, ziwico_conz.products_description pd, categories c, ziwico_conz.products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%galaxy%' or p.products_model like '%galaxy%' or m.manufacturers_name like '%galaxy%' or pd.products_description like '%galaxy%') ) order by pd.products_name
This query takes 30-40 seconds to complete (with 500,000 products). Imagine how long it will execute with 5,000,000 products in the database. How about if there are 20 customers online ? The server will crash immediately.
I don't think the default oscommerce can handle 5 million of products. There has to be modified ecommerces (even not free).
I have seen many ecommerce sites with more than 5 million products and the search is extremely fast.