mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Revise MongoCollection::ensureIndex() background option
https://jira.mongodb.org/browse/PHP-393 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326493 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
41ad82bfb2
commit
84d6618ac2
1 changed files with 13 additions and 4 deletions
|
@ -80,11 +80,20 @@
|
|||
<literal>"background"</literal>
|
||||
</para>
|
||||
<para>
|
||||
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.
|
||||
By default, index creation is a blocking operation and will stop other
|
||||
operations on the database from proceeding until completed. If you
|
||||
specify &true; for this option, the index will be created in the
|
||||
background while other operations are taking place.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
Prior to MongoDB 2.1.0, the index build operation is not a background
|
||||
build when it replicates to secondaries, irrespective of this option.
|
||||
See
|
||||
<link xlink:href="&url.mongodb.dochub.indexes.rs;">Building Indexes with Replica Sets</link>
|
||||
for more information.
|
||||
</para>
|
||||
</warning>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue