课程: Databases for Node.js Developers
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Selecting the ideal database for your Node.js project - Node.js教程
课程: Databases for Node.js Developers
Selecting the ideal database for your Node.js project
- [Narrator] So there is this saying when all you have is a hammer, every tool looks like a nail. And this is very true for any technology choice. So let's start for good reasons why not to use document databases and rather use a relational database. This is when your data is highly structured. So if your data has a strict format, like a tax system, a relational database is built for that. Also, if you really want to have strong data integrity, if consistency is critical at all times, like in financial transactions, relational databases enforce this better. And also, if multiple applications are updating the same data, when different services modify the same dataset, relational databases still help prevent conflicts. That also said, things are also changing. Modern relational databases like Postgres now support JSONB, which is binary JSON, allowing them to handle semi-structured data as well and more efficiently. So the choice isn't always black and white anymore. Document databases…