Skip to content

Commit 1071d77

Browse files
author
Ed Costello
committed
further warnings per @scotthernandez
1 parent b7478bc commit 1071d77

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/reference/command/renameCollection.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,19 @@ renameCollection
5252
:dbcommand:`renameCollection` will fail if
5353
`target` is the name of an existing collection
5454
and you do not specify ``dropTarget: true``.
55-
56-
.. warning::
5755

5856
You cannot use :dbcommand:`renameCollection` with
5957
sharded collections.
60-
61-
.. warning::
6258

6359
If :dbcommand:`renameCollection` is interrupted prior to completion,
6460
the ``target`` collection and indexes will be left in an inconsistent
6561
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.
6668

6769
The shell helper :method:`db.collection.renameCollection()` provides a
6870
simpler interface to using this command within a database.

0 commit comments

Comments
 (0)