-
Notifications
You must be signed in to change notification settings - Fork 10
DOCSP-41142: Work with Indexes + Single Field Indexes #14
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
DOCSP-41142: Work with Indexes + Single Field Indexes #14
Conversation
👷 Deploy request for docs-kotlin-sync pending review.Visit the deploys page to approve it
|
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.
nice work, some comments/questions for you.
your application's queries and operations that return sorted results. Each | ||
index that you add consumes disk space and memory when active, so we recommend | ||
that you track index memory and disk usage for capacity planning. In addition, | ||
when a write operation updates an indexed field, MongoDB updates the related |
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.
S: I see that in the server manual, it talks about how indexes are not always the best when using write operations. I believe that the sentence starting with "In addition, when a write.." is implying that indices can negatively affect write operation performance, but it would be great to make that clearer.
source/work-with-indexes.txt
Outdated
index. | ||
|
||
Because MongoDB supports dynamic schemas, applications can query against fields | ||
whose names are not known in advance or are arbitrary. MongoDB 4.2 introduced |
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.
Q: Is it it necessary to say what version of MongoDB introduced wildcard indexes, or can we just say that wildcard indexes support queries with fields that have arbitrary/unknown names?
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.
Can reword.
|
||
.. note:: | ||
|
||
You cannot remove a single field from a compound text index. You must |
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.
Q: I don't know what a compound text index is; is that information you expect the user to have already going into this page?
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.
All types of indexes are slated to receive their own page – this page will link to the compound text index page once it's written.
Create Single-Field Index | ||
------------------------- | ||
|
||
The following example creates an index in ascending order on the ``title`` field: |
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.
Q:Are there options to create an index in any other order other than ascending and descending?
S: Clarify/state explicitly that you can create an index in either ascending or descending 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.
Will add to page overview.
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.
lgtm 💯
(cherry picked from commit 12ef143)
(cherry picked from commit 12ef143)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-41142
Staging -
Self-Review Checklist