Skip to content

Commit ed524f0

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCS-15590 refineshardkey updates (#1746)
* DOCS-15590-refineshardkey-updates * DOCS-15590-refineshardkey-updates * DOCS-15590-refineshardkey-updates Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 1b43242 commit ed524f0

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

source/core/sharding-refine-a-shard-key.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ data distribution and can address situations where the existing key
1919
has led to :ref:`jumbo chunks <jumbo-chunks>` due to insufficient
2020
:ref:`cardinality <shard-key-cardinality>`.
2121

22+
.. include:: /includes/refine-shard-key-index-type.rst
23+
2224
.. note::
2325

2426
Starting in MongoDB 5.0, you can also :ref:`reshard your collection
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. warning::
2+
3+
Do not modify the range or hashed type for any of the current shard
4+
key fields. It causes data inconsistencies. For example, do not
5+
modify a shard key from ``{ customer_id: 1 }`` to ``{ customer_id:
6+
"hashed", order_id: 1 }``.

source/reference/command/refineCollectionShardKey.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ Index Considerations
183183
of the indexes whose fields support the shard key pattern must
184184
have the simple collation.
185185

186+
.. include:: /includes/refine-shard-key-index-type.rst
187+
186188
Examples
187189
--------
188190

0 commit comments

Comments
 (0)