Reopening this one because it was only fixed and tested on Postgres.
Someone needs to test this using a large MySQL DB and write the equivalent optimized SQL.
Reopening this one because it was only fixed and tested on Postgres.
Someone needs to test this using a large MySQL DB and write the equivalent optimized SQL.