Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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?



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: