Skip to content

DOCS-8779: $all now chooses optimal condition not the first one #2758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions source/reference/operator/query/all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------

Expand Down