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:
/ optimizing-your-rails-app
github.com/flyerhzm/bullet
apidock.com/rails/ActiveRecor...
github.com/zdennis/activereco...
Source: github.com/Deanout/blog_appli...
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
Join this channel to get access to perks:
/ @deanin
If you liked this video, please consider subscribing: 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
30 июл 2024