PHP-788: Document journal/fsync MongoClient connection options

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330191 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2013-05-08 14:23:04 +00:00
parent 54d0342f80
commit 89f251edee

View file

@ -120,6 +120,32 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db
host list.
</para>
</listitem>
<listitem>
<para>
<literal>"fsync"</literal>
</para>
<para>
When <literal>fsync</literal> is set, all write operations on the
database will block until the database server has flushed its
database files to disk. This makes write operations a lot slower,
but it guarantees that the write operation has succeeded and
committed to disk. Please avoid <emphasis>using</emphasis> this
option and use the <literal>journal</literal> option instead,
perhaps in combination with the <literal>w</literal> option.
</para>
</listitem>
<listitem>
<para>
<literal>"journal"</literal>
</para>
<para>
When <literal>journal</literal> is set, all write operations on the
database will block until the database server has flushed the
journal to disk. This makes the write operations marginally slower,
but it guarantees that the write operation has succeeded and the
operation can be recovered in case of total system failure.
</para>
</listitem>
<listitem>
<para>
<literal>"password"</literal>