CST 363 Week 7

Compare MongoDB with MySQL. 

What are some similarities? 

Both MongoDB and MySQL are both databases that stores a collection of data that can be created, read, updated, and deleted. MongoDB can also represent the type of information, like integer, string, double, date, boolean, etc. Just like MySQL, it has indexing abilities and offers security with role-based access, authentication, and authorization.


What are some differences? 

The difference between MongoDB and MySQL is that MongoDB is a document-based style of collection whereas MySQL is a relational database. This means that it stores data objects as documents inside a collection as a binary JSON. As a result, the language style differs as well. MongoDB was also developed with the intention of scalability at the forefront of their mind.


When would you choose one over the other?  

If queries have more simple data types that can be adhered to, MySQL might be a good candidate, as MongoDB supports more complex data types, to include embedded objects and arrays.  Therefore, MySQL is a better pick for structured data that requires constraints and relationships. MongoDB is a good choice if the database would undergo rapid development and require more flexibility, like Internet of Things.


Comments

Popular posts from this blog

04 February 2025

Week 7

January 21, 2025