Assume a hypothetical document with 3 fields:
- _id : ObjectId
- emailAddress : string
- account : string
Now, given a query on emailAddress AND account, which of the following two indexes will perform better:
- Unique index on emailAddress alone (assume it is a unique field)
- Compound index on account and emailAddress
In terms of performance the difference will be small at best. Due to the fact that your e-mail addresses are unique any compound index that has an e-mail field will not ever be more helpful than an index on e-mail address alone. The reason for this is that your e-mail field already has maximal cardinality for your collection and any further index fields will not help the database to filter records more quickly since it will always arrive on the correct documents with just the e-mail field.
In terms of memory usage (which is very important for databases like MongoDB) the e-mail index alone is much smaller as well.
TL;DR : Use the index on e-mail address alone.