-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
In read me, it says
Dapper's default behavior is to execute your SQL and buffer the entire reader on return. This is ideal in most cases as it minimizes shared locks in the db and cuts down on db network time.
And I saw the code
public static IEnumerable<T> Query<T>(this IDbConnection cnn, CommandDefinition command)
{
var data = QueryImpl<T>(cnn, command, typeof(T));
return command.Buffered ? data.ToList() : data;
}
I dont't really understand why buffedred can minimizes shared locks in the db and cuts down on db network time.
Metadata
Metadata
Assignees
Labels
No labels