Is there a way to hint to mongodb to use a list of possible indexes instead of just one?

I know that there is one index in my collection that a certain query should not use. So I need to specify to mongodb either this one index to not use or the list of other indexes that it could use for a particular query.

According to documentation, hint only takes one index as input.

Is there another way?

Leave a Comment