Performance wise what is the best way to compare 2 DataTables with approximate 1000 records?
I have looked into LINQ
and DataRelation
and googled a lot and was not able to reach a optimum solution for a datatable with only about 1000 records
Performance wise what is the best way to compare 2 DataTables with approximate 1000 records?
I have looked into LINQ
and DataRelation
and googled a lot and was not able to reach a optimum solution for a datatable with only about 1000 records
public static DataTable CompareTwoDataTable(DataTable dt1, DataTable dt2)
{
dt1.Merge(dt2);
DataTable d3 = dt2.GetChanges();
return d3;
}
I do prefer the above datatable inbuilt methods to achieve such a functionality as LINQ is doing an internal looping over the datatable rows for the process. As rows and columns goes up this may end up with perfomance leaks.