File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,19 @@ renameCollection
52
52
:dbcommand:`renameCollection` will fail if
53
53
`target` is the name of an existing collection
54
54
and you do not specify ``dropTarget: true``.
55
-
56
- .. warning::
57
55
58
56
You cannot use :dbcommand:`renameCollection` with
59
57
sharded collections.
60
-
61
- .. warning::
62
58
63
59
If :dbcommand:`renameCollection` is interrupted prior to completion,
64
60
the ``target`` collection and indexes will be left in an inconsistent
65
61
state requiring manual intervention to clean up.
62
+
63
+ A copy of a database across collections will impact performance for
64
+ the duration of the copy.
65
+
66
+ You should not initiate :dbcommand:`renameCollection` while the
67
+ source database is being written to.
66
68
67
69
The shell helper :method:`db.collection.renameCollection()` provides a
68
70
simpler interface to using this command within a database.
You can’t perform that action at this time.
0 commit comments