Write Concern
Get introduced to write concern and its purpose.
MongoDB requests acknowledgment for the write operations. These acknowledgements are called write concerns. When the client performs a write operation, MongoDB processes the write request and returns acknowledgment based on the write concern configuration.
The MongoDB write operation returns acknowledged
property with other fields. Its value can be true
or false
.
If acknowledged
is true
, it means the MongoDB server has acknowledged the write concern.
If false
, it means the write concern is not enabled. The MongoDB server will still write data, but there’s no guarantee that data will persist on the disk.
Get hands-on with 1400+ tech skills courses.