performance: Improve performance of ticket queue pages

This patch adjusts the queries in the ticket queue pages in hopes of dramatically better performance