Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MongoDB with Rails - Any Good Articles?

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.

like image 370
thomasfedb Avatar asked Jun 29 '10 10:06

thomasfedb


People also ask

Can we use MongoDB with rails?

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.

Why is MongoDB so popular?

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.

When should you use MongoDB?

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.


1 Answers

You can find the mongotips blog too

http://mongotips.com/

it explain a lot of thing about what MongoDb is awesome

like image 139
shingara Avatar answered Sep 21 '22 19:09

shingara