@@ -36,25 +36,16 @@ MongoDB uses the classic engine for queries that are ineligible for the
36
36
Eligible Queries for the {+sbe-short-title+}
37
37
----------------------------------------------------
38
38
39
- MongoDB can use the {+sbe-short+} for the following queries:
39
+ MongoDB determines eligibility for using the {+sbe-short+} on a per-query basis,
40
+ and considers support for each operator and expressions present in the query.
41
+ For example, two common pipelines that use {+sbe-short+} are aggregations with
42
+ :pipeline:`$group` or :pipeline:`$lookup` stages. However, support for the
43
+ {+sbe-short+} is version specific and actively changing.
40
44
41
- - :pipeline:`$group` and :pipeline:`$lookup` pipeline stages when
42
- specific conditions are met. For more information, see
43
- :ref:`sbe-pipeline-optimizations`.
45
+ To see whether your query used the {+sbe-short+}, refer to the
46
+ :ref:`sbe-determine-query-engine` section.
44
47
45
- - :pipeline:`$match` and :pipeline:`$project` pipeline stages that use
46
- supported query operators and expressions.
47
-
48
- - Certain :pipeline:`$sort` pipeline stages that do not include
49
- :expression:`$meta` sorts.
50
-
51
- - :method:`~db.collection.find()` queries that use supported query
52
- operators and expressions.
53
-
54
- .. note::
55
-
56
- The {+sbe-short+} does not support :ref:`geospatial query operators
57
- <query-operators-geospatial>`.
48
+ .. _sbe-determine-query-engine:
58
49
59
50
Determine which Query Engine was Used
60
51
-------------------------------------
@@ -67,7 +58,8 @@ Check Query Explain Results
67
58
68
59
The explain results for a query differ based on
69
60
which query engine was used. For example, explain results for queries
70
- executed using the {+sbe-short+} include the ``explain.queryPlanner.winningPlan.slotBasedPlan`` field.
61
+ executed using the {+sbe-short+} include the
62
+ ``explain.queryPlanner.winningPlan.slotBasedPlan`` field.
71
63
72
64
For more information about the differences in explain results between
73
65
query engines, see :ref:`explain-output-structure`.
0 commit comments