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

SERVER-77899 remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. #1552

Open
wants to merge 3 commits into
base: v5.0
Choose a base branch
from

Conversation

y123456yz
Copy link
Contributor

// remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations.
// for example:
// {a:1, b:1} contain {a:1}, so we can remove index {a:1} from the candidates
// {a:"hashed", b:1} contain {a:"hashed"}, so we can remove index {a:"hahsed"} from the candidates
//
// {a:1, b:1} is better than {a:1},because both cases are satisfied for db.collection.find({a:xx})
// and db.collection.find({a:xx,b:xx})
//

@y123456yz
Copy link
Contributor Author

@kelly-cs kelly-cs changed the title remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. SERVER-77901 remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. Jun 9, 2023
@kelly-cs kelly-cs changed the title SERVER-77901 remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. SERVER-77899remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. Jun 9, 2023
@kelly-cs kelly-cs changed the title SERVER-77899remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. SERVER-77899 remove repeat contain index from the relevant candidate indexes, this can avoid some useless calculations. Jun 9, 2023
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