I have a MongoDB collection with 17M records. It has many queries with sorting and other filters with operators like >, <, NOT, IN (basically other than equality operators).
As mongo suggests that index with sorting should follow a specific order( Equality, Sorting, Range), I think I might end up with many indexes that are very specific to each and every query. Which may lead to other problems of over-indexing.
Is there a better way to handle this use case in MongoDB.