Week 7 learning journal CST 363
Compare MongoDB with MySQL
- What are some similarities?
MySQL and mongoDB are both databases used to store and manage information. You can add, read, update, and delete data. They both use indexes to make searches faster and include security features to protect data. They also allow developers to connect from different programming languages like Java. Overall they both help organize and access data for applications.
- What are some differences?
I think mySQL and mongoDB are different in how they store and organize data. MySQL uses tables with rows and columns, while mongoDB uses documents that look like JSON files. MySQL has a fixed structure but mongoDB can store data that changes or doesn’t always follow the same format. Also mySQL is better for data that needs strong relationships and rules, while mongoDB is better for data that needs to grow and change quickly.
- When would you choose one over the other?
I would choose mySQL when data is organized, consistent, and needs strong rules like in banking or school databases. I would choose mongoDB when the data changes often, doesn’t fit a strict structure, or needs to handle lots of information quickly like in apps, social media, or online stores.
Comments
Post a Comment