开发者

Mongodb is slow on 8 million rows collection

开发者 https://www.devze.com 2023-02-15 02:35 出处:网络
I have 8 milion rows of collection, and I am new to mongoDB. It loads 20 r开发者_如何学编程ows really slowly...

I have 8 milion rows of collection, and I am new to mongoDB. It loads 20 r开发者_如何学编程ows really slowly...

What should I do do speed it up?


Probably you need to add index.

Optimization Guidelines


Need more informations.Just like server's ram。

Optimize Step: 1.Index your query field。 2.Check the index's storage size。If the index's size larger than RAM。MongoDB need to read data by disk I/O.So slower.

8 milion documents is not large。It is not a big deal。

0

精彩评论

暂无评论...
验证码 换一张
取 消