bbnn
bbnn

Reputation: 3602

Mongodb is slow on 8 million rows collection

I have 8 milion rows of collection, and I am new to mongoDB. It loads 20 rows really slowly...

What should I do do speed it up?

Upvotes: 1

Views: 3211

Answers (2)

nicholas
nicholas

Reputation: 64

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。

Upvotes: 2

Andreas Bakurov
Andreas Bakurov

Reputation: 1541

Probably you need to add index.

Optimization Guidelines

Upvotes: 8

Related Questions