I'm hearing a lot recently about NoSQL databases, particularly MongoDB. I'm interested to know what the implications of changing to a MongoDB database is within the context of a Ruby on Rails appplication.
I haven't been able to find an article that gives a good description of how things vary from using an SQL database when using MongoDB.
Do we still have database migrations? Relationships? Will has_one
still work? What are the current adapters like?
Thanks.
Read More: How to install and use MongoDB with Rails 6Create a new rails application to use Ruby MongoDB. Make sure that you add –skip-active-record. If you notice, there is no database. yml and no sqlite3 gem is added automatically.
Yes, MongoDB is popular because it's easy to learn and get started. Yes, it's highly scalable (auto-sharding, anyone?), cost effective and more. But the biggest reason MongoDB is wildly popular, in my experience? Because MongoDB enables profound developer agility through its flexible data model.
SQL. NoSQL databases like MongoDB are a good choice when your data is document-centric and doesn't fit well into the schema of a relational database, when you need to accommodate massive scale, when you are rapidly prototyping, and a few other use cases.
You can find the mongotips blog too
http://mongotips.com/
it explain a lot of thing about what MongoDb is awesome
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With