Database Systems - Week 6
Comparing MongoDB with MySQL, the first thing that strikes me is that MongoDB is not a relational database. There are no keys that are strictly tied to other keys. MongoDB stores data in documents using JSON. MySQL uses rows and columns.
MongoDB is easier to scale and can handle larger amounts of data more easily. Using Mongo, you can store data with more flexibility allowing for more complex data storage. Using MySQL, you would have to have tables and relations set up before data can be stored.
MongoDB uses MQL, a query language based on JavaScript, while MySQL uses SQL which was developed to communicate with relational databases.
I would choose Mongo if I needed to store large amounts of unstructured data. Also if I needed flexibilty in changing data and high performance searching through mass amounts of data.
I would choose MySQL if I needed a relational database with a well defined schema. Also if I needed to keep data consistency and needed to insert, update and retrive data frequently.
Comments
Post a Comment