From 89f251edee2b1d13aa3d555e3a2693c37d1fdb41 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 8 May 2013 14:23:04 +0000 Subject: [PATCH] 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 --- reference/mongo/mongoclient/construct.xml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/reference/mongo/mongoclient/construct.xml b/reference/mongo/mongoclient/construct.xml index 184c9445a0..262eb533ab 100644 --- a/reference/mongo/mongoclient/construct.xml +++ b/reference/mongo/mongoclient/construct.xml @@ -120,6 +120,32 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db host list. + + + "fsync" + + + When fsync 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 using this + option and use the journal option instead, + perhaps in combination with the w option. + + + + + "journal" + + + When journal 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. + + "password"