retention: Set savepoint=False on atomic wrapper on move_rows().

Savepoints create unnecessary overhead, and there's no benefit from
them, with the way we use this function.
This commit is contained in:
Mateusz Mandera 2019-06-21 11:18:51 +02:00 committed by Tim Abbott
parent 5d8d5910a8
commit e3fe66a084
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ models_with_message_key = [
},
] # type: List[Dict[str, Any]]
@transaction.atomic
@transaction.atomic(savepoint=False)
def move_rows(src_model: Any, raw_query: str, returning_id: bool=False,
**kwargs: Any) -> List[int]:
src_db_table = src_model._meta.db_table