Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Timeout: 1700 caregories / 28000 products


arisoy

Recommended Posts

Posted

I've imported nearly 1,700 categories and 28,000 products - now the front page never finishes loading.

 

The page_parse_time log file (w/db queries) logges 1554 lines, primarly lines like this:

QUERY select categories_id from categories where parent_id = '523'

RESULT Resource id #2358

QUERY select count(*) as total from products p, products_to_categories p2c where p.products_id = p2c.products_id and p.products_status = '1' and p2c.categories_id = '524'

RESULT Resource id #2361

 

It seems the only thing it is doing is getting the product count...

 

In admin the same thing happens for the catalog.

 

I believe this process has to be optimized.

Posted

do u have a link to the site? perhaps if you reword the question or give more detail,

Posted

Results like this:

 

Resource id #2358

 

often mean that the page is trying to grab the array as the result, as opposed to individual fields.

 

Do any of the product titles includes special characters or something else that could be causing the query to fail or are you positive that it is simply failing because of the sizeof the catalog?

Posted

Turn off category counts in the admin.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

Turning off category counts is the solution to the problem. This is the way to go.

 

I believe the category count database querying should be rewritten. We can't have, in my case, 1600 queries just to list the category counts. Better create an array from the result set and browse through it.

 

Otherwise, I'm extremely happy with osCommerce!

 

Thanks,

Alex!

Archived

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

×
×
  • Create New...