Learning Journal 07 - CST363-30_2253
Flavio Cervantes
CST363-30_2253
- Compare
MongoDB with MySQL.
- MongoDB
utilizes flexible JSON style layout, while SQL utilizes strict uniformity
with tables of rows and columns, otherwise known as Schemas. The
flexibility of MongoDB is utilized for big data usages such as storing log
files, dynamic applications that can involve many changes of data needing
to be stored with inserts or updates. Examples of these would be custom
mobile applications, log files for different types of apps., or a data science
analytic app. On the other hand, SQL is best for apps. such as banking, financial,
or warehouse inventory where integrity, standardization databases are
needed. With mySQL one achieves the ability to use complex queries and
join tables together, it also focuses on extensively structured
relationships to ensure reliable queries .
- What
are some similarities?
- The
similarities are that they both support high availability setups, which
provide reliability by using live replication in case a database goes
down, the listener egresses a command to fail over the databases to the
backup node. This is one of many different ways that one can setup
replication for either MySQL or MongoDB. They also both support Azure or
AWS cloud databases if configured accordingly. Both databases offer basic
security functionality such as administrative, contributor, or read only
permissions. Last but not least, they offer flexibility with the
operating system one wants to use, all one has to do is ensure the correct
driver or API is configured.
- What
are some differences?
- The
differences between MongoDB and MySQL are that MONGODB is their age in the
industry, which affects their history. MongoDB is a fast-growing
community, while mySQL has a well-respected matured history due to its standardization.
As far as the language one uses to run queries, MongoDB
utilizes MQL, while MySQL uses SQL. The joins is MySQL are also more extensive,
one is able to utilize, inner, outer, left join, etc. while in MongoDB,
one uses $lookup, or find (); Lastly, the schema in MySQL predefines the
columns and types before the data can be inserted. In MongoDB, the data
can be dynamic/evolving. This is by design; hence it is importance
to understand the best type of databases for one’s selves.
- When
would you choose one over the other?
I would choose the mySQL over MongoDB if I was creating an application such as QuickBooks. Since values can be configured in tables of rows and columns, and ensures reliability in complex queries. as business demands continue to expand. This ensures locks and measures in place; which is best for structured or transactional data.
Comments
Post a Comment