Optimize artists query for performance with large collections and
sub-libraries.