I am building a linq-to-sql web application and I've encountered a problem. I am trying to use the user's friends list fetched in real time from facebook, and then joining them against SQL tables.
For that I am usually using .Contains(friends) where friends are the User IDs. the problem is that LINQ will not be able to use .contains(friends) when friends are more than 2100 values and I am getting an exception.
So my question is - what is the best practice for reading on the fly the user's friends and joining that with my SQL tables?
Thanks y'all!