c# - Improving Entity Framework Performance during testing -
i'm trying reduce startup time tests against ef 6x datastore. tests within transaction , db gets rolled once done. appreciate suggestions on how retain instance of dbcontext between test sessions ef doesn't have go through whole view generation process again?
i don't want use mocks/fakes, non-microsoft branch of ef , interactive views in place. thank you.
different options. did not mentioned aim of testing , there not code, options are:
if inserting many records tables, can bulk insert. best library doing is:entityframework.bulkinsert-ef6. can install through nuget console.
if see slowness while working data , have many load/manipulation/save operations, have in-memory operation sampath recommends.
if loading data, load columns need. should use lazy loading option(which post, think know well).
4.some portion of slowness because of architecture of database. key column types have considerable effect on operations!
Comments
Post a Comment