Skip to content

Commit

Permalink
batch size 100
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Feb 6, 2024
1 parent 6bfc6bc commit ba6ff03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async def process_data(receive_queue: Queue, error_queue: Queue):
now = time.time()

# insert data in batches of N or interval of N
if len(batch) > 1000 or now-start_time > 15:
if len(batch) > 100 or now-start_time > 15:
async with semaphore:
await insert_data(batch=batch, error_queue=error_queue)
batch = []
Expand Down

0 comments on commit ba6ff03

Please sign in to comment.