MySQL performance of query making addition of columns in where clause
问题 I have a query making an addition of several column values in the WHERE clause. I can't precompute this addition in a single column because the combination of columns to use varies between queries. My problem is that my table is very large (several hundreds of millions of rows) and the performances very bad. Example table: +---------+------------+--------+--------+--------+--------+ | tableId | categoryId | value1 | value2 | value3 | value4 | +---------+------------+--------+--------+--------