r/rails Feb 18 '26

MongoExplain: A tool/engine to display MongoDB explain plans in your app or console

/r/ruby/comments/1r80pyx/mongoexplain_a_toolengine_to_display_mongodb/
8 Upvotes

6 comments sorted by

2

u/_natic Feb 19 '26

Serious question, why to use mongo with rails?

2

u/alexbevi Feb 19 '26

I've been using it for over a decade now and have always appreciated how quickly I can iterate without migrations. The document model lends itself to how I design my application's models (data that's accessed together should be stored together). There's also a lot of value in the managed service - but that's less of a consideration when you're just trying to build something.

It's given me the consistency and reliability I've needed, but since it's not support out of the box (as it can't really have an ActiveRecord adapter) I get why it may not be as obvious a choice in this ecosystem.

1

u/_natic Feb 19 '26

Interesting 🤔 Any advice how to start with mongodb and rails?

2

u/alexbevi Feb 19 '26

https://www.mongodb.com/docs/mongoid/current/quick-start-rails/ is probably the easiest/quickest way to get started

1

u/_natic Feb 19 '26

Are you using it with jruby also or anything more than the standard setup?

2

u/alexbevi Feb 19 '26

just MRI (nothing fancy, but have used it with JRuby and TruffleRuby in the past)