Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'bugfix/upsert_batch' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
igiloh-pinecone committed Oct 24, 2023
2 parents bc11a7f + 31600d3 commit 62d16c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resin_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def upsert(index_name: str,
for i in range(0, len(data), batch_size):
batch = data[i:i + batch_size]
try:
kb.upsert(data)
kb.upsert(batch)
except Exception as e:
if allow_failures and len(failed_docs) < len(data) // 10:
failed_docs.extend([_.id for _ in batch])
Expand Down

0 comments on commit 62d16c9

Please sign in to comment.