Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default 45,000 queries to load my categories? Horrid performance

    I'm setting up a new store with a very broad category heirarchy.

    Loading the 1st and second level categories has been VERY problematic. When I click on one category from the top level it takes nearly 2 minutes to load and shows 45k+ queries executed!

    How is that possible? Is it preloading all the sub-categories? It's making usage of the store infeasible. Any way to tweak it?

    Thanks!!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 45,000 queries to load my categories? Horrid performance

    What version of Zen Cart?
    What addons do you have installed?
    How many categories do you have?
    Have you tried turning off category counts? Admin->Configuration->My Store->Show Category Counts (It's very intensive calculating children through all levels when you have huge numbers of categories)
    .

    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: 45,000 queries to load my categories? Horrid performance

    It's version 1.3.8. I AM on a shared hosting environment (soon to change) but relatively speaking most response times are good, it's just the first/second level category clicks that seem to be terribly inefficient. Once I get to level 3 of the tree the number of queries goes down to sub 500 and performance is acceptable.

    I have turned off Category counts. I also turned on GZIP but I doubt this would make a difference because the page being loaded only has images for 2-3 of the 35 subcategories.

    I can't tell you exactly how many categories I have, but as reference if I export using Easypopulate I have 17k category rows. (That will include parents though, so this particular branch probably has over 7000).

    Mods installed are:

    1. Easypopulate
    2. Multi-site
    3. Sales report
    4. Dual Pricing.
    5. Supplier interface.

    I'm an experienced systems guy but woefully short on PHP and MySQL knowledge.

    Thanks for the quick reply.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 45,000 queries to load my categories? Horrid performance

    Forgive the slightly altered topic of this question ... but ... how exactly are you trying to display 7000 categories on a page?
    .

    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.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 45,000 queries to load my categories? Horrid performance

    Give us a link to see your site
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: 45,000 queries to load my categories? Horrid performance

    Quote Originally Posted by DrByte View Post
    Forgive the slightly altered topic of this question ... but ... how exactly are you trying to display 7000 categories on a page?
    I misunderstood. I have 17k TOTAL. However the category I am trying to expand has about 35. (with a total of 7000 on this branch at all levels beneath it The breakdowns are:

    Level 1 - 5 categories
    Level 2 - 35 categories for each level 1
    Level 3 - 20 categories for each level 2
    Level 4 - 4 categories for each level 3

    So when I click on the level 1 category, it does 45k queries to expand to level 2. I cannot post a link to the site unfortunately because it is under Non-Disclosure at the moment. My question really is, why when I am only expanding out to 35 categories is the system doing 45k queries. I can only assume it is reading all categories beneath it.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 45,000 queries to load my categories? Horrid performance

    MotoDelta,

    Can not really expound without seeing what and how you are organized...

    I have done sites with 100,000+ products and parse times are normally sub-second on a fast optimized server
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 45,000 queries to load my categories? Horrid performance

    Under Configuration --> logging you can turn off Store Page Parse Time, Display Page Parse Time and Store Database Queries - but the big user of mysql resources as Dr Byte has said is to turn off Category Counts.

    Vger

  9. #9
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: 45,000 queries to load my categories? Horrid performance

    kobra/DrByte, I've PM'd you the address.

    Thanks for the assist!

  10. #10
    Join Date
    Jan 2006
    Posts
    120
    Plugin Contributions
    0

    Default Re: 45,000 queries to load my categories? Horrid performance

    I thought I had it figured, but didn't.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Product Pages take over 5,000 queries to load?
    By Kamino84 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Mar 2010, 02:57 AM
  2. Why 20,000 queries for cart of 15 items?..
    By kevinw in forum General Questions
    Replies: 8
    Last Post: 18 May 2009, 03:39 PM
  3. Exceeding 50,000 DB Queries /hour?
    By sperdie in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 8 Feb 2009, 05:29 PM
  4. Death by 10,000 queries
    By mpercy in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 12 Feb 2008, 09:17 PM
  5. Replies: 9
    Last Post: 22 Mar 2007, 07:44 PM

Posting Permissions

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