Wrapping Up: Tune for Performance

Review what we have learned about performance tuning in Ecto.

We'll cover the following

As we mentioned at the beginning of this chapter, optimizing for performance is an application-specific process. What works beautifully on one application could be catastrophic on another. It all depends on what the requirements and constraints are.

Ecto was designed with performance in mind, and this chapter outlined some techniques we can use to make it go even faster. Before we try any or all of these, it’s important to use metrics to determine exactly what is and isn’t going slowly in our application. Once we’ve identified the problem, we can decide if we need to change something at the database level or change the way we use Ecto to get the performance we need.

Get hands-on with 1400+ tech skills courses.