I'd like to know how to maximize speed when querying for the presence of a varchar value in a column in a specific table. I don't need to know where it is, or how many occurrences there are, I just want a true/false. Of course, the column has an index.
Now, I have this:
SELECT exists (SELECT 1 FROM table WHERE column = <value> LIMIT 1);