Skip to content
Snippets Groups Projects
Commit 81b1e9d7 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: Use nested criteria for the query

This changes the organization of the ticket queue query. It places the criteria of
the queue and the access criteria based on the staff in a query by itself. Then it
joins to that query and selects the columns and annotations in the outer query.

This seems to help MySQL focus on the query in two stages. The first is to find the
one page of results to be shown on the page, and the second is to find all the
information to be shown for each ticket.
parent f602cba3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment