GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MongoDB::WriteConcern(3) User Contributed Perl Documentation MongoDB::WriteConcern(3)

MongoDB::WriteConcern - Encapsulate and validate a write concern

version v2.2.2

    $rp = MongoDB::WriteConcern->new(); # w:1, wtimeout: 1000

    $rp = MongoDB::WriteConcern->new(
        w        => 'majority',
        wtimeout => 10000, # milliseconds
    );

A write concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.

For core documentation on read preference see <http://docs.mongodb.org/manual/core/read-preference/>.

Specifies the desired acknowledgement level. If not set, the server default will be used, which is usually "1".

Specifies how long to wait for the write concern to be satisfied (in milliseconds). Defaults to 1000. If you set this to undef, it could block indefinitely (or until socket timeout is reached).

The j option confirms that the mongod instance has written the data to the on-disk journal. Defaults to false.

Note: specifying a write concern that set j to a true value may result in an error with a mongod or mongos running with --nojournal option now errors.

  • David Golden <david@mongodb.com>
  • Rassi <rassi@mongodb.com>
  • Mike Friedman <friedo@friedo.com>
  • Kristina Chodorow <k.chodorow@gmail.com>
  • Florian Ragwitz <rafl@debian.org>

This software is Copyright (c) 2020 by MongoDB, Inc.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
2020-08-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.