Загрузка...

N+1 Query And Performance Optimizations | Ruby On Rails For Beginners Part 9

Learn what N+1 queries are, and how to fix them with this guide on the Bullet gem. Afterwards, learn how to do batch transactions with the ActiveRecord-Import gem, and how to do some basic Benchmarks in Rails 7.

Links:
https://medium.com/@Todd_Rizley/optimizing-your-rails-app-268ea43bd9ec
https://github.com/flyerhzm/bullet
https://apidock.com/rails/ActiveRecord/CounterCache/ClassMethods/reset_counters
https://github.com/zdennis/activerecord-import
Source: https://github.com/Deanout/blog_application/tree/episode-9

Join this channel to help support these videos:
https://www.youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ/join

Follow me on social media:
https://linktr.ee/deanin

Join this channel to get access to perks:
https://www.youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ/join

If you liked this video, please consider subscribing: https://t.co/RZ4EwP0F2a

Timestamps
0:00 Performance Optimizations In Rails 7
1:14 Fix N+1 Queries With The Bullet Gem
6:18 Solve Repeated Database Hits With A Counter Cache
9:45 Benchmark Performance With Rails Benchmark.measure
15:54 Improve Looped Insert Performance With ActiveRecord-Import Transactions

#Deanin #Software #Programming

Видео N+1 Query And Performance Optimizations | Ruby On Rails For Beginners Part 9 канала Deanin
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять