Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions web/server/codechecker_server/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,16 @@ def create_engine(self):
engine = sqlalchemy.create_engine(
self.get_connection_string(),
connect_args={'timeout': 600, 'check_same_thread': False},
# Using query string caching can cause memory issues
# with large number of products. Therefore,
# we disable it for now.
query_cache_size=0,
poolclass=NullPool)
else:
engine = sqlalchemy.create_engine(
self.get_connection_string(),
client_encoding='utf8',
query_cache_size=0,
poolclass=NullPool)

self._register_engine_hooks(engine)
Expand Down
Loading