concept performance in category entity framework

This is an excerpt from Manning's book Entity Framework Core in Action, SE.
Throughout this book, I use a “get it working, but be ready to make it faster if I need to” approach to using EF Core. EF Core allows me to develop quickly, but I’m aware that because of EF Core, or my poor use of it, the performance of my database access code might not be good enough for a particular business need. Chapter 5 covers how to isolate your EF Core so you can tune it with minimal side effects, and chapter 15 shows how to find and improve database code that isn’t fast enough.
I’ve been using ASP.NET MVC5, the precursor of ASP.NET Core, for years. I thought it was a good framework, if a bit slow in performance. But for me ASP.NET blows ASP.NET MVC5 out of the water, with a phenomenal improvement in performance and new ways to show data, like Razor Pages and Blazor.

This is an excerpt from Manning's book Entity Framework Core in Action.
Many developers like lazy loading because it’s simple to use, but I and others don’t recommend using lazy loading at all. Why? Because each lazy loading requires a separate database access, and, as I said in section 12.5.1, each database access comes with a time cost. Lazy loading can significantly reduce the performance of your database accesses.
Listing 12.4 Using the
AsNoTrackingmethod to improve the performance of a queryvar result = context.Books #1 .Include(r => r.Reviews) #1 .AsNoTracking() #2 .ToList(); #1 Returns a Book entity class and a collection of Review entity classes. #2 Adding the AsNoTracking method tells EF Core not to create a tracking snapshot, which saves time and memory usage. !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":2,\"ch\":4},{\"line\":2,\"ch\":19}]]"} !@%STYLE%@!
Figure 13.4 The Dapper code consists of a series of string concatenations to produce the final SQL query. It’s not as elegant as the EF Core version, with its four query objects, but when you’re performance tuning, you often must accept some loss of “cleanness” from your original code to achieve the performance you need.
![]()

This is an excerpt from Manning's book Entity Framework 4 in Action.
One of the most despised features of Entity Framework is the extreme verbosity of the EDM. Creating the classes and describing them in the model is a useless duplication. The same objection is made against the storage model, because the engine could analyze the database structure and retrieve the schema on its own. If it did, the only task the user would need to do is create the mapping file, as is the case in other frameworks. There are several reasons why the team included all the files in the EDM; the main reasons are for performance and maximum decoupling from the physical structures.
When people first approach Entity Framework, one of their first questions is, “What about performance?” This is a great question that involves many aspects of Entity Framework.
Entity Framework is a layer in your application, and it’s not news that additional layers slow down performance. But that’s not always bad. Entity Framework simplifies development so much that the decreased performance can be a reasonable tradeoff. Naturally, you must still take care of performance. Fortunately, Entity Framework has several internal behaviors that you can use to gain much more performance benefit than you might imagine.
Performance is a key point of almost any data-driven application. If you’re developing a simple catalog for your DVD collection, performance probably won’t even cross your mind; but in enterprise applications with lots of clients and lots of queries, you can’t ignore it.
Entity Framework was built with one eye always on performance. Almost every aspect of it has been optimized or made a target for an opt-in optimization. Plan caching and LINQ to Entities query compilation are great examples of opt-in optimizations. Unfortunately, generated SQL isn’t always as good as you might like, but you can resort to stored procedures and live happily.