Тёмный

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

Scott___S
Подписаться 3 тыс.
Просмотров 3,9 тыс.
50% 1

Example Project: github.com/mar...
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.

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@burmashave
@burmashave Месяц назад
Great job with this - super helpful! Thanks for posting.
@janxious
@janxious 2 года назад
Nice video, I use these techniques often and they are somewhat mysterious because I haven't been able to explain when I know to use them and how it applies to other people's stuff. This is a great tutorial on that.
@cyndicorinne
@cyndicorinne 2 года назад
This is a good thorough discussion of ruby database query optimization.
@heyhey-lq6br
@heyhey-lq6br 2 года назад
Extremely helpful tutorial to reduce SQL Queries. Thanks 💮
@marcomcnulty8236
@marcomcnulty8236 2 года назад
Superb, thanks!
@installero
@installero 2 года назад
Great one! Thank you!
@jayjaypena4722
@jayjaypena4722 2 года назад
very informative. thanks!
@dogearflopper7011
@dogearflopper7011 2 года назад
Algorithm-boosting comment
@ScotttS
@ScotttS 2 года назад
excellent
@Cless_Aurion
@Cless_Aurion 2 года назад
Nice stuff!
@wdlpl
@wdlpl 2 года назад
Nice, thx.
@DiogoWernik
@DiogoWernik 2 года назад
Thanks
Далее
Rails Performance Tips and Tricks
38:46
Просмотров 2,5 тыс.
Сказала дочке НЕТ!
00:24
Просмотров 1,1 млн
Preloading ActiveRecord Associations
9:42
Просмотров 1 тыс.
The differences between classes and structs in C#
9:46
How to cache in Rails apps
18:14
Просмотров 814
All of the most useful Unity Attributes
10:21
Просмотров 1,9 тыс.
Сказала дочке НЕТ!
00:24
Просмотров 1,1 млн