Should entry node.js be paired with mongodb?

the main front-end Xiaobai, want to learn the back-end, online search information is node plus mongodb, would like to ask these two together more than mysql match?

Mar.04,2021

the materials found on the Internet are all node plus mongodb , because they can all be written using js , and there is no need to learn a new language for database query

.

collocation is based on business needs. If the data you want to store is flexible, you don't need to have the same fields for every record, and the tables are not related to each other before, then you use mongodb data. If the data you want to store is very relational, then you use mysql , but you need to learn

of sql .
would you like to ask whether these two match better together than mysql?

not really.

all the materials found on the Internet are node plus mongodb

because many people don't even know the basic SQL statements or the concept of relational database schemas.


can only say that for the front end, the cost of learning mongodb is lower than that of mysql , and you can get started more quickly


this question is the same as whether rice should be eaten on radish or vegetables-there is actually no inevitable connection, you can either radish or vegetable. So, of course, NodeJS can also be paired with any database. The question is which you know better and which you like better.
it is generally because of the same technology stack that NodeJS is recommended with MongoDB. You are the front end, so you should already be familiar with JS. If the back end and database are based on JS, it may save you more time to learn additional languages and let you get started in a shorter time. If this advantage is more important to you than other factors, then there is no problem with choosing MongoDB.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b6d1-5c671.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b6d1-5c671.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?