MongoDB Question:

Does an update fsync to disk immediately?

Tweet Share WhatsApp

Answer:

No, writes to disk are lazy by default. A write may hit disk a couple of seconds later. For example, if the database receives a thousand increments to an object within one second, it will only be flushed to disk once. (Note fsync options are available though both at the command line and via getLastError_old.)

Download MongoDB PDF Read All 39 MongoDB Questions
Previous QuestionNext Question
Explain are null values allowed?How to do transactions/locking?