-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BatchCompleter: batch all ops, not just completed (#617)
This adds a `JobSetStateIfRunningMany` query and corresponding driver API, with implementations for both pgxv5 and `database/sql`. The `BatchCompleter` was updated to use this new query and to batch _all_ operations, not only those moving to a `complete` state. This means the `AsyncCompleter` (as well as the `InlineCompleter`) are both now unused and could be deleted, along with their underlying queries. The intention of this is not just to facilitate improved performance even on snoozes, retries, errors, cancellations, etc., but also to get down to a single path for completions (similar to now having a single path for insertions).
- Loading branch information
Showing
12 changed files
with
776 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.