Skip to content

Commit 7bc530e

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

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
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
@@ -189,6 +189,8 @@ Index Considerations
189189
of the indexes whose fields support the shard key pattern must
190190
have the simple collation.
191191

192+
.. include:: /includes/refine-shard-key-index-type.rst
193+
192194
Examples
193195
--------
194196

0 commit comments

Comments
 (0)