Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Linq Where clause timeout

$
0
0

I have two lists having large number of records for e.g. 300k in each list

List<string> list1,List<string> list2

i am trying to compare two lists and find the items which are in list1 but not in list2.

dbStudentList.Where(list2 => !actualStudentList.Any(list1 => list2.Name.Contains(list1))).Select(i => new { Row = i.RowNumber, Name= i.Name }).ToList();

The above query working fine if the lists having <100K only. is there any problem or limitation with above query? 


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>