week 7 journal sql

This week, I learned about the differences between MongoDB and MySQL, and it really helped me understand how each database fits different situations. Both systems are used to store, manage, and retrieve data efficiently. They also support indexing, replication, and backups, which help improve performance and reliability.

The biggest difference I noticed is that MySQL is a relational database, while MongoDB is NoSQL. MySQL uses tables, rows, and columns with a fixed schema, and data is connected through relationships like foreign keys. MongoDB stores data in flexible, JSON-like documents, which don’t need a predefined structure. Because of that, MongoDB feels more adaptable for projects where the data might change often.

If I had to choose between them, I’d use MySQL for projects that need strong consistency and clear relationships, like a student database or an online store. On the other hand, I’d use MongoDB for apps that need to handle a lot of unstructured or changing data, like a social media app or real-time analytics project. Overall, I think both are great tools—it just depends on the type of project and how structured the data needs to be.

Comments

Popular posts from this blog

Week 2 Learning Journal 5 Parts

Week 4 Journal

BOOK REPORT EXTRA CREDIT