Skip to content

Conversation

@brandur
Copy link
Contributor

@brandur brandur commented Feb 27, 2025

Remove a few straggler references saying that advisory locks provide
uniqueness. As of #28, this is no longer true and a unique index is used
instead.

Remove a few straggler references saying that advisory locks provide
uniqueness. As of #28, this is no longer true and a unique index is used
instead.
# doing a look up for an equivalent row, and inserting only if none was found.
# There's no database-level mechanism that guarantees jobs stay unique, so if
# an equivalent row is inserted out of band (or batch inserted, where a unique
# check doesn't occur), it's conceivable that duplicates could coexist.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could've changed this to talk about unique_key, but the paragraph was essentially a block warning not to insert unique jobs out of band, so felt like it wasn't really needed anymore.

@brandur brandur requested a review from bgentry February 27, 2025 14:23
@brandur
Copy link
Contributor Author

brandur commented Feb 28, 2025

Thanks!

@brandur brandur merged commit 44d993d into master Feb 28, 2025
7 checks passed
@brandur brandur deleted the brandur-remove-straggler-ref branch February 28, 2025 13:48
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.

3 participants