Skip to content
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

Is Dapper's pipelining supported? #823

Closed
bgrainger opened this issue May 27, 2020 · 1 comment
Closed

Is Dapper's pipelining supported? #823

bgrainger opened this issue May 27, 2020 · 1 comment
Labels

Comments

@bgrainger
Copy link
Member

Dapper supports a "pipelining" feature: https://riptutorial.com/dapper/example/18/performing-operations-against-multiple-sets-of-input

A user reports an exception when trying to use it with MySqlConnector: DapperLib/Dapper#1469

Is this something that should be expected to work, or is it not actually supported by the MySQL protocol?

@bgrainger
Copy link
Member Author

Dapper's pipelining works by executing up to 100 MySqlCommand objects "simultaneously" (using ExecuteNonQueryAsync), then recycling the commands once they complete.

This appears to be a breaking change when switching from MySql.Data to MySqlConnector because the async operations actually complete synchronously, making it just a synchronous loop.

As per DapperLib/Dapper#1469 (comment), I'd say that Dapper's pipelining is not supported, and recommend using MySqlBatch instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant