S
Shawn B.
Greetings,
I'm interesting in hearing about certain techniques that might enable me to
execute nonqueries in bulk much faster than one-by-one. Currently, we have
areas on the system that'll execute anywhere from 25 to 1000's in bulk but
it does so by sending the command each time.
One technique that I'm working on, in our data access layer (ADO.NET
wrapper, similar to but very different from the Data Access Block), a
BatchProcessor object, that queues up stored procedure commands (at the
moment just SP's), and converts them into a single string of "EXEC
usp_SPName @param1=...; EXEC usp_SPName @param1=...; etc" and executes that
single string. It actually does increase performance (not significantly on
fewer commands) but I was wondering if there are better ways (that don't
include making changes to the database or stored procedures).
Thanks,
Shawn
I'm interesting in hearing about certain techniques that might enable me to
execute nonqueries in bulk much faster than one-by-one. Currently, we have
areas on the system that'll execute anywhere from 25 to 1000's in bulk but
it does so by sending the command each time.
One technique that I'm working on, in our data access layer (ADO.NET
wrapper, similar to but very different from the Data Access Block), a
BatchProcessor object, that queues up stored procedure commands (at the
moment just SP's), and converts them into a single string of "EXEC
usp_SPName @param1=...; EXEC usp_SPName @param1=...; etc" and executes that
single string. It actually does increase performance (not significantly on
fewer commands) but I was wondering if there are better ways (that don't
include making changes to the database or stored procedures).
Thanks,
Shawn