Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Avoid saturating adx
  • Loading branch information
adonm authored Feb 4, 2023
1 parent cf051d3 commit 1004d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion siem_query_utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def ingest_datalake_hot():
Ingests the hot data lake into the data lake. Should be scheduled to run every 1 minute.
"""
ingest_tables = Template(get_dx_kql("ingest_tables.kql"))
with ThreadPoolExecutor(max_workers=16) as executor:
with ThreadPoolExecutor(max_workers=6) as executor:
ingest_queries = get_dx_kql("ingest_tables_global.kql").split("\n\n")
for ws in workspace_details():
ingest_queries += ingest_tables.substitute(**ws).strip().split("\n\n")
Expand Down

0 comments on commit 1004d70

Please sign in to comment.