Increase batch size for vacancies collecting task
All checks were successful
release / docker (push) Successful in 35s
All checks were successful
release / docker (push) Successful in 35s
This commit is contained in:
parent
92c1d97727
commit
c5cba30997
@ -49,7 +49,7 @@ class Command(BaseCommand):
|
||||
exist_points_set = tuple(set(exist_points_ids))
|
||||
|
||||
result_rows = clickhouse_client.query(query, parameters={"exist_points": exist_points_set}).result_rows
|
||||
batch_size = 10
|
||||
batch_size = 30
|
||||
with ThreadPoolExecutor(max_workers=batch_size) as pool:
|
||||
pool.map(self._process_batch, batched(result_rows, batch_size))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user