How to convert mongodb to mysql database in rails 3

Hi all,

Im using rails 3, mongodb database in our application . But some

concepts is not working for mongo database. So, I have convert mongodb
to mysql database.

What is the best way to move my project Mongo to mysql database?

Any one explain…

Your question is too abstract to be answered.

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.