I\'m at a bit of a loss trying to optimize this massive query. I\'ve used a bunch of indexes, so the individual recursive queries are quite fast. the problem is that they are al