CST 363 Week 7

  • Compare MongoDB with MySQL. 

MongoDB is a Non relational database and MySQL is a relational database.


  • What are some similarities? 

MongoDB and MySQL allow for database administrators to store and update data. Both languages are capable in their own ways of creating entities with attributes. They are also capable of querying and filtering data.


  • What are some differences? 

The way data is stored varies between both. In MongoDB, data is stored as binary encoded JSON documents. MongoDB allows for these documents to store nested documents, which allows multiple values to be stored under one field type. In MySQL, data is stored in tables with columns as rows. This database structure only allows for one value to be stored per table cell. Additionally, another difference between MongoDB and MySQL is the syntax of their query languages.


  • When would you choose one over the other? 

At the moment I have a better understanding of SQL than the MongoDB query language. Because of this I prefer MySQL over MongoDB. In MySQL I know how to join tables and perform other database operations whereas with MongoDB, I am not sure how to do these things. This aside, I think MySQL transactions better ensure ACID properties in large databases than MongoDB. On the other hand, MongoDB may be more suitable when objects stored in the database do not share identical fields or when a database schema can not be strict

Comments

Popular posts from this blog

CST - 300 Week 2

CST 300 week 4

CST 300 week 3