Exponentially deteriorating performance on inserts in SQL Server Compact 4.0 tables with an Identity column

后端 未结 1 974
有刺的猬
有刺的猬 2020-12-21 05:58

EDIT: the issue below has been fixed in the Entity Framework 6.

Running the code below takes a disappointing 2 minutes and 10 seconds. Running it a second time takes

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

    I found the issue, it is caused by the statement to get the generated id causing table scans, I propose a fix here, tested with 4000 entities, down from 17 secs to 2 secs. http://entityframework.codeplex.com/workitem/857 - it will be include in the EF6 build after Alpha 3

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