3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present
10-Jan-2019 1798
ActiveRecord is great. Really, it is. But it’s an abstraction, intended to insulate you from the actual SQL queries being run on your database. And, if you don’t understand how ActiveRecord works, you may be causing SQL queries to run that you didn’t intend to.Unfortunately, the performance costs of many features of ActiveRecord means we can’t afford to ignore unnecessary usage or treat our ORM as just an implementation detail. We need to understand exactly what queries are being run on our performance-sensitive endpoints. Freedom isn’t free, and neither is ActiveRecord.
3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present #ruby #rubydeveloper #rubyonrails #ActiveRecord #Mistakes #Rails #Apps: #Count, #Where #Present #activerecord https://rubyonrails.ba/link/3-activerecord-mistakes-that-slow-down-rails-apps-count-where-and-present