Introduction to Performance Tuning

Learn about how to tune Ecto for better performance.

We'll cover the following

Ecto allows programmers to efficiently develop programs without having to overthink. The developers of Ecto have put a lot of effort into making it perform well by default, from the higher-level APIs down to the database drivers.

Ecto uses macros for its query API to compile queries for our application. This reduces runtime processing and allows Ecto to catch query errors early on. Ecto also maintains a cache of prepared queries, greatly reducing the number of times the query has to be prepared and planned by Ecto and the database.

Ecto sits on top of the Erlang VM and harnesses the many features it provides to keep our code stable and efficient.

Get hands-on with 1400+ tech skills courses.