Does Mongo DB have an In-Memory mode? [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-04 09:08:58

问题


Possible Duplicate:
Embedded MongoDB when running integration tests

I want to use In-Memory mode for unit test, is there an in In-Memory mode like RavenDB?


回答1:


There is no in-memory mode for MongoDB. As per this link, this feature won't be included until at least MongoDB 2.8.

Though since it's using Memory-mapped IO, it should be as speedy as in-memory during the actual processing. Not the startup though.

Also, there's a hack to use RAM disk drive and put your mongo db there. That way it would be entirely in memory.



来源:https://stackoverflow.com/questions/10005697/does-mongo-db-have-an-in-memory-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!