Details
Description
https://www.mongodb.com/docs/manual/core/sharding-reshard-a-collection/
Current docs message:
"You must perform one of these tasks:
- rewrite your application's queries to use both the current shard key and the new shard key
- stop your application and then:
- rewrite your application's queries to use the new shard key
- wait until the resharding of the collection completes (to monitor the resharding process, use a $currentOp pipeline stage)
- deploy your rewritten application"
The message should instead be:
"you must rewrite your application's queries to use both the current shard key and the new shard key.
tip
If you can afford some downtime, you can stop your application, rewrite your application to use the new shard key, wait until resharding completes, then deploy your rewritten application."