Skip to content

Added ignore duplicate key error option#26

Merged
repeatedly merged 2 commits intofluent:masterfrom
shunwen:feature/ignore_dup_key_error
Nov 5, 2013
Merged

Added ignore duplicate key error option#26
repeatedly merged 2 commits intofluent:masterfrom
shunwen:feature/ignore_dup_key_error

Conversation

@shunwen
Copy link
Contributor

@shunwen shunwen commented Nov 5, 2013

For collection with unique indexes configuration, inserting document which contains a duplicate value for the indexed field will be rejected by error E11000 duplicate key error. This PR adds an option to ignore this error and move on with the following logs.

repeatedly added a commit that referenced this pull request Nov 5, 2013
Added ignore duplicate key error option
@repeatedly repeatedly merged commit bea479f into fluent:master Nov 5, 2013
@repeatedly
Copy link
Member

Cool!

@shunwen
Copy link
Contributor Author

shunwen commented Nov 6, 2013

@repeatedly Thanks. But I have to say sorry, I found this patch will ignore the whole chunk once there's an record causing E11000 error. Could you help to rollback this commit? I am seeking if there's other way to resolve this problem. I will add detail explanation later today. Really sorry.

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