I've been reading about ensureindex (Mongodb: when to call ensureIndex?) , (Pymongo / MongoDB: create index or ensure index?) and mongodb documentation, but i havent come to a conclusion about the use of ensureindex. Doesnt mongodb create an Id for every document? Why do i need another index? In case I have a document like this:
{
"Name": "Jon Secada",
"Date of Birth": "09-19-1983",
"Address": "1 chemin des Loges",
"City": "VERSAILLES"
}
Whats the advantage of calling ensureindex on "name" for example?