svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ batchinsert.xml
| From: | Derick Rethans | Date: | Tue, 06 Mar 2012 18:58:54 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ batchinsert.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9840@lists.php.net to get a copy of this message | ||
derick Tue, 06 Mar 2012 18:58:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323964
Log:
Document continueOnError.
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml 2012-03-06 18:34:22 UTC (rev
323963)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/batchinsert.xml 2012-03-06 18:58:54 UTC (rev
323964)
@@ -66,6 +66,20 @@
and will override setting <literal>safe</literal> to &false;.
</para>
</listitem>
+ <listitem>
+ <para>
+ <literal>"continueOnError"</literal>
+ </para>
+ <para>
+ Boolean, defaults to &false;. If set, the database will not stop
+ processing a bulk insert if one fails (eg due to duplicate IDs).
+ This makes bulk insert behave similarly to a series of single
+ inserts, except that calling <function>MongoDB::lastError</function>
+ will have an error set if any insert fails, not just the last one.
+ If multiple errors occur, only the most recent will be reported by
+ <function>MongoDB::lastError</function>.
+ </para>
+ </listitem>
</itemizedlist>
</para>
</listitem>
@@ -121,6 +135,12 @@
before) and added "fsync" option.
</entry>
</row>
+ <row>
+ <entry>1.2.7</entry>
+ <entry>
+ The <literal>continueOnError</literal> flag has been added.
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>