[1.2] Deprecate requireIndexes and stuff thereto related #1477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As promised, follow up to #1476. Right now the feature is more broken than working thus giving developer false sense of security. To name few things that are wrong:
$or
clauses can use own indexes and that's not consideredI even took a stab at some of things listed above in #812 - it reached +1.2k and still was wrong. In my opinion all this adds unnecessary complexity and things to maintain, especially if Mongo would again introduce some new index-related feature making simple true/false switch not enough.