1
MadFish
What is an 'acceptable' number of SQL queries?
  • 2007/1/19 10:14

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


My host just cut off MySQL access for my work site because it was putting too much load on the server and crashing it.

Can someone tell me what is a 'normal' or 'acceptable' number of SQL queries for a XOOPS site?

I turned on debug mode and found my home page used an average of 90 SQL queries to load, which seems like quite a lot. I managed to get it down to 18 by turning off a few blocks (notably the 'xm-memberstats' block which used about 34 queries, and 'waiting contents' which used 11!) and by enabling caching.

I got virtually no improvement from module-wide caching, but turning on block-level caching cut another 13 queries.

So overall I got about an 80% reduction in the number of SQL queries, I hope my host will be happier...wish I'd looked at this a couple of years ago!

But what is an acceptable range?

2
DarinAllan
Re: What is an 'acceptable' number of SQL queries?

Maybe doesn't exactly answer your question, but quite a good article ;o)

xoops-tips Cache for Performance

Login

Who's Online

443 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 443


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits