How many SQL queries per HTTP request is optimal?
Posted
by
Chris Kooken
on Stack Overflow
See other posts from Stack Overflow
or by Chris Kooken
Published on 2011-01-05T14:58:21Z
Indexed on
2011/01/05
21:53 UTC
Read the original article
Hit count: 120
I know the answer to this question for the most part is "It Depends", however I wanted to see if anyone had some pointers.
We execute queries each request in ASP.NET MVC. Each request we need to get user rights information, and Various data for the Views that we are displaying. How many is too much, I know I should be conscious to the number of queries i am executing. I would assume if they are small queries and optimized out, half-a-dozen should be okay? Am I right?
What do you think?
© Stack Overflow or respective owner