Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 41
  1. #31
    Join Date
    Apr 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Too many attributes? Store too slow

    Lat9, Can I just say, Thank You, Thank you!! I implemented that on one of my products and went from

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

    to

    Parse Time: 0.671 - Number of Queries: 178 - Query Time: 0.194840832687

    Amazing! I hope others who are in similar situations find this thread. I talked with "experts" in Seattle, Van Couver, Penn, Va, and switched hosts 2 times and this is the solution!

    Thanks everyone for your help. Moving on!

  2. #32
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,122
    Plugin Contributions
    0

    Default Re: Too many attributes? Store too slow

    Quote Originally Posted by lat9 View Post
    Make sure that each of your attributes are marked with "Apply Discounts Used by Product Special/Sale: No" (assuming that the options don't have cost associated with them); this will heavily reduce your parse times.
    Will this make any difference to a site that has attributes with costs applied to them, but it not using any sales discounts on any products?

    If it does, what sql patch would I need to run to turn every attribute I have to 'no' ?

  3. #33
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Too many attributes? Store too slow

    If you have no Sales or Specials or do not offer those same Specials and Sales on Attributes then you can turn it off for all Attributes with:
    Code:
    UPDATE  products_attributes SET attributes_discounted = 0;
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #34
    Join Date
    Apr 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Too many attributes? Store too slow

    Ajeh, can you tell me specifically where this code would go? thanks.

    Quote Originally Posted by Ajeh View Post
    Excellent idea ... a fast way to do this for Attributes with 0 price that would not need the discount checked is to use:
    Code:
    UPDATE  products_attributes SET attributes_discounted = 0 WHERE options_values_price = 0;

  5. #35
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    1,979
    Plugin Contributions
    21

    Default Re: Too many attributes? Store too slow

    Quote Originally Posted by rliddle View Post
    Lat9, Can I just say, Thank You, Thank you!! ...

    Thanks everyone for your help. Moving on!
    You are very welcome! Perhaps this pointer should be part of one of the attributes-related tutorials.

  6. #36
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Too many attributes? Store too slow

    Quote Originally Posted by rliddle View Post
    Ajeh, can you tell me specifically where this code would go? thanks.
    You can run that in phpMyAdmin on the SQL or in the Tools ... Install SQL Patches ...
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #37
    Join Date
    Jan 2004
    Posts
    58,469
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Too many attributes? Store too slow

    Gads - I completely missed those attribute things.
    Grateful for the others who stepped in with the settings tweaks.

    And ... the side-benefit is that you've now done a heckuvalotta tuning for server performance overall. :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  8. #38
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Too many attributes? Store too slow

    Hi all,

    I am having a similar problem - products with attributes are loading very slowly. We sell invitations, which are very customized so attributes are a big part of our business.

    You can check out my sample product here:
    http://sweetletterpress.com/2013/ind...ndex&cPath=104
    with parse/query time shown at the bottom.
    (I still have to add more attributes under "font 1" and "font 2" and I haven't added the additional product images yet either, all of which I'm assuming will slow it down even more)

    Even slower than the product details page is the "quick view" (which should be called "very slow view"!). You can access it from the same link above by rolling over the thumbnail. Any thoughts on how to simplify/speed up this up?

    I have an experienced ZC developer helping me but he says he's done all that he knows how for speed. We are using the latest version of zenCart on shared Hostmonster plan and a substantial number of customizations made to the install.

    I am on hold with my hosting company right now to have them examine the things you all mentioned in this thread but I am hoping some of you Zen masters will take a look and see if anything looks amiss... extraneous, bloated code, errors etc.

    Thanks very much.

  9. #39
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Too many attributes? Store too slow

    UPDATE

    Hostmonster says usage is all fine and normal. He upgraded me to php 5.3 (from 5.2) but not noticing any difference.

  10. #40
    Join Date
    Jan 2004
    Posts
    58,469
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Too many attributes? Store too slow

    The times I'm seeing are:
    http://sweetletterpress.com/2013/ind...ndex&cPath=104
    Parse Time: 4.625 - Number of Queries: 125 - Query Time: 3.1653004515839
    Parse Time: 0.209 - Number of Queries: 114 - Query Time: 0.037671459594726
    Parse Time: 0.255 - Number of Queries: 114 - Query Time: 0.083213655319214

    Quick view:
    Parse Time: 7.439 - Number of Queries: 184 - Query Time: 3.3798476817322
    Parse Time: 4.684 - Number of Queries: 184 - Query Time: 1.4276787158661
    Parse Time: 6.825 - Number of Queries: 184 - Query Time: 2.1082679089355
    Parse Time: 5.672 - Number of Queries: 184 - Query Time: 2.7163698864136

    http://sweetletterpress.com/2013/wed...ing-invitation
    Parse Time: 12.044 - Number of Queries: 245 - Query Time: 4.2742161156921
    Parse Time: 9.282 - Number of Queries: 245 - Query Time: 3.6378543113098
    Parse Time: 13.134 - Number of Queries: 245 - Query Time: 5.9804625470123
    Parse Time: 8.659 - Number of Queries: 245 - Query Time: 3.6243100138245

    So it looks like you've got slowness happening at both the database side and the CPU/PHP processing side.
    With your many customizations and AJAX additions, I'm inclined to think those may be big culprits.



    Some things for your developer to address:
    1. You've got some assets that your template is trying to load, but which do not exist, including the main jQuery file and a .gif image, etc:
    GET http://sweetletterpress.com/2013/inc...y-1.4.4.min.js 404 (Not Found)
    Uncaught TypeError: Object [object Object] has no method 'fancybox'
    GET http://sweetletterpress.com/2013/inc.../tableft28.gif 404 (Not Found)

    2. You're loading 4 different versions of jQuery on your site. That's a HUGE performance problem, plus it also creates chaos for your page scripts to try to figure out what they're doing:
    /2013/includes/templates/theme219/jscript/jquery-1.4.4.min.js
    /2013/includes/templates/theme219/jscript/jscript_jquery-1.5.min.js
    /2013/includes/modules/pages/product_info/jscript_jquery-1.5.2.min.js
    /2013/includes/templates/theme219/jscript/jscript_jquery-1.8.2.min.js
    Each of those files take 0.7 to 1.3 seconds to load, and only the newest one is really needed. The others should be deleted.

    3. Plus you're calling /2013/dpu_ajax.php to set the price on the page, and each time it fires it's taking 2.11 seconds to run. So whatever it's doing in the background needs some optimization too.

    Fixing those issues will probably provide some reprive, and then maybe make other fixes more evident.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. What is the cause of my store being slow?
    By edd-2 in forum General Questions
    Replies: 10
    Last Post: 9 Dec 2011, 04:46 AM
  2. slow store
    By keneso in forum General Questions
    Replies: 10
    Last Post: 4 Jun 2010, 06:20 PM
  3. My store is very very slow
    By pyroweb in forum General Questions
    Replies: 1
    Last Post: 28 Aug 2008, 12:53 PM
  4. Store Running Slow
    By mviben in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 29 Jun 2008, 02:35 AM
  5. Slow store - sometimes(!)
    By Brian1234 in forum General Questions
    Replies: 5
    Last Post: 27 Feb 2008, 07:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •