In this post, I am going to list a set of page as navigation, so that we can use MongoDB easier.
Code
Mongodb 按键值去重
MongoDB建立index,可以设置为unique.若在之前有重复的键值,那么我们必须要去除掉重复的. 若我们使用的是原生的mongo且版本小于3.0,则unique为true外,外加参数dropDups为true即可.但除此之外,在mongo3.0+,tokumx,我们只能手工搞定.