简体   繁体   中英

entity-framework with SQL Server Express slow to add records

Currently using VS2013 Express and SQL Server 2012 Express, to prototype an application. Either or both packages may be upgraded to paid versions later, as required.

I am fairly new to C#, but consider myself an intermediate-level VBA programmer for Excel/Access.

The application will load a database with data. In the module I am currently developing, ~17k records are generated from each raw data file- this will be dramatically higher in the next module, however. But the loading process is PAINFULLY slow using the Entity Framework. A previous version used table adapters, and took a reasonable amount of time.

As I understand, generating framework views might speed it up. I have found several entries on this and other sites, including:

Fastest Way of Inserting in Entity Framework Visual Studio 2013 and Entity Framework

Is using the Framework even the best approach? Are there things I can do within the confines of the Express versions of VS and SQL to optimize the performance?

您可以尝试编译Linq查询,或者尝试以其他任何方式使Entity更快,但不要浪费时间,在这种情况下请使用ADO.NET。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM