为什么 mongodb 的插入这么不稳定
某草草
某草草 2017-05-02 09:19:01
0
2
641

我初始化了一个1000w的分片集合,再对这个集合插入10w的数据,在插入的过程中速度特别不稳定,甚至1条数据插入执行了超过1s 请问这是什么原因呢?

某草草
某草草

reply all(2)
巴扎黑

Forgot to create the shard index key? Check it.

黄舟

It is impossible to determine what is going on without giving the configuration of the sharded collection. This is usually due to improper configuration of the shard key.
Please refer to the documentation for the choice of shard key: https://docs.mongodb.com/v3.0/tutorial/choose-a-shard-key/
In addition, there is a slides on LinkedIn that is also very good: http://www .slideshare.net/daumdna/mongodb-scaling-write-performance

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template