Skip to content

Implementation of the ADO.NET batching API#3860

Merged
roji merged 1 commit into
mainfrom
BatchingAPI
Aug 16, 2021
Merged

Implementation of the ADO.NET batching API#3860
roji merged 1 commit into
mainfrom
BatchingAPI

Conversation

@roji

@roji roji commented Jun 19, 2021

Copy link
Copy Markdown
Member

No description provided.

@roji
roji requested a review from vonzshik as a code owner June 19, 2021 19:42
@roji
roji marked this pull request as draft June 19, 2021 19:44
@roji
roji force-pushed the BatchingAPI branch 2 times, most recently from 0a4e8f3 to cf3f491 Compare July 31, 2021 17:50
@roji roji changed the title Draft implementation of the ADO.NET batching API proposal Implementation of the ADO.NET batching API Jul 31, 2021
@roji
roji marked this pull request as ready for review July 31, 2021 18:05
@roji

roji commented Jul 31, 2021

Copy link
Copy Markdown
Member Author

This is now more or less ready for integration in preview7 - tested against the latest dotnet SDK.

  • There are some incomplete corners which I'd rather handle a bit later - specifically around invalidation the preparation status of a batch if anything changes in any of its batch commands (e.g. text changes, some batch command is removed...).
  • Because of an issue in the preview7 implementation, DbBatch.Commands is typed as DbBatchCommand instead of NpgsqlBatchCommand. This is addressed in API fix to System.Data batching API dotnet/runtime#56525 and will be OK in rc1.

@vonzshik vonzshik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we go. Everything looks correct, found a few things which stood out for me from a perf standpoint.

Comment thread src/Npgsql/NpgsqlBatchCommandCollection.cs Outdated
Comment thread src/Npgsql/NpgsqlParameterCollection.cs
Comment thread test/Npgsql.Tests/BatchTests.cs Outdated
Comment thread src/Npgsql/NpgsqlParameterCollection.cs Outdated
@roji
roji requested a review from vonzshik August 16, 2021 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants