How to PLINQ an existing LINQ query with Joins?

前端 未结 1 1888
误落风尘
误落风尘 2020-12-06 01:40

I\'m using LINQ to compare two DataSets with each other to create new rows and update existing. I\'ve noticed that the complete comparison lasts ~1,5 hours and only one of t

相关标签:
1条回答
  • 2020-12-06 02:07

    There are 3 points worth investigating further,

    1. Do not use .toList(). I might be wrong but I think using .ToList this way would not allow the compiler to optimize the query, if further optimization was possible.
    2. Use your own filtering operation to compare data from both destionations. It might give you better performance.
    3. See if you could use LinqDataview to provide better performance.

      I dont think you will gain an advantage of PLinq while doing insertion. Look at this answer for more details.

    Hope that helps. Please do ask if you need clarification on any of the above points.

    0 讨论(0)
提交回复
热议问题