Imagine Amazon, Google or other popular sites, they prefer quick response and availability to security and integrity. That doesn’t mean one is better than the other. What NoSQL / MongoDB did was address the scalability need which has not met by relational databases such as MySQL.
 |
souce:developer.com |
MongoDB, the document-oriented and open source database stores documents with the help of dynamic schemas, unlike the relational databases that make use of rows and tables for storing the document. While it is still new in the data storage industry when compared to other traditional databases, like MySQL, it has drawn a good attention for its ability to calculate MapReduce and distributed key value store.
MySQL is a relational database originally developed by MySQL AB, now owned by Oracle. MySQL is mostly used in to store data for web applications, typically as part of the popular LAMP stack (Linux, Apache, MySQL, PHP/ Python/ Perl). MySQL has over the years added various features so that it is today a full-featured RDBMS. In addition to the standard features such as tables, indexes, stored procedures it also offers updatable views, triggers, cursors, query caching, partitioned tables and clustering.
 |
Source:Gitbook |
Conclusion:
When compared to relational databases, NoSQL/ MongoDB databases are more scalable and provide superior performance, and their data model addresses several issues that the relational model is not designed to address:
- Large volumes of rapidly changing structured, semi-structured, and unstructured data
- Agile sprints, quick schema iteration, and frequent code pushes
- Object-oriented programming that is easy to use and flexible
- Geographically distributed scale-out architecture instead of expensive, monolithic architecture
The important aspect is to keep in mind that a non-relational database is not better than a relational one. If the database in question has a lot of relations and normalization, it might make little sense to use something like MongoDB. It's all about finding the right tool for the project.
 |
Source:Hackernoon |
Instead of jumping into MongoDB just because it’s on the edge rather than the actual need for the project would be an unwise decision. If you have questions regarding Database Management, Data warehousing, Data migration or simply wondering whether to choose MySQL or MongoDB, please contact us here. Thank you for stopping by and have a fantastic day!
Srivatsan Aravamudan
Business Analyst - Snr Software Consultant.
COMMENTS