News for hackers. Stuff that matters.
Re:MongoDB rocks my world by phuff on Monday October 31, 2011 @05:06PM (#3179063)
> This can be really time-consuming, so one "fix" is to retrieve a document before writing it (thus guaranteeing it will be resident in RAM).

On a high traffic site does this guarantee that it will be in RAM? Couldn't it get swapped out pretty easily if you have a lot of read traffic?

Re:MongoDB rocks my world by rick446 on Monday October 31, 2011 @05:15PM (#3179107)
I guess on an extremely high traffic site running with a relatively small amount of RAM you could cycle through the whole LRU cache in the VM between operations, but I'd expect the probability to be vanishingly small.