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 |
What is mongodb and why we use?
Is mongodb a language?
Does mongodb use javascript?
How do I do transactions/locking in mongodb?
Who uses mongodb?
What are types of data models in mongodb?
Why is mongodb so fast?
When an object attribute is removed, is it deleted from the store?
Is mongodb better than cassandra?
What is the use of a namespace in mongodb?
How you can inspect the source code of a function?
While creating schema in mongodb what are the points need to be taken in consideration?
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)