is it advised to created two separate indexes for the query to filter on one field and sort on another?
-
20-04-2021 - |
Domanda
I have a query that's something like the following
find( { a : { $gt: 3 } } ).sort( { b : -1 } )
Is it advised to create an index for field a and b separately?
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow