forked from platypush/platypush
Added auto_commit=False to entities.save()
This commit is contained in:
parent
7e92d5f244
commit
73dc2463f1
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ class EntitiesRepository:
|
|||
"""
|
||||
|
||||
with self._db.get_session(
|
||||
locked=True, autoflush=False, expire_on_commit=False
|
||||
locked=True,
|
||||
autoflush=False,
|
||||
autocommit=False,
|
||||
expire_on_commit=False,
|
||||
) as session:
|
||||
merged_entities = self._merger.merge(session, entities)
|
||||
merged_entities = self._db.upsert(session, merged_entities)
|
||||
|
|
Loading…
Reference in a new issue