in reply to How many Select Querie is considered too much?

It would be difficult to give a useful answer with the information provided. What number of queries is currently making you hesitate?

The number of queries can cause overhead due to the round-trip delay, but this will depend on a number of factors.

But using monolithic queries can also cause overhead. If you can provide more information about the way you use the database we can likely offer areas to improve upon.

But honestly the best way to see which approach works best for you is to benchmark it. Optimizing before you identify the bottlenecks can absorb a huge amount of your development time with very little return on the investment.

I'm very fond of using Benchmark to determine which algorithm runs fastest, but this is only part of the problem in your case. You really need to see how well it performs when the load is as high as you fear it might become.

  • Comment on Re: How many Select Querie is considered too much?