If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Yikes! I got suspended for "Too many MySQL queries "

Yikes! I got suspended for "Too many MySQL queries "

Started by reuben on 13 Dec 2011, 12:40 AM · Views: 810

Results 1 to 7 of 7
13 Dec 2011, 12:40 AM
#1
reuben avatar

reuben

New Zenner

Join Date:
Apr 2005
Location:
Traralgon
Posts:
51
Plugin Contributions:
0

Post #1 by reuben

Hoping for some advice regarding hosting, my site is currently down because my web host has suspended my account, claiming that my ZC store is killing the shared server I'm on.

Here's his ticket response:

"There were around 20 queries on the site yesterday, and, as this is on a shared server, that's too many.
I can't say what the queries were, or help in figuring out what caused the problem, that's going to have to be between you and the script dev team."

So my questions is, how many SQL queries are too many?

Also I'm considering moving to a dedicated server. Any thoughts on that?

Cheers
Reuben

13 Dec 2011, 12:53 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

If your host can't handle "20 queries", then they've no business being a hosting provider. Run.

You don't need a "dedicated" server. You need a "competent host".

.
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.

13 Dec 2011, 1:19 AM
#3
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Post #3 by rescoccc

Seriously? You got suspended for 20 queries in a day? Are these people running a DX4-100 with 8MB of fast page ram?

The best way to learn is to try stuff. But, back it up first.

13 Dec 2011, 1:28 AM
#4
joejoejoe avatar

joejoejoe

Zen Follower

Join Date:
Oct 2011
Location:
AZ
Posts:
383
Plugin Contributions:
0

Post #4 by joejoejoe

Wow, 20 queries and you overloaded their system? I didn't know the Commodore-64 could be configured as a web server. You need to be running away from that host as fast as you can. And once you're established elsewhere you need to go to every web-hosting review site you can find and post the name of those idiots and make sure you include the ticket response in your review as a warning to others.

13 Dec 2011, 1:42 AM
#5
reuben avatar

reuben

New Zenner

Join Date:
Apr 2005
Location:
Traralgon
Posts:
51
Plugin Contributions:
0

Post #5 by reuben

Thanks for the responses. I'm definitely going to look into a dedicated server with someone on the ZC recommended list.

Really the problem is that the admin isn't telling me anything at all, and now that the account is suspended I have no access to anything so I can't look into the problem myself either.

I recently installed data-digger's query cache add-on to reduce the SQL load but I found the cache folder blew out to gigabytes. Anyone else notice this?

13 Dec 2011, 1:59 AM
#6
reuben avatar

reuben

New Zenner

Join Date:
Apr 2005
Location:
Traralgon
Posts:
51
Plugin Contributions:
0

Post #6 by reuben

DrByte:

You don't need a "dedicated" server. You need a "competent host".

I do agree about that. I'm with my fourth web host, and every one of them started out really great but then got worse over time. I figure that if I pay for a dedicated host I'm buying a guarantee that it won't get overloaded (since I'm the only one on it! lol)

13 Dec 2011, 10:13 PM
#7
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #7 by niccol

All good advice.

But...

There is no way you could have got as far as you could if the hosting topped out at 20 queries. You just wouldn't ever have loaded a page. I am assuming that you have loaded a page in the past. So that figure just has to be wrong. ( Which obviously is another reason not to trust the hosting )

But it does perhaps suggest that there is a possibility that there is something amiss with your install of Zen. I only say a possibility because there are a lot of 'ifs' in the logic.

If the figure '20' is just wrong, then perhaps your installation is actually running a excessive amount of queries. Which could be due to all kinds of things like an add-on module that is messed up or some incorrect code or.... or..... or....

I am not saying that your proposed course of action is not the best. What I am saying is work with your new hosting right from the start to investigate the number of queries that normal operation of the site produces if you find there is no problem then all is good. If you do see that there is an issue then you can solve it rather than just postponing a headache. A good hosting company will help you with this and also Zen can display the number and time for queries at the bottom of each page, the setting for which is in admin>>configuration>>logging.

Nick
iszent.com