I have worked with MySQL more than MongoDB, but from what I've learned from MongoDB it's just what I needed, but it also has it's limitations that MySQL can do (for instance auto increment)
Would it be smart to use MongoDB for everything, and use MySQL for only certain things?
For instance use MongoDB to store users and everything else, but use MySQL to make for example a ticket system.
It's common to use MySQL as the primary storage and MongoDB as caching/intermediate storage for speed. You can for example have read-intensive data in MongoDB. The data for generating reports is perfect for a relational system like MySQL.
Using a NoSQL database doesn't mean you can't use SQL; SQL is just the query language. In fact, NoSQL and SQL can be complementary. Some NoSQL databases use SQL to search the data.
Yes it's 100% possible, they use completely different ports and do not care about each other. The server isn't a 'nodejs' server, it's a server that's running nodejs, and you can install anything you want on the server.
MySQL is a good choice if you are working with a legacy application that requires multi-row transactions and has structured data with a clear schema. MongoDB is a good choice if: You want high data availability along with automatic and instant data recovery.
It sounds perfectly reasonable to use two database technologies in one project. Just make sure you use the right tool for the job.
It's common to use MySQL as the primary storage and MongoDB as caching/intermediate storage for speed.
You can for example have read-intensive data in MongoDB. The data for generating reports is perfect for a relational system like MySQL.
There is a pretty good discussion of Use Cases for MongoDB on the main MongoDB site. In general, if your business case includes the need for transactions and heavy T-SQL functionality, then you'd be better served by using a RDBMS such as MySQL.
Good Use Cases for MongoDB are as follows:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With