Querying with timestamp in MongoDB
My app requires most of the queries with timestamp (i.e. queries that find records or documents within a time range). How to index the records (i.e. documents) with timestamp so that the queries with a time range take O(log n) time?