WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on a shared hosting which has a limitation at MySQL queries per hour. My shows unable to connect to database because of this.

Can anyone tell me how many queries are per page on a wordpress site with default theme instaled on?

PS: I haven't any plugin installed.

share|improve this question
Have you checked out this? codex.wordpress.org/… If you have custom queries that are eating resources, you might be able to cache them using a transient: codex.wordpress.org/Function_Reference/set_transient – Dan Jul 17 '14 at 11:13
up vote 0 down vote accepted

Wordpress uses a lot of plugins and is very query heavy but the in spite of that, the front page uses 59 queries to generate itself. I think the default (on a vanilla WordPress install on the default theme) is 27 or something of that nature. The larger the number of queries, the slower the page is going to load and the more load you are going to put on your MySql server. All of the above is true if you do not use inline or regenerative caching mechanisms.

If you want to know more go through this link and you can also calculate the number of queries using this plugin Debug Bar plugin

share|improve this answer
This is very anecdotal. Any specific number of queries is tied to the code, content, and configuration. Neither is count of queries generic performance indicator. 1 slow executing query can stress server more than 100 fast ones. – Rarst Jul 17 '14 at 10:58

This is all depends on what queries do you run on a page, are you using simple or complicated queries etc. There are really no set minimum or maximum amount of queries to a page. You will need to look in context of your site specifically and weigh the amount of queries to what is actually happening on your page.

Wordpress can be quite harsh on resources with certain queries, so you will need to take that into account as well.

But in the end it all boils down to time vs queries. This should be your goal, if you can get the job done in less time with more queries, you should do it, you should not be hampered by a low quality host.

My advice, you should find an appropriate host that can handle your queries and not limits you or Wordpress because of normal functionalities.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.