[21:39:55] <bluezone> I have a collection with more than 1 million records. Each document has a Date field "createdAt". I need to get the 10 most recently created records. So I added an index on createdAt `Records._ensureIndex({ createdAt: -1})`. So I sort them by createdAt (in descending order) and fetch the first 10 records after the sorting is done. The issue is, even with the index, this is taking 30 seconds - 1 minute, which is too
[21:39:55] <bluezone> long. Is there a better way to go about this?
[21:40:03] <bluezone> Or perhaps my index is not even working