Skip to content

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

Closed
wants to merge 2 commits into from
Closed

WRITING-904 updates to compound indexes per audit #2137

wants to merge 2 commits into from

Conversation

bgrabar
Copy link

@bgrabar bgrabar commented Jan 23, 2015

No description provided.

prefixes of the index:

- ``item``
- ``item``, ``location``, in that order
Copy link
Contributor

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.

@bgrabar
Copy link
Author

bgrabar commented Jan 23, 2015

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
Copy link
Contributor

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.

@kay-kim
Copy link
Contributor

kay-kim commented Jan 26, 2015

merged with edits

@kay-kim kay-kim closed this Jan 26, 2015
mongo-cr-bot pushed a commit that referenced this pull request Nov 11, 2022
* 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
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 26, 2025
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.

2 participants