What ORM are you using ? Mongoid ? How do you use Mongo ? Models
structure? Their relations ?
Anyway, I had same problem; at some point I wanted to switch back from
mongo to mysql because as you say ‘some concepts are not working’.
However, given amount of work this implied I rethought the problem and
found that core issue was in my model structure.
Here I from what I realized from my own experience with mongo:
We are used to think relational, but Mongo is not relational, and
because of this models for mongo and for rdbm will be different. In my
example, I almost gave up Mongo because of too many relationships, where
Mongo is poor.
To solve relationship (has_many/embeds_meny) issue I removed a few
models and made then dynamic fields, which is piece of cake in Mongo and
not possible with MySQl !!!
Think twice.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.