June 2024
Intermediate to advanced
456 pages
11h 34m
English
In this chapter, you’ll analyze the Active Record code that you write and the SQL queries that are generated, focusing on their performance and scalability.
You’ll see a variety of ways to improve the performance of your application by eliminating unnecessary queries using caches and by incorporating advanced query design.
Active Record is the Domain Specific Language (DSL) that Rails developers use to create SQL queries from Ruby code.
If you’ve written SQL before and are newer to Rails, you may wonder whether writing your queries as Active Record code instead of directly as SQL is worth it. You may prefer to write SQL directly. What are some of the reasons for preferring Active Record?
Read now
Unlock full access