@claytoncollie i am unable to, specific query depends on your wp/tp settings, the query asks for unique gettext domain names across tables for all the currently enabled languages. Underlying tables did not have INDEX on “domain” columns. Query of several joined “UNION DISTINCT” (default one) took wild minutes. All the bad decisions here.
Optimally the function should be refactored and ask for distinct values in index of “domain” column (even several separate selects, with results later joined in-memory, are faster for large tables (indexes) than any “UNION DISTINCT” one)