News for hackers. Stuff that matters.
Re:Why We’re Sticking with Ruby on Rails at Gitlab by ydnaclementine on Monday June 13, 2022 @01:39PM (#31728765)
I would argue the eventual "bogged down" feel of a Rails application isn't ruby itself. It's rather the abuse the database takes because ActiveRecord allows you to lazy load records so easily by abstracting SQL calls, so you're hitting the database many times per request and not realizing it until you get bitten. There is an option to disable lazy loading at a project level, but I've run into gems that assume it's enabled.

For comparison, elixir's Ecto doesn't allow lazy loading

Re:Why We’re Sticking with Ruby on Rails at Gitlab by grimjack00 on Monday June 13, 2022 @05:41PM (#31732146)
In addition, for things that can't be done easily with ActiveRecord, you can write your own SQL, but then you really need to know SQL to get the performance right.

Where I work, our main product is a Rails monolith, over 10 years old at this point. The few serious performance issues we currently have are due to complicated SQL queries written back when the DB was much smaller.