feat: Enhance ClickHouse client settings for better performance and session management
This commit is contained in:
parent
4dcb9c969e
commit
4cf73e0a69
@ -38,7 +38,12 @@ def create_client():
|
|||||||
query_limit=0, # No query limit
|
query_limit=0, # No query limit
|
||||||
compress=True, # Enable compression
|
compress=True, # Enable compression
|
||||||
settings={
|
settings={
|
||||||
'session_check': 0 # Disable session checking
|
'session_check': 0, # Disable session checking
|
||||||
|
'session_id': '0', # Use a static session ID
|
||||||
|
'enable_http_compression': 1, # Enable HTTP compression
|
||||||
|
'database': 'stock_db', # Set default database
|
||||||
|
'max_execution_time': 300, # 5 minute timeout
|
||||||
|
'mutations_sync': 0 # Disable mutations sync
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user