Say you have the following query:
SELECT * FROM table1 WHERE table1.id IN (1, 2, 3, 4, 5, ..., 999999)
What is a reasonable maximum for the number of elements in an IN clause? I use Sphinx to generate full-text search results and insert identifiers into a MySQL query. Is this an acceptable way to do this?
mysql
David jones
source share