File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,15 @@ Definition
2222 Prints the data distribution statistics for a :term:`sharded
2323 <sharding>` collection.
2424
25- .. tip::
26-
27- Before running the method, use the :dbcommand:`flushRouterConfig`
28- command to refresh the cached routing table to avoid returning
29- stale distribution information for the collection. Once
30- refreshed, run :method:`db.collection.getShardDistribution()` for
31- the collection you wish to build the index.
25+ Syntax
26+ ------
3227
33- For example:
28+ The :method:`~db.collection.getShardDistribution()` method has the following
29+ form:
3430
35- .. code-block:: javascript
31+ .. code-block:: javascript
3632
37- db.adminCommand( { flushRouterConfig: "test.myShardedCollection" } );
38- db.getSiblingDB("test").myShardedCollection.getShardDistribution();
33+ db.collection.getShardDistribution()
3934
4035.. seealso::
4136
You can’t perform that action at this time.
0 commit comments