3 ms·
I think this idea is kind of pointless on an architectural level anyway. If you are going to use an in-memory database you might as well use one that is tuned t
by cpleppert 13y ago
I think this idea is kind of pointless on an architectural level anyway. If you are going to use an in-memory database you might as well use one that is tuned to that kind of use case. MongoDB organizes its data assuming everything will be flushed to disk at some point and doesn't make any of the optimizations available to an main memory database.
Not to mention the hoops you have to go through to administer this setup. Mongodb is already essentially tuned for working sets that fit in memory. If your disk is a bottleneck after turning after data durability(journaling,fsync etc) you are doing something wrong.
Redis at the very least would be far better for this use case.