This question is not about grouping in SQL.
Suppose the application server is located between the application UI and SQL Server. This server, of course, executes SQL queries on SQL Server. For each such request, there is some non-trivial overhead. I am curious if there is a way to group multiple requests and send them together, reducing communication costs.
For example, the server wants to make requests such as
Select * from teams...
and
Select * from users...
and instead of processing them separately, it will send something like List<sqlRequest>and get it back List<sqlResponse>(of course, transparent to the programmer).
In my specific case, I am using SQL Server. More generally, is there any SQL Server / SQL mapping database? Is (will) the performance gain caused by this worth the effort in general?
source
share