Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to use MongoDB and where MySQL?

I am thinking about using one of two databases - MySQL and MongoDB. I am planning to storing text and numeric data and I will building my app in RoR.

So I don't know, which database system could be better for this purpose - can you help me, please, under which criterium I will decide?

like image 854
user1946705 Avatar asked Apr 28 '11 17:04

user1946705


People also ask

Where do we use MongoDB?

MongoDB is a document database used to build highly available and scalable internet applications. With its flexible schema approach, it's popular with development teams using agile methodologies.

Can I use both MongoDB and MySQL?

It's common to use MySQL as the primary storage and MongoDB as caching/intermediate storage for speed. You can for example have read-intensive data in MongoDB. The data for generating reports is perfect for a relational system like MySQL.

Why we use MongoDB instead of MySQL?

Why is using MongoDB better than using MySQL? Organizations of all sizes are adopting MongoDB, especially as a cloud database, because it enables them to build applications faster, handle highly diverse data types, and manage applications more efficiently at scale.

Why should I use MongoDB and not MySQL with node?

Even though Node. js works well with MySQL database, the perfect combination is a NoSQL like MongoDB wherein the schema need not be well-structured. MongoDB represents the data as a collection of documents rather than tables related by foreign keys.


1 Answers

Let me cast this question within more general setting and into some historical perspective.

In the 60s they were asking whether to use hierarchical or network database

In the 70s the debate was relational against network

In the 80s Relational turned into SQL databases, so question mutated to SQL vs. network

In the 90s it was SQL against object databases

In 00s it was SQL against XML databases

Today we have SQL vs. NoSQL

Do you see a pattern here? Would you still bet some money onto SQL competitor, especially if it's nothing more than glorified hash table?

like image 66
Tegiri Nenashi Avatar answered Oct 06 '22 03:10

Tegiri Nenashi