mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 21:28:59 +08:00
turn down es bulk size (#2013)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
83c673e093
commit
5efb3476f2
@ -348,7 +348,7 @@ def main():
|
|||||||
chunk_count = len(set([c["_id"] for c in cks]))
|
chunk_count = len(set([c["_id"] for c in cks]))
|
||||||
st = timer()
|
st = timer()
|
||||||
es_r = ""
|
es_r = ""
|
||||||
es_bulk_size = 16
|
es_bulk_size = 4
|
||||||
for b in range(0, len(cks), es_bulk_size):
|
for b in range(0, len(cks), es_bulk_size):
|
||||||
es_r = ELASTICSEARCH.bulk(cks[b:b + es_bulk_size], search.index_name(r["tenant_id"]))
|
es_r = ELASTICSEARCH.bulk(cks[b:b + es_bulk_size], search.index_name(r["tenant_id"]))
|
||||||
if b % 128 == 0:
|
if b % 128 == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user