You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MongoDB/Advanced MongoDB/mongodb-indexing-limitations.md
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,10 @@ In this chapter, we will learn about Indexing Limitations and its other componen
15
15
16
16
Every index occupies some space as well as causes an overhead on each insert, update and delete. So if you rarely use your collection for read operations, it makes sense not to use indexes.
17
17
18
-
> **Note:**
19
-
> - Indexes require additional space.
20
-
> - Each insert, update, and delete operation requires additional processing due to index maintenance.
18
+
:::note
19
+
- Indexes require additional space.
20
+
- Each insert, update, and delete operation requires additional processing due to index maintenance.
21
+
:::
21
22
22
23
```mermaid
23
24
graph TD;
@@ -30,7 +31,9 @@ graph TD;
30
31
31
32
Since indexes are stored in RAM, you should make sure that the total size of the index does not exceed the RAM limit. If the total size increases the RAM size, it will start deleting some indexes, causing performance loss.
32
33
33
-
> **Note:** Ensure that the total size of all indexes does not exceed the available RAM to avoid performance issues.
34
+
:::note
35
+
Ensure that the total size of all indexes does not exceed the available RAM to avoid performance issues.
36
+
:::
34
37
35
38
```mermaid
36
39
graph TD;
@@ -46,9 +49,10 @@ Indexing can't be used in queries which use:
46
49
- Arithmetic operators like `$mod`, etc.
47
50
-`$where` clause
48
51
49
-
> **Note:**
50
-
> - Regular expressions and negation operators cannot use indexes.
51
-
> - Arithmetic operators and `$where` clause cannot use indexes.
52
+
:::note
53
+
- Regular expressions and negation operators cannot use indexes.
54
+
- Arithmetic operators and `$where` clause cannot use indexes.
55
+
:::
52
56
53
57
| Query Type | Index Usage |
54
58
|-----------------|--------------|
@@ -72,7 +76,9 @@ graph TD;
72
76
73
77
MongoDB will not insert any document into an indexed collection if the indexed field value of this document exceeds the index key limit. The same is the case with `mongorestore` and `mongoimport` utilities.
74
78
75
-
> **Note:** Documents with indexed field values exceeding the key limit will not be inserted into an indexed collection.
79
+
:::note
80
+
Documents with indexed field values exceeding the key limit will not be inserted into an indexed collection.
0 commit comments