You have many options available to you. You can use .ExecuteStoreCommand () in EF 4.1 to execute SQL on the database, or you can also map stored procedures to EF. In addition, you can map views as objects in EF, if necessary.
SQL Server has very sophisticated caching mechanisms for data pages, as well as execution plans, and it is pretty automated for the developer. I would suggest placing a concrete example with the operations you want to optimize.
source
share