Skip to content

Refs #81768: Added checks to prevent creating additional indexes on _id field. - #4

Open
atifa-perveen wants to merge 2 commits into
feature-pymongo-upgradefrom
feature-mongo-upgrade-v3.4
Open

Refs #81768: Added checks to prevent creating additional indexes on _id field.#4
atifa-perveen wants to merge 2 commits into
feature-pymongo-upgradefrom
feature-mongo-upgrade-v3.4

Conversation

@atifa-perveen

@atifa-perveen atifa-perveen commented Oct 11, 2018

Copy link
Copy Markdown

Index on _id field is created automatically when a collection is created. We do not need to recreate an index when it is already present.

atifa-perveen and others added 2 commits October 10, 2018 16:09
…id field.

Sparse, unique and background options cannot be provided with index on primary key. Mongo 3.4 has strict validations on index creations and throws exceptions instead of just warnings.
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.

1 participant