I have been using MongoDB for some time and have seen fsync expect data to be flushed to disk. Ok, so I thought this was a data security solution.
It worked well, takes much longer than the SQL alternative. Then I saw that I could set syncdelay to 0 , then the speed returned, but I wondered how it would be in the future with many parallel queries. So I removed the fsync parameter from the updates and inserted and removed the syncdelay configuration syncdelay .
To check if the data was being recorded, I quickly checked Rockmongo after I did the update, and the data was actually there, really fast!
So what is fsync if it makes recordings slow, and without them recordings happen, and in any case fast?
source share