Forums / General Questions / 45,000 queries to load my categories? Horrid performance

45,000 queries to load my categories? Horrid performance

Locked

Views: 2,385

Results 21 to 26 of 26
This thread is locked. New replies are disabled.
11 Jun 2008, 2:30 PM
#21
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

45,000 queries to load my categories? Horrid performance

Well when you add in the 1065 error I'm getting and improper display of the footer, I wonder if that's part of the issue. I think I'll try a stock install without modifications and see if that loads.

1.5 seconds is really strange. I loaded it (and had a partner at a different ISP load it with the same long run result.

11 Jun 2008, 2:38 PM
#22
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

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

I'm going to start with a fresh install and see how it goes.

I'll post back later when I see what that does.

11 Jun 2008, 4:14 PM
#23
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

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

Well I reloaded the software. Stock install, GZIP on, counts off.

Just loaded in two category trees. The offender now did 95000 queries and took 145 seconds. Now I'm quite confused.

11 Jun 2008, 4:22 PM
#24
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

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

Parse Time: 166.537 - Number of Queries: 94582 - Query Time: 157.72040223514

12 Jun 2008, 3:10 AM
#25
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

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

So can anyone tell me where the SQL code is that loads in categories when you click on a category in the sidebox? It's clear that it's loading in more "depth" than is needed and I'd like to take a look at it.

Thanks,

12 Jun 2008, 4:59 PM
#26
motodelta avatar

motodelta

Zen Follower

Join Date:
Jan 2006
Posts:
119
Plugin Contributions:
0

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

MotoDelta:

So can anyone tell me where the SQL code is that loads in categories when you click on a category in the sidebox? It's clear that it's loading in more "depth" than is needed and I'd like to take a look at it.

Thanks,

So I did some homework and SQL tracing and the product is, in fact, loading all the way to the bottom level just to expand a single category. Not sure why it's doing that.

There is also no index that reflected the "where" clause in the query!