Skip to content

Commit

Permalink
Merge pull request #232 from gen-mind/develop
Browse files Browse the repository at this point in the history
merge develop
  • Loading branch information
apaladiychuk authored Jun 13, 2024
2 parents 327bfc0 + 6bc809f commit 49eedc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/backend/semantic/lib/db/db_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def __init__(self, connection_string):
self.session = Session()
# IMPORTANT: Cockroach by default uses isolation level SERIALIZABLE
# Set the isolation level to READ COMMITTED
self.session.connection().execution_options(isolation_level="READ COMMITTED")
# self.session.connection().execution_options(isolation_level="READ COMMITTED")
Base.metadata.create_all(self.engine)


def insert_connector(self, **kwargs) -> int:
new_connector = Connector(**kwargs)
self.session.add(new_connector)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/semantic/lib/db/db_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, connection_string):
self.session = Session()
# IMPORTANT: Cockroach by default uses isolation level SERIALIZABLE
# Set the isolation level to READ COMMITTED
self.session.connection().execution_options(isolation_level="READ COMMITTED")
# self.session.connection().execution_options(isolation_level="READ COMMITTED")
Base.metadata.create_all(self.engine)

def insert_document(self, **kwargs) -> int:
Expand Down

0 comments on commit 49eedc3

Please sign in to comment.