I have a list of countries. Each user can check several countries. Once saved, this “list of user countries” will be used to determine whether other users will be in the countries selected by the specific user.
The question is what would be the most effective approach to this problem ...
I have one, one for saving the user's selection in the form of a limited list, such as Canada, USA, France ... in one field varchar (max), but the problem with it will be that as soon as a user from Germany logs in page, I am performing this check. To search for Germany, I would need to get all the items and delimit each field to check their value or use sql 'like', which again is pretty slow.
If you have a better solution or some advice, I would be happy to hear.
Just make sure that many users will have their choice of countries from which and only they want users to land on their page. So far, millions of users have reached these pages. Thus, a faster approach would be better.
MSSQL and ASP.NET
thank
source
share