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

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.

Archived

This topic is now archived and is closed to further replies.

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