mirror of https://github.com/zulip/zulip.git
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:
parent
5d8d5910a8
commit
e3fe66a084
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue