Monday, 30 June 2014

Mongo sparse index

An index that is both sparse and unique prevents collection from having documents with duplicate values for a field but allows multiple documents that omit the key.
Read more here: http://docs.mongodb.org/manual/core/index-sparse/

No comments: