1
0
Fork 0

Added auto_commit=False to entities.save()

This commit is contained in:
Fabio Manganiello 2023-03-10 00:40:51 +01:00
parent 7e92d5f244
commit 73dc2463f1
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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)