Jump to content

Time vs Number


asmith

Recommended Posts

Hello,

 

I've been reviewing my codes/queries. I found that If I split a query (with 2 left joins)  into 3 queries, the sum of the 3 queries times is actually less than the main query. While learning MySQL I always went with "Less queries, More performance", but this case made me wonder which way to choose. Is it easier for MySQL/CPU/Server to handle 3 queries that takes less time or one query taking a bit more?

 

Thanks for your time.

Link to comment
https://forums.phpfreaks.com/topic/248639-time-vs-number/
Share on other sites

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.