How to update operations immediately sync to disk in mongodb?
Answer / Bhuwanesh Garbyal
By default, MongoDB uses a write concern of journaling (w:1), which ensures that all updates are written to the journal on disk before the acknowledgement is sent back to the client. To force immediate synchronization to disk for every operation, you can set the write concern to 'journaled' or 'majority', as both ensure a majority vote from replica sets.
| Is This Answer Correct ? | 0 Yes | 0 No |
Where is mongodb stored windows?
What is the difference between mongodb and cassandra?
Is mongodb a database?
Does aws have mongodb?
Is mongodb a key value store?
What is replication factor in mongodb?
How do you display the list of all collections of current database?
Is mongodb a firebase?
Will there be journal replay programs in case of incomplete entries (if there is a failure in the middle of one)?
Is mongodb the same as nosql?
Is mongodb free for commercial?
What is the usage of profiler in mongodb?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)