Morning everyone,
Recently been wondering which is the most optimal way to sort on multiple fields?
At the moment I’ve got indexes for match clauses, but nothing on counts. I’m only using a single column on sorting and everything seems to be fine.
However, will there be any caveats if I start sorting on multiple columns (basically due to a design on being able to filter multiple columns on a table)? i.e. { count1: -1, count2: 1, count3: 1, count4: 1}
Is that something which is better done in memory once the results are retrieved?
Thanks in advance!