dropDups true not working mongodb

前端 未结 1 1137
再見小時候
再見小時候 2021-01-18 00:59

I am using mongoDB shell with version 3.0.2 I am trying to ensure uniqueness constraint over a username field in collection users.

相关标签:
1条回答
  • 2021-01-18 01:45

    The drop duplicates functionality on index creation is no longer supported since Mongo version 3.0. See the compatibility changes page for the 3.0 release.

    0 讨论(0)
提交回复
热议问题