From 82ecc71cd783b12e30245cfafa55ffc53038a780 Mon Sep 17 00:00:00 2001 From: "Tim Slavin (MongoDB)" Date: Tue, 19 Aug 2014 12:21:31 -0400 Subject: [PATCH] DOCS-3916: Create stronger warning for db.foo.copyTo() --- source/includes/warning-copyto-loss-of-type-fidelity.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/includes/warning-copyto-loss-of-type-fidelity.rst b/source/includes/warning-copyto-loss-of-type-fidelity.rst index a79fc115807..903b4eaaef9 100644 --- a/source/includes/warning-copyto-loss-of-type-fidelity.rst +++ b/source/includes/warning-copyto-loss-of-type-fidelity.rst @@ -5,3 +5,9 @@ documents during the translation from :term:`BSON` to :term:`JSON`. Consider using :method:`~db.cloneCollection()` to maintain type fidelity. + + The :method:`db.collection.copyTo()` command uses the :dbcommand:`eval` + command internally. As a result, the :method:`db.collection.copyTo()` + command takes a global lock that blocks all other read and write + operations until the :method:`db.collection.copyTo()` command completes. +