MongoDB index/RAM relationship

后端 未结 2 1122
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 22:48

I\'m about to adopt MongoDB for a new project and I\'ve chosen it for flexibility, not scalability so will be running it on one machine. From the documentation and web posts

2条回答
  •  既然无缘
    2020-12-02 23:24

    MongoDB keeps what it can of the indexes in RAM. They'll be swaped out on an LRU basis. You'll often see documentation that suggests you should keep your "working set" in memory: if the portions of index you're actually accessing fit in memory, you'll be fine.

提交回复
热议问题