New Zenner
- Join Date:
- Oct 2007
- Posts:
- 3
- Plugin Contributions:
- 0
Death by 10,000 queries
Hello Fellow Zenners,
This is my second post in this forum so pardon if it's in the wrong place.
I am running Zen-Cart hosted by FutureQuest with a large number of products (829 to be exact) and a whole bunch of attributes (various product types, like shoes, shirts, decor, etc, etc). I've also installed Stock by Attributes and a few other add-ons such as the improved attribute editor, as well as some nice fluffy stuff like Lightbox.
I am seeing extremely bad performance. The worst case I have seen is a shopping cart with ~20 items in it, most of them with 2 or 3 attributes, and PHP actually kills the process after 30 seconds. To investigate this I am storing # of queries in the cookie and it turns out that the page is actually doing 13528 queries before dying. Turns out there are actually only 389 unique queries out of that set, not sure about how many updates vs. selects.
Can someone please shed some light on what can be done here? What I can do? I am a software developer by trade and can put in some custom caching if it comes down to it however that could easily turn into a nightmare.
I could really use some help.
I'm using query caching (file-based), and recently did OPTIMIZE TABLE on all my tables, with little/no effect. mytop seems to think my indexes are okay, i.e. apparently not doing table scans, but I'm not a MySQL expert.
Regards,
Mike