In my web application, I want to find out which of the user's Twitter friends already exist on the system ... I am currently working on getting a list of Twitter IDs that the user executes (Twitter API returns 5000 IDs at a time) and execution:
SELECT userId FROM users WHERE userId IN (COMMA_SEPARATED_LIST_OF_IDs);
I donβt like this query, because as the user table grows, this may turn out to be a bottleneck. I donβt want to optimize too, prematurely, is there any other way I have to do this?
Update: I am using MySQL.
source
share