File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -796,3 +796,14 @@ Be aware of the following behaviors and limitations:
796
796
797
797
- Create indexes to support queries and other operations, but do not
798
798
maintain indexes that your MongoDB instance cannot or will not use.
799
+
800
+ - When using indexes with :operator:`$or` queries, remember that
801
+ each clause of an :operator:`$or` query will execute in parallel.
802
+ These clauses can each use their own index.
803
+
804
+ - When using the :operator:`$or` operator with the
805
+ :method:`sort() <cursor.sort()>` method in a query, the query will
806
+ **not** use the indexes on the :operator:`$or` fields.
807
+
808
+ - You cannot use the :operator:`$or` with ``2d`` :doc:`geospatial
809
+ queries </core/geospatial-indexes>`.
You can’t perform that action at this time.
0 commit comments