From 3e1ff8313c384ef1f22e741561f1e30f988260e0 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Thu, 11 Feb 2010 16:45:01 +0000 Subject: [PATCH] added bg index creation option git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@294890 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocollection/ensureindex.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/reference/mongo/mongocollection/ensureindex.xml b/reference/mongo/mongocollection/ensureindex.xml index 7ac84416f5..41f2b45ed7 100644 --- a/reference/mongo/mongocollection/ensureindex.xml +++ b/reference/mongo/mongocollection/ensureindex.xml @@ -63,6 +63,17 @@ all but one duplicate value. + + + "background" + + + If you are using MongoDB version 1.3.2+, you can create indexes in the + background while other operations are taking place. By default, index + creation happens synchronously. If you specify &true; with this + option, index creation will be asynchronous. + +