Skip to content

Commit

Permalink
enable autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
yulaicui committed Jul 18, 2023
1 parent c2c3a0e commit 6921d77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions evadb/catalog/sql_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class SingletonMeta(type):

def __call__(cls, uri):
key = (cls, uri)
instances = cls._instances
print(instances)
with cls._lock:
if key not in cls._instances:
instance = super().__call__(uri)
Expand Down Expand Up @@ -97,7 +95,7 @@ def _enable_sqlite_pragma(dbapi_con, con_record):
# Currently, there are too many connections being made, which is not an
# optimal design. Ideally, we should implement a connection pool for
# better management.
dbapi_con.execute("pragma journal_mode=WAL")
# dbapi_con.execute("pragma journal_mode=WAL")
# dbapi_con.close()

event.listen(self.engine, "connect", _enable_sqlite_pragma)
Expand Down

0 comments on commit 6921d77

Please sign in to comment.