What exactly happens when you 'index' a MongoDB database?
So I understand that indexes are crucial because they allow you to make queries without having to look at the entire collection, but what exactly is an index? What really happens to the data when you call .createIndex()?
Thanks!