3 ActiveRecord Mistakes That Slow Down Rails Apps: Count, Where and Present
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper