Comments
Database pattern, creation of a data store to improve query performance when an application frequently needs to retrieve data by using a key other than the primary.
Code
As this is database pattern TODO: implementations for SQL server RDMS and MongoDb NoSQL