Chapter 7. Performance and Scalability

In this chapter, we will cover the following topics, all related to improving the performance and/or scalability of Entity Framework Core:

  • Improving the performance of queries
  • Testing and profiling queries
  • Using asynchronous operations
  • Eager loading
  • Using the cache

Introduction

Nobody will bother too much if a web page takes too long to open, or try to access a site that is unresponsive due to too much simultaneous accesses—people will just close it and navigate somewhere else. With the advances in broadband speed in the last few years, people expect to see things rapidly; there's no excuse for slowness. And that's precisely what this chapter is about.

Performance is how fast we get results, and scalability is how ...

Get Entity Framework Core Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.