How to improve performance in Ruby on Rails using the includes method.

Published: 10 December 2021
on channel: Scott___S
3,874
210

Example Project: https://github.com/markv12/rails_incl...
Going over everything I've learned trying to improve the performance of my Ruby on Rails apps using the includes method. Executing too many SQL queries is the cause of many Rails performance problems. Includes can help, but it can sometimes be hard to tell why includes isn't working. The Rails SQL cache can sometimes hide what's actually going on and Rails features like scopes and the order query method can make includes not work as expected. I use the Rack mini profiler to diagnose unnecessary SQL queries and discuss ways to get rid of them.


Watch video How to improve performance in Ruby on Rails using the includes method. online without registration, duration hours minute second in high quality. This video was added by user Scott___S 10 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,874 once and liked it 210 people.