File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -184,13 +184,10 @@ compound shard key.
184
184
Sorting
185
185
```````
186
186
187
- If you use the :method:`sort() <cursor.sort()>` method on a query in a
188
- sharded MongoDB environment *and* the sort is on a field that is *not*
189
- part of the shard key, :program:`mongos` must send the query to all
190
- :program:`mongod` instances in the cluster. :program:`mongos` must
191
- wait for a response from every shard before it can merge the results
192
- and return data. If you require high performance sorted queries,
193
- ensure that the sort key is a component of the shard key.
187
+ In sharded systems, the :program:`mongos` performs a merge-sort of all
188
+ sorted query results from the shards. See the :ref:`sharded query
189
+ routing <sharding-query-routing>` and :ref:`index-sort` sections for
190
+ more information.
194
191
195
192
.. _sharding-internals-operations-and-reliability:
196
193
Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ ensuring that your operations include the shard key.
473
473
{ c: 1 }
474
474
{ b: 1, c: 1 }
475
475
476
- .. [#possible-all] :program:`mongos` will round some queries, even
476
+ .. [#possible-all] :program:`mongos` will route some queries, even
477
477
some that include the shard key, to all shards, if needed.
478
478
479
479
Sharded Query Response Process
You can’t perform that action at this time.
0 commit comments