Index selection in a distributed relational database