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 |
Is mongodb cloud based?
How does sharding work with replication?
What is replication in mongodb?
How to check if mongoose is installed?
What is sharding in mongodb?
Now days, what makes mongodb best?
What is mongodb built?
How did mongodb get its name?
How much ram do I need for mongodb?
What is a mongodb shard?
How is data stored in mongodb?
What is the difference between mongodb and redis database?
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)