Preloading objects with EF4

I have a bunch of classifiers that will be used quite often. I will not preload these objects when my program starts, so I do not have to do this later when any object refers to them.

How can this be done in EF4?

+3
source share
1 answer

There is a long walkthrough here:

Framework Cache Entity Framework Reference

But first a profile. Writing good forecasts can be faster than materializing entire objects with cached links. Even loading single reference objects is pretty fast. Do not “optimize” material that does not slow down.

+1

Source: https://habr.com/ru/post/1762480/


All Articles