MongoDB Question: Download Questions PDF
Does an update fsync to disk immediately?
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 Interview Questions And Answers PDF
|Previous Question||Next Question|
|Explain are null values allowed?||How to do transactions/locking?|