When starting a global search the queries start immediately, causing some pretty large UNIONs to be generated. For example, as soon as the user typed the letter c in the search window the following executed: - ( SELECT users . id , users . first_name…