Skip to content

Commit

Permalink
temp: Testing fixes for OOM ClickHouse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bmtcril committed Jul 31, 2024
1 parent e64b602 commit d109117
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xapi_db_load/backends/clickhouse_lake.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,13 @@ def load_from_s3(self, s3_location):

sql = f"""
INSERT INTO {table_name}
SELECT *
FROM s3('{file_path}', '{self.s3_key}', '{self.s3_secret}', 'CSV');
SELECT *
FROM s3('{file_path}', '{self.s3_key}', '{self.s3_secret}', 'CSV')
SETTINGS max_insert_threads = 1,
min_insert_block_size_rows = 524288,
min_insert_block_size_bytes = 134217728;
"""

print(sql)
self.client.command(sql)
self.print_db_time()

Expand Down

0 comments on commit d109117

Please sign in to comment.