Skip to content
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

Patch bulk multi support #85

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

orgalaf
Copy link
Contributor

@orgalaf orgalaf commented May 15, 2019

This PR adds support for patching multiple docs in batches by sending an array of docs in the data. If data sent to patch is an array, patch-bulk will build a batch update that updates each doc separately rather than finding all docs that match a criteria and updating all of them with the same changes.

@orgalaf
Copy link
Contributor Author

orgalaf commented May 15, 2019

havent added tests for it yet. let me know if you like the idea and then i'll add. tnx

@orgalaf
Copy link
Contributor Author

orgalaf commented Jun 26, 2019

@daffl what do you think of this? We had to fork the repo to add this or our app could not use this plugin at scale. Adding this feature makes bulk writes possible which allows for much better efficiency indexing to ES.

@daffl
Copy link
Member

daffl commented Jun 26, 2019

LGTM, thought @jciolek might chime in but I can release it with some tests added and the necessary documentation updates.

@orgalaf
Copy link
Contributor Author

orgalaf commented Jun 26, 2019 via email

@jciolek
Copy link
Collaborator

jciolek commented Jun 27, 2019

Hey @orgalaf, thanks for contributing!

I've noticed that the tests are failing: https://travis-ci.org/feathersjs-ecosystem/feathers-elasticsearch/builds/551348861

No idea why it's not showing in the PR. Could you rebase against master and see what happens then?

@orgalaf
Copy link
Contributor Author

orgalaf commented Jun 30, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants