Jump to content

How Many Queries Are Too Many


hkothari

Recommended Posts

It depends entirely on what the queries are and how they are being used on a page. It is not possible to give a general answer that will fit each situation. It takes knowing the specifics for any page. Just viewing your post on this forum - "Page created in 0.033 seconds with 21 queries."

Link to comment
Share on other sites

Just be sure you need all of the queries. I've refactored newbie code where a page was doing 200+ queries and I replaced it with 4. That's a symptom of not knowing how to do proper joins in the db and instead using php to walk a result set and issue create another query.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.