Skip to content

Commit aae85a0

Browse files
(DOCSP-25926): Clarify mongos index use (#2028)
* (DOCSP-25926): Clarify mongos index use * wording * wording * minimalism
1 parent e6329c8 commit aae85a0

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

source/core/sharded-cluster-query-router.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -313,16 +313,10 @@ operation<sharding-mongos-broadcast>` to fulfill these queries.
313313
Index Use
314314
~~~~~~~~~
315315

316-
If the query does not include the :term:`shard key`, the
317-
:binary:`~bin.mongos` must send the query to all shards as a
318-
"scatter/gather" operation. Each shard will, in turn, use *either* the
319-
shard key index or another more efficient index to fulfill the query.
320-
321-
If the query includes multiple sub-expressions that reference the
322-
fields indexed by the shard key *and* the secondary index, the
323-
:binary:`~bin.mongos` can route the queries to a specific shard and the
324-
shard will use the index that will allow it to fulfill most
325-
efficiently.
316+
When a shard receives a query, it uses the most efficient index
317+
available to fulfill that query. The index used may be either the
318+
:ref:`shard key index <sharding-shard-key-indexes>` or another eligible
319+
index present on the shard.
326320

327321
Sharded Cluster Security
328322
------------------------

0 commit comments

Comments
 (0)