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

Concurrency and select_for_update #9

Open
rtubio opened this issue Jan 18, 2021 · 1 comment
Open

Concurrency and select_for_update #9

rtubio opened this issue Jan 18, 2021 · 1 comment

Comments

@rtubio
Copy link

rtubio commented Jan 18, 2021

I am currently using django-bulk-update-or-create and I would like to know if this project has been tested already in concurrent environments.

Since the selection of objects to be updated is done internally, I would like to kindly ask if there is any limitation when using select_for_update when calling bulk_update.

Is the utilization of select_for_update a considered use case, so that it will be used when updating models in bulk from within bulk_update_or_create?

Thanks in advance!

@fopina
Copy link
Owner

fopina commented May 31, 2021

Hi @rtubio you're right (if I understood you well), select_for_update should be used here, to avoid concurrency issues and dataloss. Added to the ToDo

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

No branches or pull requests

2 participants