Skip to content

Commit

Permalink
Merge pull request #197 from UKHSA-Internal/increase_max_intermediate…
Browse files Browse the repository at this point in the history
…_result_size

increase max_intermediate_result_size value
  • Loading branch information
adebayoolabintan committed Aug 3, 2023
2 parents 9a638ae + ecbd9ef commit 9a19e61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main_etl_nested_metrics_converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def from_sql(partition: str, cutoff_date: datetime):
session = Session()
connection = session.connection()

# Temporarily increase max_intermediate_result_size value from 1GB to 2GB
connection.execute(
text("set citus.max_intermediate_result_size to 2097152")
)

try:
query = queries.VACCINATIONS_QUERY.format(
partition=partition,
Expand Down Expand Up @@ -363,4 +368,4 @@ def main(rawtimestamp: str) -> str:
# handler.setFormatter(formatter)
# root.addHandler(handler)

# main("2023-06-29T16:15:14.123456")
# main("2023-08-03T16:39:14.123456")

0 comments on commit 9a19e61

Please sign in to comment.