Selaa lähdekoodia
turn down es bulk size (#2013)
### What problem does this PR solve?
### Type of change
- [x] Performance Improvement
tags/v0.10.0
Kevin Hu
1 vuosi sitten
vanhempi
commit
5efb3476f2
No account linked to committer's email address
|
|
|
@@ -348,7 +348,7 @@ def main(): |
|
|
|
chunk_count = len(set([c["_id"] for c in cks])) |
|
|
|
st = timer() |
|
|
|
es_r = "" |
|
|
|
es_bulk_size = 16 |
|
|
|
es_bulk_size = 4 |
|
|
|
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"])) |
|
|
|
if b % 128 == 0: |