0 votes
1 view
in SQL by (9.3k points)
Why use MongoDB over SQL?

1 Answer

0 votes
by (26.6k points)
edited by

MongoDB is a document-oriented storage model developed by MongoDB Inc. in 2009. It does not support joins and does not follow any transaction properties. It follows agile practices. It consists of a dynamic data schema and is horizontally scalable. It supports MapReduce. It makes use of the JSON query language and includes secondary indexes. It does not have triggers and also, it does not use the concept of foreign keys.

SQL, on the other hand, is a relational database management system (RDBMS) developed by Microsoft in 1989. It widely supports joins and follows ACID (atomicity, consistency, isolation, and durability) properties of a transaction. It does not follow any agile practice. It has a fixed data schema in is scalable vertically. Unlike MongoDB, it does not support MapReduce. It uses SQL query language and also includes secondary indexes. It contains both triggers and foreign keys.

Even though they both have pros and cons, you should use MongoDB over SQL for the following reasons:

  • The object structure is clear
  • There are no complex joins
  • Easy to scale
  • Supports dynamic query
  • You are not required to map application objects to the database objects

Also, watch this video to know more about why you should use MongoDB over SQL:

Related questions

0 votes
1 answer
asked Feb 17 in SQL by anmolj (9.3k points)
0 votes
1 answer
asked Sep 4, 2019 in SQL by Sammy (47.8k points)
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...