@@ -271,8 +271,8 @@ index to locate the document:
271
271
Unique Index
272
272
~~~~~~~~~~~~
273
273
274
- The unique index will cause MongoDB to reject all documents that
275
- contain a duplicate value for the index field. To create a unique index
274
+ A unique index will cause MongoDB to reject all documents that
275
+ contain a duplicate value for the indexed field. To create a unique index
276
276
on the ``user_id`` field of the ``members`` collection, use the
277
277
following operation in the :program:`mongo` shell:
278
278
@@ -317,8 +317,9 @@ the :program:`mongo` shell:
317
317
318
318
.. note::
319
319
320
- Sparse indexes are not `block-level`_ indexes. Think of them as
321
- dense indexes with a specific filter.
320
+ Sparse indexes in MongoDB are not to be confused with `block-level`_
321
+ indexes in other databases. Think of them as dense indexes with a
322
+ specific filter.
322
323
323
324
You can combine the sparse index option with the :ref:`unique
324
325
indexes <index-type-unique>` option so that :program:`mongod` will
@@ -356,7 +357,7 @@ By default, creating an index is a blocking operation. Building an
356
357
index on a large collection of data, the operation can take a long
357
358
time to complete. To resolve this issue, the background option can
358
359
allow you to continue to use your :program:`mongod` instance during
359
- the index build. Create an index in the background of the ``zipcide ``
360
+ the index build. Create an index in the background of the ``zipcode ``
360
361
field of the ``people`` collection using a command that resembles the
361
362
following:
362
363
@@ -417,8 +418,7 @@ construction:
417
418
:dbcommand:`compact` will not run concurrently with a background
418
419
index build.
419
420
420
- Queries will not use these indexes until the index build is complete
421
- because the index builds in the ``system.indexes`` database.
421
+ Queries will not use these indexes until the index build is complete.
422
422
423
423
.. _index-creation-duplicate-dropping:
424
424
@@ -540,6 +540,7 @@ data.
540
540
541
541
.. TODO insert link to special /core/geospatial.txt documentation
542
542
on this topic. once that document exists.
543
+ -- TODO short mention of geoHaystack indexes here?
543
544
544
545
Index Limitations
545
546
-----------------
@@ -548,7 +549,7 @@ Be aware of the following current limitations of MongoDB's indexes:
548
549
549
550
- A collection may have no more than :ref:`64 indexes <limit-number-of-indexes-per-collection>`.
550
551
551
- - Indexed items can have no more than :ref:`1024 bytes <limit-index-size>`.
552
+ - Index keys can be no larger than :ref:`1024 bytes <limit-index-size>`.
552
553
553
554
This includes the field value or values, the field name or names,
554
555
and the :term:`namespace`.
0 commit comments