How fast is LINQ?

前端 未结 7 1700
天涯浪人
天涯浪人 2021-01-04 23:36

I need to manipulate 100,000 - 200,000 records.
I am thinking of using LINQ (to SQL) to do this.
I know from experience that filtering dataviews is very slow.
So

7条回答
  •  独厮守ぢ
    2021-01-05 00:17

    You need to be more specific with what you mean by manipulate the records. If the changes are not 100% individual for each record and can be made set-based you are most likely better of doing the changes in T-SQL on the db side (stored procs). In other words avoid pulling large amounts of data over network and/or process boundaries if possible.

提交回复
热议问题