Forums / Setting Up Categories, Products, Attributes / Too many attributes? Store too slow

Too many attributes? Store too slow

Started by rliddle on 14 Mar 2012, 5:44 PM · Views: 7,400

Results 1 to 20 of 41
14 Mar 2012, 5:44 PM
#1
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Too many attributes? Store too slow

I have searched for a few days, and found some help, not not enough for this issue. My load time for product pages is approx. 9 seconds, way too long.

I am on v1.3.9h
My site is http://tinyurl.com/6r9v7cm
I have done the jquery cache module, that helped a little.
I have done the recommendations from this thread that I could. https://www.zen-cart.com/tutorials/index.php?article=21
I have the advanced shipper module
Based on advice from my zen cart expert I moved from httpme to a VPS (level 3) on Hostgator.
I have optimized database
I have optimized all my images
and purged debug files

So the attributes I have (and they all seem necessary to collect the information I need.
Screen Charge (radio)
Product Color (dropdown)
Mixed Colors Breakdown (text)
Ink Color (dropdown)
Metallic ink (radio)
Art Charge (radio)
Print Design Front side (dropdown)
Print Design Back side (dropdown)
Extra Options (checkbox)
Attached Art file (file)
2nd Attached art file (file)
Text for imprint area (text)
Delivery Date (text)

All of this information is necessary to actually produce an order. I don't know if I could combine any of them, (don't see how)

The steps done above have not gotten me to a usable speed.

I think I may need an Apache administrator who is truly expert in setting up VPS accounts. Don't know how to do that.

I have to think there are other sites that have a larger number of attributes that have made it work.

thanks

14 Mar 2012, 5:52 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

rliddle:

I have done the recommendations from this thread that I could. https://www.zen-cart.com/tutorials/index.php?article=21
What do you mean by "that I could"? Which points did you skip, and why?
What are your parse times?
If you're running a managed VPS then the Webserver Tuning Tips link, in the same article you quoted, contains several things for the VPS manager to study and implement.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Mar 2012, 7:13 PM
#3
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

hmmm parse times are not showing. have it turned on.
and not commented out here.
includes/templates/bluecart/common/tpl_main_page.php

Line #171 : <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>

<!--bof- parse time display --> <?php if (DISPLAY_PAGE_PARSE_TIME == 'true') { ?> <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div> <?php } ?> <!--eof- parse time display -->
14 Mar 2012, 7:17 PM
#4
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

Regarding https://www.zen-cart.com/tutorials/index.php?article=21

I did 1,2,3, and 4 except these parts in 4.

  • Enable Price Factor -- If you're not using price-by-attributes support, turn this off to stop those calculations and the related queries
  • Enable Qty Price Discount -- If you're not doing quantity discounts, turn this off
    as I am using those.
  1. Not applicable
  2. Put them into categories
    7 not appicable, only slow on product pages
  3. did gzip
  4. did this
  5. did this
  6. working on
  7. this is where I get lost.
14 Mar 2012, 7:31 PM
#5
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

OK got parse time

Parse Time: 8.386 - Number of Queries: 1665 - Query Time: 7.37952516934

15 Mar 2012, 1:38 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

So, the parse time output shows that 7.4 seconds of the total 8.4 seconds used for preparing outputing the page was used up by database wait-time.
So, it suggests that the bottleneck is the database, which suggests that MySQL isn't very well tuned ... ie: usually that means it needs more RAM allocated to various buffers in the my.cnf configuration settings that the server Administrator has access to configuring.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Mar 2012, 10:44 AM
#7
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

DrByte:

So, the parse time output shows that 7.4 seconds of the total 8.4 seconds used for preparing outputing the page was used up by database wait-time.
So, it suggests that the bottleneck is the database, which suggests that MySQL isn't very well tuned ... ie: usually that means it needs more RAM allocated to various buffers in the my.cnf configuration settings that the server Administrator has access to configuring.

Thank you for the reply, now the issue. I don't have a server Administrator. Have asked Host Gator to tune it up. They replied with this. Hello,

"Thank you for contacting HostGator support. I ran an optimize against the database. A few updates were made but most tables were already up to date. We appreciate your patience. Please contact us again if you need further assistance."

I think I need a little more expertise. Any way to find that expertise?

16 Mar 2012, 6:28 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

You've described that your store requires the complexi ty of attributes that you've set up.
But, if your hosting server isn't suitable for your needs, you may need to get a different service ... something tuned more appropriately for a database-driven ecommerce system.
It could be that the server you're on has too many other customers, and thus is not able to handle the demand you're placing on it.
Or, the VPS you've been put onto isn't equipped with enough resources to do the job.

Ask them how you can get more RAM available to MySQL, and how you can get them to tweak the my.cnf to make use of more RAM available to it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Mar 2012, 2:58 PM
#9
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

I moved server, (what a nightmare) and have slightly better numbers, but still not usable.

Parse Time: 6.054 - Number of Queries: 1665 - Query Time: 5.01710750447

Trying to get them to "get more RAM available to MySQL, and how you can get them to tweak the my.cnf to make use of more RAM available to it. "

But not having luck, getting them to understand it.

18 Mar 2012, 7:16 PM
#10
rayw1679 avatar

rayw1679

Zen Follower

Join Date:
Mar 2005
Location:
Waxahachie, Texas
Posts:
172
Plugin Contributions:
0

Re: Too many attributes? Store too slow

I was having a similiar problem, and I leased a server to solve it. It costs me $99 monthly, but the response is lightning fast.

Thanks,
Ray

18 Mar 2012, 7:29 PM
#11
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

Ray, could you tell me where? I am using a vps now. seems to have some power, but not enough apparently.

18 Mar 2012, 11:50 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

Which particular product is specifically slow?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Mar 2012, 1:10 AM
#13
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

Hello DrByte. They are all slow. Stadium cups, Wine wraps, etc.

19 Mar 2012, 3:17 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Too many attributes? Store too slow

Could you go to phpMyAdmin and search the table:
products_attributes

for the products_id 12 ... I think that is Stadium Cups ... and see how many Attributes are on that Product?

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!

19 Mar 2012, 3:37 PM
#15
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

Ajeh, I think this is it.

SELECT *
FROM zen_products_attributes
WHERE products_id =12
LIMIT 0 , 30

Showing rows 0 - 29 ( 760 total, Query took 0.0008 sec)

19 Mar 2012, 3:51 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Too many attributes? Store too slow

On a test site I have 696 attributes:
Parse Time: 2.983 - Number of Queries: 15829 - Query Time: 2.39863640736

and 1,006 Attributes:
Parse Time: 4.981 - Number of Queries: 22641 - Query Time: 4.16505090627

The amount of memory and configuration for it is really important for the database to speed things up ...

I do not have that price updater you are using nor SEO/rewrites so I am not sure how much that might add to this ...

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!

19 Mar 2012, 4:16 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

As I said, the MySQL server's performance needs some serious tuning. And that'll need to be done by whoever manages the database server. They're the experts in that area, and they're the only ones with access to make the required changes.
https://www.zen-cart.com/tutorials/index.php?article=287

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Mar 2012, 6:17 PM
#18
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

OK, I got my site to do the changes referenced. Got this reply.

We have followed all the instructions provided in the URL you provided and have made the modifications for Apache, PHP & MySQl

Still at:
Parse Time: 5.246 - Number of Queries: 1666 - Query Time: 4.27782364699

19 Mar 2012, 6:32 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Too many attributes? Store too slow

(rolleyes)
Get them to give you a copy of the active my.cnf file. I suspect they've either done nothing to it, or nothing of value. And maybe didn't restart MySQL for the changes to take effect.
Or they can't touch it for fear that it'll break things for other people using the server ... in which case you need a hosting company who knows what they're doing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Mar 2012, 6:35 PM
#20
rliddle avatar

rliddle

New Zenner

Join Date:
Apr 2009
Posts:
50
Plugin Contributions:
0

Re: Too many attributes? Store too slow

I was kind of wondering about that. It took them about 30 mins to do that, and it was a pretty blanket reply. I requested the copy. any idea how to find someone who is an expert on doing this? Simple searching on Google was not very helpful.

And, thank you for hour help.