Erik Darling trains us in a skill:
Going back to our queries and our index requests, all the queries have two things in common:
– They filter on OwnerUserId
– They order by ScoreThere are of course other elements in the where clause to attend to, but our job is to come up with one index that helps all of our queries.
This gets a lot easier if you know the queries. If all you have is the set of index details, you can make a sane guess but the chance of being wrong is much greater.