From 3fb930f8adbe6fa86177640656554f34d04832a0 Mon Sep 17 00:00:00 2001 From: Steve Renaker Date: Mon, 31 Oct 2016 16:37:37 -0700 Subject: [PATCH] DOCS-8779: $all now chooses optimal condition not the first one --- source/reference/operator/query/all.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/reference/operator/query/all.txt b/source/reference/operator/query/all.txt index 5ca3c807f9e..5b4c7499f48 100644 --- a/source/reference/operator/query/all.txt +++ b/source/reference/operator/query/all.txt @@ -91,15 +91,6 @@ the field contains the nested array. matching a single element, a "contains" expression (i.e. ``arrayField: element`` ) is more suitable. -Performance -~~~~~~~~~~~ - -Queries that use the :query:`$all` operator must scan all the documents -that match the first element in the :query:`$all` expression. As a -result, even with an index to support the query, the operation may be -long running, particularly when the first element in the :query:`$all` -expression is not very selective. - Examples --------