adspace


Does an update fsync to disk immediately?

Answer Posted / Kumar Nishant

No, in MongoDB, updates do not immediately fsync to disk. By default, data is stored in memory and flushed to disk asynchronously. However, you can use the journaling option 'j' for writing operations, which will force a write to the journal before confirming the write operation, providing a level of durability. But it should be noted that this can have a performance impact.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define array in mongoose schema?

86


How did mongodb get its name?

67


what is the command syntax for inserting a document?

69