How can I further optimize a derived table query which performs better than the JOINed equivalent?
UPDATE: I found a solution. See my Answer below. My Question How can I optimize this query to minimize my downtime? I need to update over 50 schemas with the number of tickets ranging from 100,000 to 2 million. Is it advisable to attempt to set all fields in tickets_extra at the same time? I feel that there is a solution here that I'm just not seeing. Ive been banging my head against this problem for over a day. Also, I initially tried without using a sub SELECT, but the performance was much worse than what I currently have. Background I'm trying to optimize my database for a report that needs