Forums / General Questions / View by manufacturers_id is so slow, why?

View by manufacturers_id is so slow, why?

Views: 1,353

Results 1 to 20 of 20
16 Dec 2011, 10:46 AM
#1
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

View by manufacturers_id is so slow, why?

If you visit my website and for example view by manufacturer, these are the stats

Parse Time: 37.432 - Number of Queries: 62057 - Query Time: 12.9304016413

However, if you use the search box and search for that manufacturer, you get this

Parse Time: 3.168 - Number of Queries: 1003 - Query Time: 1.95451326323

Same number of products shown on results page.

Is there anyway to speed up the listing by manufacturer?

16 Dec 2011, 9:04 PM
#2
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

One of the team who make zen cart must be able to answer this one.

17 Dec 2011, 12:41 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

No clue ... have you an URL to your site that we could perhaps peek at? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Dec 2011, 7:40 PM
#4
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

Yep, here you go remove the spaces...

f t v p .co.uk/index.php?main_page=index&manufacturers_id=2

and then searching for the same thing

f t v p .co.uk/index.php?main_page=advanced_search_result&search_in_description=1&keyword=samsung

17 Dec 2011, 7:58 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

Just as a test, turn off the New Products on the Index Listing ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 2:14 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

One reason for the slowness is the Category Dropdown of the 1000 Categories that have to be found among the 1000s of Categories that you have ...

Make sure to check also that your indexes on the database tables are complete ...

You could either check the:
/zc_install/sql/mysql_zencart.sql

Or you could install a test directory with a test database so you can see the tables in a database with all of the indexes that should exist ...

You can also look at the SQL statements in the:
/includes/index_filters/default_filter.php

to see what all is in the WHERE statements to see how they are written and the affect your tables would have, especially if missing indexes on your database tables ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 3:40 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

Could you go to phpMyAdmin and check some things about this
products_id 10901
Product: Samsung PS-50C450B1W - PSU - BN44-00414A Rev 1.1 - J40 - HU10251-10010
TV Model Number: PS-50C450B1W

Look in the table:
products

and search for the products_id 10901

What is the master_categories_id on this product?

Search for the master_categories_id as the categories_id on the products_id 10901 in the tables:
categories
categories_description

Do you find it? what is the parent_id in the table categories for this categories_id that matches the master_categories_id

Look in the table:
products_to_categories

and search for the products_id 10901

What categories_id come up for this products_id?

Save those categories_id to NotePad ...

Look in the table:
categories
categories_description

and search for those categories_id and see what their parent_id values are ...

Browse your table:
products

how many of the master_categories_id are 0 ... you can do a search for master_categories_id is 0 to get a count ...

Browser your table:
products_to_categories

search on the categories_id for 0 ... how many come up?

What version of Zen Cart are you running?

Clean install or an Upgrade?

Do you use Linked Products?

Are you Importing your Products?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 1:49 PM
#8
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

Turning off new product listing makes no change to speed.

What is the master_categories_id on this product? = 5194

categories = parent_id = 3059

products_to_categories = categories_id = 5194

master_categories_id are 0 = 4 items

products_to_categories -> categories_id 0 = 0 items

v1.3.9h
Clean Install
No linked products
Not importing products

18 Dec 2011, 2:52 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

Find the 4 products_id that have the 0 on the master_categories_id and set them to their proper master_categories_id ... you can do this by going to the Catalog ... Products ... and find the Products then hit the C for copy and the Multiple Links Manager and set a master_categories_id for them ...

For giggles, switch to the Classic Template and see what the speed is on the Manufacturer look up ...

I am trying to see why your centerboxes are not using the cPath in their URLs ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 5:09 PM
#10
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

I removed the cPath from the links.

I did this to tidy up the url for social network integration.

18 Dec 2011, 5:23 PM
#11
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

Rebuilt the four with missing master categories.

Parse Time: 33.973 - Number of Queries: 62139 - Query Time: 11.9520936854

18 Dec 2011, 5:35 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

As a test, have you tried the Classic Template just to see if there is a difference?

As another test, go to the Configuration ... Product Listing ... and turn this off for a minute and see how the Manufacture list works:

Display Category/Manufacturer Filter (0=off; 1=on)
Do you want to display the Category/Manufacturer Filter?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 6:15 PM
#13
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

Turned off category/manufacturer filter

Parse Time: 34.661 - Number of Queries: 62124 - Query Time: 12.2081060008

Default template

Parse Time: 1.475 - Number of Queries: 1426 - Query Time: 0.748605966461

INTERESTING.......

What on earth in that template could be causing that then...

My template only causes the view by manufacturer to be slow, and not searches.

18 Dec 2011, 6:31 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

This is narrowing it down ...

At least now it is something in one of your template files causing this issue ...

Are you able to switch it to Classic Template for 5 minutes to let me try a couple things?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 7:16 PM
#15
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

I don't know, the problem is this is a live site that pays for food.

18 Dec 2011, 7:17 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

Does it run like a dog on the sister site? :unsure:

If so, I can try to see if I can spot something there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 7:34 PM
#17
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

It doesn't seem to, but there are alot fewer products

18 Dec 2011, 7:43 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: View by manufacturers_id is so slow, why?

It would really need to be where the problem is ...

What I would do if I were you is use something like Beyond Compare and see what files are different for your templates and overrides and the original files ...

You may be able to spot which files are changed and see what files are changed in a manner that would be slowing things down ...

You might try also turning off the right column for a second to see if that page loads any faster just to rule out something in the right column being the problem ...

Then, you might try turning off the footer for a second to see if that page loads any faster just to rule out something in the footer being the problem ...

Then, you might try turning off the header for a second to see if that page loads any faster just to rule out something in the header being the problem ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Dec 2011, 8:32 PM
#19
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

It is strange that only view by manufactuers_id is slow.

I will try your suggestions and report back.

May take some time as I've made so many customisations.

14 Jan 2012, 1:15 AM
#20
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: View by manufacturers_id is so slow, why?

I upgraded the server, now I get this result

New : Parse Time: 13.933 - Number of Queries: 63224 - Query Time: 2.89328504413
Old : Parse Time: 37.432 - Number of Queries: 62057 - Query Time: 12.9304016413

My previous dedicated server

2 x dual core 3.0ghz xeon
2gb ram
7200pm sata drives

new server

2 x 6core amd 3.1ghz
32gb ddr3 1800mhz ram
15k SAS drives

big improvement