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

'add' in cloudsearch equals to 'upsert' in mongo #6

Merged
merged 1 commit into from
Sep 26, 2016

Conversation

hokuma
Copy link
Contributor

@hokuma hokuma commented Sep 23, 2016

add operation in cloudsearch is upsert operation, that means always overwriting a document.
update with upsert option is more suitable than insert.

See:
https://docs.mongodb.com/manual/reference/method/db.collection.update/

@oisinmulvihill
Copy link
Owner

That looks ok, thanks for the contribution.

@oisinmulvihill oisinmulvihill merged commit 5133928 into oisinmulvihill:master Sep 26, 2016
@hokuma hokuma mentioned this pull request Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants