1👍
✅
Use the bulk_update_decorated
version. But as far as I understand you don’t need to do something with savepoints. Just return from the function and whole transaction will be committed.
@transaction.atomic
def bulk_update_decorated(bulky):
try:
for update_this in bulky:
update_this.save()
except SoftTimeLimitExceeded:
pass
Savepoints are used to partial rollback of transaction. You don’t do any rollbacks so using of savepoint makes no sense here.
Source:stackexchange.com