Change get_by_id batch size from 25 to 5 to reserve db connection resouces
This commit is contained in:
@@ -1395,7 +1395,7 @@ async def _find_most_related_text_unit_from_entities(
|
||||
tasks.append((c_id, index, this_edges))
|
||||
|
||||
# Process in batches of 25 tasks at a time to avoid overwhelming resources
|
||||
batch_size = 25
|
||||
batch_size = 5
|
||||
results = []
|
||||
|
||||
for i in range(0, len(tasks), batch_size):
|
||||
|
Reference in New Issue
Block a user