How to update operations immediately sync to disk in mongodb?
Answer Posted / 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 |
Post New Answer View All Answers