-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add support for yield to bulk inserts #504
Comments
Hey @kxleee can you provide some additional information here to assist? For example are you using the async or sync client? Do you have some sample code you can share? |
@kxleee Do you have an example please? |
The helpers such as def _generate_data() -> Any:
for i in range(100):
yield {"_index": index_name, "_id": i, "value": i}
succeeded = []
failed = []
for success, item in helpers.streaming_bulk(client, actions=_generate_data()):
if success:
succeeded.append(item)
else:
failed.append(item) I am going to close this since we didn't hear from @kxleee with an example. Let's reopen if they mean something else. |
The bulk method cannot be used in combination with yield when batch inserts
The text was updated successfully, but these errors were encountered: