django-bulk-update-or-create icon indicating copy to clipboard operation
django-bulk-update-or-create copied to clipboard

Concurrency and select_for_update

Open rtubio opened this issue 3 years ago • 1 comments

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!

rtubio avatar Jan 18 '21 07:01 rtubio

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

fopina avatar May 31 '21 22:05 fopina