Rather specify [@UniqueIndex](http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/annotations-reference.html#uniqueindex) which will make it faster.