On a Facebook application (working under appengine) I need to tell the user which of his friends are already using the application.
When a user uses a Facebook application, Facebook handles the user's friend list to the application. This list might have up to 5000 friends, so checking them one by one might be too slow.
What's the best way to do an intersection between this friends list and other list, for example, the list of all the users this application already has?
Thanks,