Skip to content

indexing: minor edit #286

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

Merged
merged 2 commits into from
Oct 4, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/applications/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ create a sorted index on that field.

To sort query results on multiple fields, create a :ref:`compound index
<index-type-compound>`. MongoDB sorts results based on the field order
in the index. Ensure that any index constraints on index fields that are
before the first sort field are equalities.
in the index. Ensure that any index fields before the first sort field
are equalities.

.. example::

Expand Down
9 changes: 4 additions & 5 deletions source/faq/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ documentation on choosing which fields to index, see
How do write operations affect indexes?
---------------------------------------

While a read operation does not affect an index, every write operation
does involve a write to the index. If your application is write-heavy,
creating too many indexes might affect performance.

.. todo:: More is needed on that last FAQ.
While a read operation on an indexed key does not affect indexes, any
write operation to an indexed key involves writing not only to the
document but also to the appropriate index. If your application is
write-heavy, creating too many indexes might affect performance.

Will building a large index affect database performance?
--------------------------------------------------------
Expand Down