From 3b56f7e712041f4cd76e64ebcd7af29ccb52f1d0 Mon Sep 17 00:00:00 2001 From: "M@" Date: Mon, 31 Dec 2012 09:59:51 -0500 Subject: [PATCH] Update source/core/indexes.txt Added index caveats wrt $or --- source/core/indexes.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/core/indexes.txt b/source/core/indexes.txt index b994e85833c..096bce129bb 100644 --- a/source/core/indexes.txt +++ b/source/core/indexes.txt @@ -796,3 +796,14 @@ Be aware of the following behaviors and limitations: - Create indexes to support queries and other operations, but do not maintain indexes that your MongoDB instance cannot or will not use. + +- When using indexes with :operator:`$or` queries, remember that + each clause of an :operator:`$or` query will execute in parallel. + These clauses can each use their own index. + +- When using the :operator:`$or` operator with the + :method:`sort() ` method in a query, the query will + **not** use the indexes on the :operator:`$or` fields. + +- You cannot use the :operator:`$or` with ``2d`` :doc:`geospatial + queries `.