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

Throw an error if setting index on _id #6605

Closed
vkarpov15 opened this issue Jun 19, 2018 · 0 comments
Closed

Throw an error if setting index on _id #6605

vkarpov15 opened this issue Jun 19, 2018 · 0 comments
Milestone

Comments

@vkarpov15
Copy link
Collaborator

It isn't possible to set a user-defined index on _id, the best you can do is create an index that matches MongoDB's default index on _id, and this practice leads to issues like #6109, #5782 (comment) , etc. Expand on #5820

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

No branches or pull requests

2 participants