-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PERF: Investigate optimized rows affected round-tripping when batching #7038
Comments
We should check that there is real benefit if we decide to pursue this. |
Also, we don't even need this for inserts |
For deletions, we have design for bulk delete which would return the IDs of deleted rows in a single resultset (#27550 (comment)). For updates, we may be able to use MERGE for bulk updates on SQL Server - benchmark this. Note that since #27547, we no longer do a separate query for concurrency checking, but use a RETURNING/OUTPUT clause. That still generates a resultset per change. |
We currently do this kind of thing:
This approach means we have to call NextResult for each statement. We should see if there is faster way, perhaps involving just a single reader MoveNext.
The text was updated successfully, but these errors were encountered: