-
Notifications
You must be signed in to change notification settings - Fork 1.7k
WRITING-904 updates to compound indexes per audit #2137
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
Conversation
prefixes of the index: | ||
|
||
- ``item`` | ||
- ``item``, ``location``, in that order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think about what you're saying here with your addition of "in that order". I think you might be getting a bit lost between queries and indexes and making things difficult for yourself.
Entered review edits! |
constraints, then you can drop the ``{ a: 1 }`` index. MongoDB will be | ||
able to use the compound index in all of situations that it would have | ||
used the ``{ a: 1 }`` index. | ||
If an index is an exact prefix of a second index, and if neither index has |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you moved the wrong paragraph. That's probably my fault -- I probably commented on an outdated commit, which skewed the line. This needs to go down, so organizationally, we want:
Prefixes
def of prefixes of indexes
examples of queries supported by index
examples of queries not supported by index
Can get rid of other indexes that are prefixes.
merged with edits |
* DOCSP-25472 collection interlinks v4.4 (#2133) * DOCSP-25472 collection interlinks v5.0 (#2128) * DOCSP 25472 collection interlink ii (#1961) * DOCSP-25472 db.collection.isCapped * DOCSP-25472 db.collection.latencyStats * DOCSP-25472 db.collection.reIndex * DOCSP-25472 collection interlink * DOCSP-25472 collection interlink * DOCSP-25472 collection interlink * DOCSP-25472 collection interlink * DOCSP-25472 delete and update commands * DOCSP-25472 delete and update commands * DOCSP-25472 Adds mongosh interlink * DOCSP-25472 Adds mongosh interlink * DOCSP-25472 Fixes interlink to command * DOCSP-25472 Updates command tip * DOCSP-25472 Updates command tip * DOCSP-25472 Updates command tip * DOCSP-25472 Fixes build error * DOCSP-25472 Self-review fixes * DOCSP-25472 Self-review fixes * DOCSP-25472 Self-review fixes * DOCSP-25472 Fixes per Dave Cuthbert * DOCSP-25472 Fixes per Dave Cuthbert * DOCSP-25472 Fixes per Dave Cuthbert * DOCSP-25472 Fixes per Dave Cuthbert * DOCSP-25472 Fixes per Anna * DOCSP-25472 Fixes per Anna * DOCSP-25472 Fixes build issue * DOCSP-25472 Fixes build * DOCSP-25472 Fixes build * DOCSP-25472 Fixes build * DOCSP-25472 Fixes build
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
(cherry picked from commit b2687b7)
Cherry pick from [DOCSP-49721](https://jira.mongodb.org/browse/DOCSP-49721), already reviewed
Cherry pick from [DOCSP-49721](https://jira.mongodb.org/browse/DOCSP-49721), already reviewed (cherry picked from commit 39c6726)
No description provided.