Skip to content

Commit

Permalink
search: smaller bulk indexing chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Dec 5, 2018
1 parent 93375fe commit 52a307d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asclepias_broker/search/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def index_documents(docs: Iterable[dict], bulk: bool = False):
index='relationships',
doc_type='doc',
raise_on_error=False,
chunk_size=100,
max_chunk_bytes=(10 * 1024 * 1024),
)
else:
for doc in docs:
Expand Down

0 comments on commit 52a307d

Please sign in to comment.