@@ -41,13 +41,11 @@ your application's queries and operations that return sorted results. Each
41
41
index that you add consumes disk space and memory when active, so we recommend
42
42
that you track index memory and disk usage for capacity planning. In addition,
43
43
when a write operation updates an indexed field, MongoDB updates the related
44
- index.
44
+ index, which can negatively impact performance for write operations .
45
45
46
- Because MongoDB supports dynamic schemas, applications can query against fields
47
- whose names are not known in advance or are arbitrary. MongoDB 4.2 introduced
48
- :manual:`wildcard indexes </core/index-wildcard/>` to help support these
49
- queries. Wildcard indexes are not designed to replace workload-based index
50
- planning.
46
+ You can use :manual:`wildcard indexes </core/index-wildcard/>` in your MongoDB application
47
+ to query against fields whose names are not known in advance or are arbitrary. Wildcard
48
+ indexes are not designed to replace workload-based index planning.
51
49
52
50
For more information about designing your data model and choosing indexes appropriate for your application, see the
53
51
:manual:`Data Modeling and Indexes </core/data-model-operations/#indexes>` guide
@@ -64,7 +62,7 @@ free MongoDB Atlas cluster and load the sample datasets, see the
64
62
Create an Index
65
63
---------------
66
64
67
- MongoDB supports several different index types to support querying your data.
65
+ MongoDB supports several different index types to help query your data.
68
66
The following pages describe the most common index types and provide sample
69
67
code for creating each index type.
70
68
@@ -79,7 +77,7 @@ Remove an Index
79
77
You can remove any unused index except the default unique index on the
80
78
``_id`` field.
81
79
82
- The following sections show how to remove a single index or to remove all
80
+ The following sections show how to remove a single index or how to remove all
83
81
indexes in a collection.
84
82
85
83
Delete a Single Index
@@ -105,8 +103,7 @@ collection:
105
103
Delete All Indexes
106
104
~~~~~~~~~~~~~~~~~~
107
105
108
- Starting with MongoDB 4.2, you can drop all indexes by calling the
109
- ``dropIndexes()`` method on your collection:
106
+ You can drop all indexes by calling the ``dropIndexes()`` method on your collection:
110
107
111
108
.. literalinclude:: /includes/indexes/indexes.kt
112
109
:language: kotlin
0 commit comments