To make effective use of the index, you could rewrite the IN predicate
(x0, y0, x1, y1) IN ((4, 3, 5, 6),(9, 3, 2, 1))
Like this:
( ( x0 = 4 AND y0 = 3 AND x1 = 5 AND y1 = 6 )
OR ( x0 = 9 AND y0 = 3 AND x1 = 2 AND y1 = 1 )
)
More Related Contents:
- SQL Print the name of all Employees together with the name of their supervisor
- MySQL how to fill missing dates in range?
- Left Outer Join doesn’t return all rows from my left table?
- How to split the name string in mysql?
- MySQL offset infinite rows
- Ordering by the order of values in a SQL IN() clause
- SQL Selecting from two Tables with inner join and limit [duplicate]
- Can a foreign key reference a non-unique index?
- MySQL Group by SUM
- How to set a maximum execution time for a mysql query?
- Get the latest date from grouped MySQL data
- SQL keys, MUL vs PRI vs UNI
- MySQL – SELECT WHERE field IN (subquery) – Extremely slow why?
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- MySQL Error 1264: out of range value for column
- How to change the default port of mysql from 3306 to 3360
- Special Characters in MySQL Table Name
- How to move columns in a MySQL table?
- Is it possible to reference one column as multiple foreign keys?
- Split a string and loop through values in MySQL stored procedure
- How to create dummy variable columns for thousands of categories in Google BigQuery?
- how to cast the hexadecimal to varchar(datetime)?
- MySQL Select Query – Get only first 10 characters of a value
- Most efficient way to store IP Address in MySQL [duplicate]
- Postgres LEFT JOIN with WHERE condition
- mysql select id and name from other table and join query
- DELETE FROM `table` AS `alias` … WHERE `alias`.`column` … why syntax error?
- What happens when I exhaust a bigint generated key? How to handle it?
- MySQL update statement to store ranking positions
- is there a length limit to group_concat or another reason why it would not work on a text field