Does an update fsync to disk immediately?



Does an update fsync to disk immediately?..

Answer / 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

More MongoDB Interview Questions

What is data model in mongodb?

1 Answers  


Does mongodb store data in memory?

1 Answers  


Where is my mongodb database?

1 Answers  


To do safe backups what is the feature in mongodb that you can use?

1 Answers  


How do you display the list of all collections of current database?

1 Answers  


Which operations lock the database in mongodb?

1 Answers  


How do you limit the number of result returned?

1 Answers  


Is mongodb good for large data?

1 Answers  


Why is mongodb called mongodb?

1 Answers  


Why mongodb is so popular?

1 Answers  


How to retrieve data from multiple collections in mongodb?

1 Answers  


What are mongodb shards?

1 Answers  


Categories