File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,15 @@ Definition
22
22
Prints the data distribution statistics for a :term:`sharded
23
23
<sharding>` collection.
24
24
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
+ ------
32
27
33
- For example:
28
+ The :method:`~db.collection.getShardDistribution()` method has the following
29
+ form:
34
30
35
- .. code-block:: javascript
31
+ .. code-block:: javascript
36
32
37
- db.adminCommand( { flushRouterConfig: "test.myShardedCollection" } );
38
- db.getSiblingDB("test").myShardedCollection.getShardDistribution();
33
+ db.collection.getShardDistribution()
39
34
40
35
.. seealso::
41
36
You can’t perform that action at this time.
0 commit comments