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

Use proper syntax for only locking ZarrArchive table #1398

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

danlamanna
Copy link
Contributor

From https://docs.djangoproject.com/en/4.1/ref/models/querysets/#select-for-update

By default, select_for_update() locks all rows that are selected by the query. For example, rows of related objects specified in select_related() are locked in addition to rows of the queryset’s model. If this isn’t desired, specify the related objects you want to lock in select_for_update(of=(...)) using the same fields syntax as select_related(). Use the value 'self' to refer to the queryset’s model.

@danlamanna danlamanna merged commit 13b6fd0 into master Dec 19, 2022
@danlamanna danlamanna deleted the zarr-locking-enhancements branch December 19, 2022 15:19
@dandibot
Copy link
Member

🚀 PR was released in v0.3.8 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants