Working on an in-house ticketing system in php/mysql. This short term ticketing system has been in place for a year or so now.
We are reaching 10,000 tickets and I would like to make the queries more efficient, since 9,500 or so of the tickets do not need to be looked at each day.
Right now the queries are getting rows by tech id, then checking to see if it's an open ticket.
I am guessing that if I make it look for open tickets then tech id the query will be more efficient. Is this true (rows with less options to rows with more options as the query builds?)