File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,18 @@ requirements:
61
61
If your application has time periods with less traffic, reshard your
62
62
collection during that time if possible.
63
63
64
- - You have rewritten your application code to update your queries to use
65
- **both** the current shard key and the new shard key.
64
+ - You must perform one of these tasks:
65
+
66
+ - rewrite your application's queries to use **both** the current shard
67
+ key and the new shard key
68
+
69
+ - stop your application and then:
70
+
71
+ - rewrite your application's queries to use the new shard key
72
+ - wait until the resharding of the collection completes (to monitor
73
+ the :ref:`resharding process <resharding_process>`, use a
74
+ :pipeline:`$currentOp` pipeline stage)
75
+ - deploy your rewritten application
66
76
67
77
The following queries return an error if the query filter does not
68
78
include **both** the current shard key or a unique field (like
You can’t perform that action at this time.
0 commit comments