I am using the EF to get and create some objects from my database. I need these objects in two different iterations. In the first iteration, I get them from my database. In the second I need to use the objects again.
Would the second iteration be faster if I saved the objects in a List in memory, instead of retrieving them from the database again, or does the EF save them in memory because they have been recently used?
Well if you need them just after, why not simply keep them in memory ? You are only storing references to objects, which are light weight.