@@ -267,6 +267,15 @@ Collection Methods
267
267
268
268
.. getIndexSpecs
269
269
270
+ * - :method:`db.collection.getShardDistribution()`
271
+
272
+ - Prints the data distribution statistics for a sharded collection.
273
+
274
+ * - :method:`db.collection.getShardVersion()`
275
+
276
+ - Provides a wrapper for the database command :manual:`getShardVersion
277
+ </reference/command/getShardVersion/>`.
278
+
270
279
* - :method:`db.collection.insert()`
271
280
272
281
- Creates a new document in a collection.
@@ -308,15 +317,6 @@ Collection Methods
308
317
- Provides a wrapper around :method:`~db.collection.insert()`
309
318
and :method:`~db.collection.update()` to insert new documents.
310
319
311
- * - :method:`db.collection.getShardDistribution()`
312
-
313
- - Prints the data distribution statistics for a sharded collection.
314
-
315
- * - :method:`db.collection.getShardVersion()`
316
-
317
- - Provides a wrapper for the database command :manual:`getShardVersion
318
- </reference/command/getShardVersion/>`.
319
-
320
320
* - :method:`db.collection.stats()`
321
321
322
322
- Reports on the state of a collection. Provides a wrapper around
@@ -624,6 +624,11 @@ Database Methods
624
624
625
625
- Ends an authenticated session.
626
626
627
+ * - :method:`db.printShardingStatus()`
628
+
629
+ - Prints a formatted report of the sharding configuration and the
630
+ information regarding existing chunks in a sharded cluster.
631
+
627
632
* - :method:`db.runCommand()`
628
633
629
634
- Runs a :manual:`database command </reference/command>`.
@@ -642,11 +647,6 @@ Database Methods
642
647
and :manual:`sampleRate
643
648
</reference/method/db.setProfilingLevel/#set-profiling-level-options-samplerate>`.
644
649
645
- * - :method:`db.printShardingStatus()`
646
-
647
- - Prints a formatted report of the sharding configuration and the
648
- information regarding existing chunks in a sharded cluster.
649
-
650
650
Free Monitoring Methods
651
651
-----------------------
652
652
@@ -785,40 +785,40 @@ Sharding Methods
785
785
786
786
- Description
787
787
788
- * - :method:`sh.enableSharding()`
789
-
790
- - Enables sharding on a specific database.
791
-
792
- * - :method:`sh.shardCollection()`
793
-
794
- - Enables sharding for a collection.
795
-
796
- * - :method:`sh.status()`
797
-
798
- - Reports on the status of a sharded cluster.
799
-
800
788
* - :method:`sh.addShard()`
801
789
802
790
- Adds a shard to a sharded cluster.
803
791
804
792
* - :method:`sh.addShardTag()`
805
793
806
- - In MongoDB 3.4 and higher, this method aliases to
807
- :method:`sh.addShardToZone()`.
794
+ - Associates a shard with a tag or identifier. In MongoDB 3.4 and
795
+ higher, this method aliases to :method:`sh.addShardToZone()`.
808
796
809
797
* - :method:`sh.addShardToZone()`
810
798
811
- - Associates a shard to a zone. Supports configuring zones in sharded
799
+ - Associates a shard with a zone. Supports configuring zones in sharded
812
800
clusters.
813
801
814
802
* - :method:`sh.addTagRange()`
815
803
816
- - In MongoDB 3.4 and higher, this method aliases to
817
- :method:`sh.updateZoneKeyRange()`.
804
+ - Attaches a range of shard key values to a shard tag. In MongoDB 3.4
805
+ and higher, this method aliases to :method:`sh.updateZoneKeyRange()`.
806
+
807
+ * - :method:`sh.enableSharding()`
808
+
809
+ - Enables sharding on a specific database.
810
+
811
+ * - :method:`sh.shardCollection()`
812
+
813
+ - Enables sharding for a collection.
814
+
815
+ * - :method:`sh.status()`
816
+
817
+ - Reports on the status of a sharded cluster.
818
818
819
819
* - :method:`sh.updateZoneKeyRange()`
820
820
821
- - Associates a range of shard keys to a zone. Supports configuring
821
+ - Associates a range of shard keys with a zone. Supports configuring
822
822
zones in sharded clusters.
823
823
824
824
User Management Methods
0 commit comments