Skip to content

Commit aa7054a

Browse files
authored
DOCS-16574 SBE Only in Group and Lookup Stage (#5919) (#6058)
* DOCS-16574 SBE Only in Group and Lookup Stage * CH feedback * CH feedback * * * build error * CH feedback 2/2
1 parent e1ab8d0 commit aa7054a

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

source/reference/sbe.txt

+10-18
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,16 @@ MongoDB uses the classic engine for queries that are ineligible for the
3636
Eligible Queries for the {+sbe-short-title+}
3737
----------------------------------------------------
3838

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.
4044

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.
4447

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:
5849

5950
Determine which Query Engine was Used
6051
-------------------------------------
@@ -67,7 +58,8 @@ Check Query Explain Results
6758

6859
The explain results for a query differ based on
6960
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.
7163

7264
For more information about the differences in explain results between
7365
query engines, see :ref:`explain-output-structure`.

0 commit comments

Comments
 (0)