0 votes
in MongoDB by

Does an update fsync to disk immediately?

1 Answer

0 votes
by

Does an update fsync to disk immediately?

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

Related questions

0 votes
asked Jun 3, 2020 in MongoDB by Robindeniel
0 votes
asked Aug 18, 2023 in iSecurity by sharadyadav1986
...