Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (9k points)
Why use MongoDB over SQL?

1 Answer

0 votes
by (45.3k 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:

Want to learn MongoDB from the experts, Check out this MongoDB Training in United States to enhance your Knowledge!

Related questions

0 votes
1 answer
asked Feb 17, 2020 in SQL by anmolj (9k points)
0 votes
1 answer
asked Sep 4, 2019 in SQL by Sammy (47.6k points)
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers
asked Jun 24, 2021 in SQL by Harsh (1.5k points)

Browse Categories

...