Re:MongoDB 1.4 Production Release
by javery on Thursday March 25, 2010 @02:03PM
(#1219016)
Mongo should be fast enough that you don't need to use memcached. It uses memory mapped files (which is also important to know since by default it only flushes data to disk every 60 seconds)
[ Parent
| on HN ]
Memory mapped files are nice, but once the mapped file starts to get much bigger than the physical memory pages the operating system can allocate, it starts to be asymptotically the same as accessing the filesystem from the point of view of latency, so indeed for datasets considerably bigger than RAM it is not possible to be as fast as memcached. Not a MongoDB limit, but a nature-imposed limit :)
I have had some bad experiences with memory mapped databases (particularly Berkeley DB and Tokyo Tyrant) - both these seem to be very greedy with IO writes when one starts to have lots of data and lots of updates. I think Reddit experienced a similar problem (as memcachedb is based on Berkeley DB).
Does anybody know what Cassandra does?
Take a look at http://wiki.apache.org/cassandra/MemtableThresholds and http://wiki.apache.org/cassandra/ArchitectureOverview#Write_... for the specifics.