Skip to content

Commit 7316b37

Browse files
(DOCSP-25926): Clarify mongos index use (#2028)
* (DOCSP-25926): Clarify mongos index use * wording * wording * minimalism
1 parent 54f56d6 commit 7316b37

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
@@ -243,16 +243,10 @@ operation<sharding-mongos-broadcast>` to fulfill these queries.
243243
Index Use
244244
~~~~~~~~~
245245

246-
If the query does not include the :term:`shard key`, the
247-
:binary:`~bin.mongos` must send the query to all shards as a
248-
"scatter/gather" operation. Each shard will, in turn, use *either* the
249-
shard key index or another more efficient index to fulfill the query.
250-
251-
If the query includes multiple sub-expressions that reference the
252-
fields indexed by the shard key *and* the secondary index, the
253-
:binary:`~bin.mongos` can route the queries to a specific shard and the
254-
shard will use the index that will allow it to fulfill most
255-
efficiently.
246+
When a shard receives a query, it uses the most efficient index
247+
available to fulfill that query. The index used may be either the
248+
:ref:`shard key index <sharding-shard-key-indexes>` or another eligible
249+
index present on the shard.
256250

257251
Sharded Cluster Security
258252
------------------------

0 commit comments

Comments
 (0)