-
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.
Error on batch insert if
InsertOpts.UniqueOpts
is specified (#7)
As I was writing docs for batch insertion today [1], I remembered that we don't support job uniqueness on batch inserts because the mechanism uses PG advisory locks, and holding many locks at once could easily lead to contention and deadlocks. We may remove this limitation in the future, but I figure that in the meantime, it might not be the worst idea to error if they're specified on batch insert so as not to mislead the user that what they expected to happen happened. That's what this change does. [1] https://riverqueue.com/docs/batch-job-insertion
- Loading branch information
Showing
2 changed files
with
51 additions
and
19 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