-
Notifications
You must be signed in to change notification settings - Fork 874
Open
Milestone
Description
In some cases instead of sending a query immediately, we prepend it, so we can send it with a next query. We do this for BEGIN TRANSACTION and whenever a connection is reset as it's returned to the pool.
#4907 made it so we shouldn't even send a cancellation request until we've read all of the responses for the prepended query. Instead, we can make it so the prepended query runs in the same transaction as an actual query.
This is going to require:
- Make prepended queries use extended query protocol
- Automatically prepare all of prepended queries on opening a connection
- We should restore the write buffer with prepended query whenever there is an error while executing a query
- Benchmark the change
cc @roji
Metadata
Metadata
Assignees
Labels
No labels