Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Queries question regarding # of prods/cats


josh1r

Recommended Posts

I have a site that has over 30,000 products and a few hundred cats and subcats and it's getting quite slow. I've had to remove some of the products in order to make it quicker.

 

My question is this: would the site be faster if there were the same # of products but less categories?

 

Just as an example, a site with 50,000 items and 300 categories will be quite slow, but if put all of those items in just 1 or 2 categories would it be much faster?

 

Thanks!

 

p.s. I already turned off category counts

Link to comment
Share on other sites

That catalog should not present significant performance issues if a few basic measures are implemented. First, make sure all the cache settings are functional and that the catalog is creating the cache files. Once you do that make sure that the database has the proper indexes. Then, look into optimizing the code for speed.

 

The most difference with categories versus products will come with the type and number of contributions installed. Some will be extremely hard on categories (i.e. - Simple Template System) and others will be extremely hard on products.

 

Bobby

Link to comment
Share on other sites

Thanks Bobby. I'll look into your suggestions this evening. I've definately noticed that when I start crossing over 40k and definately by 50k that the site slows down incredibly. Some pages took 15 seconds and ran 150+ queries...

 

Thanks again!

Link to comment
Share on other sites

That catalog should not present significant performance issues if a few basic measures are implemented.  First, make sure all the cache settings are functional and that the catalog is creating the cache files.  Once you do that make sure that the database has the proper indexes.  Then, look into optimizing the code for speed.

 

The most difference with categories versus products will come with the type and number of contributions installed.  Some will be extremely hard on categories (i.e. - Simple Template System) and others will be extremely hard on products.

 

Bobby

 

Bobby,

 

I have a store with about 240 products. What should the proper indexes be for this store?

 

Thanks,

 

Donna Gordon

UKGoods.com

Link to comment
Share on other sites

Donna,

 

It shouldn't need further attention with 240 products but it never hurts to have proper indexes :) As a general rule, if the column type is INT and is used as an ID in another table it should be indexed. This is a very broad stroke but is the best I can do here since the variety of contributions is so great. My usual practice is to install the osC-Explain contribution which I coded just for this purpose. Part of the data collected is the recommendations of the MySQL server as to indexes on tables.

 

Bobby

Link to comment
Share on other sites

Donna,

 

It shouldn't need further attention with 240 products but it never hurts to have proper indexes :)  As a general rule, if the column type is INT and is used as an ID in another table it should be indexed.  This is a very broad stroke but is the best I can do here since the variety of contributions is so great.  My usual practice is to install the osC-Explain contribution which I coded just for this purpose.  Part of the data collected is the recommendations of the MySQL server as to indexes on tables. 

 

Bobby

 

Thanks Bobby! You rule!!!!!!!

 

Donna

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...