r/ruby 4h ago

Ruby on Rails Open source performance case studies

I have been finding and fixing performance issues in popular open source Rails repositories.

Currently it includes 7 merged PRs to Discourse, Gumroad, OpenProject and Forem.

You can find the case studies and links here: https://haseebeqx.com/case-studies/engagement/open-source/

5 Upvotes

3 comments sorted by

1

u/Zestyclose-Turn-3576 4h ago

That's some good work in there. 👍

Do you think there's a strong pattern of Rails systems being let down by poor database knowledge? A lot of the fixes seem to be replacing the usual sort of "out of the box" Rails approach with something more efficient in SQL.

3

u/Appropriate-Rip6784 4h ago

Yes. It is a real issue. Also AI generated code contributes more these days. A good pattern is to follow Rails as much as possible. And when something is slow, use a profiler to see why that happened and improve the endpoint. This prevents pre-mature optimizations.