Skip to content

Commit 5f1eb5a

Browse files
(DOCSP-24007) Improve sbe performance (#3245)
* (DOCSP-29528): Improve SBE release notes (#3068) (#3083) * (DOCSP-29528): Improve SBE release notes * wording tweak * wording * change section title * (DOCSP-29529): Update log messages for SBE 7.0 changes (#3224) * (DOCSP-29529): Update log messages for SBE 7.0 changes * line spacing * copy review edits * wording * update release version * DOCSP-29530 Adjust $planCacheStats output for SBE (#3201) * formatting tabs * fix build error * formatting tab title * add more sbe content * fill out SBE table * try to fix linting * edit examples * remove version added for SBE * add version changed * fix formatting for code block * single sourcing * fix ref errors * wording * remove 'i.e.' * format field names in table * fix spacing for example comments * address review comments * Update source/includes/planCacheStats/indexFilterSet.rst Co-authored-by: Ruoxin Xu <[email protected]> * fix cachedPlan link * wording --------- Co-authored-by: Ruoxin Xu <[email protected]> --------- Co-authored-by: Ruoxin Xu <[email protected]>
1 parent f7c2356 commit 5f1eb5a

File tree

16 files changed

+399
-570
lines changed

16 files changed

+399
-570
lines changed

snooty.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ windows-sha256 = "C777DF7816BB8C9A760FDEA782113949408B6F39D72BE29A2551FA51E2FE04
247247
source-available = ":github:`source available and free to use <mongodb/mongo>`"
248248
pcre-abbr = ":abbr:`PCRE (Perl Compatible Regular Expressions)`"
249249
pcre = "Perl Compatible Regular Expressions"
250+
sbe = "slot-based query execution engine"
251+
sbe-short = "slot-based engine"
252+
sbe-title = "Slot-Based Query Execution Engine"
250253
fcv = ":abbr:`fCV (feature compatibility version)`"
251254
fts = "Atlas Search"
252255
# In Use Encryption Constants
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The details of the cached plan. The fields included in the
2+
``cachedPlan`` vary based on whether the query was completed using the
3+
classic engine or the {+sbe+}. For more information on query plans, see
4+
:data:`explain.queryPlanner`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The estimated size in bytes of a plan cache entry.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
The hostname and port of the :binary:`~bin.mongod` instance from which
2+
the plan cache information was returned.
3+
4+
When run on a sharded cluster, the operation returns plan cache entry
5+
information from a single member in each shard replica set. This member
6+
is identified with the :ref:`shard <plancachestats-shard>` and
7+
:ref:`host <plancachestats-host>` fields. See also
8+
:ref:`plancachestats-read-pref`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
A boolean that indicates whether an :ref:`index filter
2+
<index-filters>` exists for the query shape.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
A boolean that indicates whether the entry is active or inactive.
2+
3+
- If active, the query planner is currently using the entry to generate
4+
query plans.
5+
6+
- If inactive, the query planner is not currently using the entry to
7+
generate query plans.
8+
9+
See :ref:`cache-entry-state`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
A hexadecimal string that represents the hash of the key used to find
2+
the plan cache entry associated with this query. The plan cache key is a
3+
function of both the query shape and the currently available indexes for
4+
that shape. See :data:`explain.queryPlanner.planCacheKey`.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
A hexadecimal string that represents the hash of the :term:`query
2+
shape`. See :data:`explain.queryPlanner.queryHash`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
A number that indicates the query engine used to complete the query.
2+
3+
- ``1`` indicates that the classic engine was used.
4+
5+
- ``2`` indicates that the :ref:`{+sbe+} <5.1-rel-notes-sbe>` was used.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The number of "work units" performed by the query execution plan during
2+
the trial period when the query planner evaluates candidate plans. For
3+
more information, see
4+
:data:`explain.executionStats.executionStages.works`.

0 commit comments

Comments
 (0)