The query is just slow, no matter what changes I make