Answer the question
In order to leave comments, you need to log in
Should I choose mongoDB?
Hey! I want to create a small educational project - this is a service that allows people who want to easily find a mentor in different languages (English, German, etc.).
The backend will be in Node.js. The problem is the choice of database, since I will have many relationships between the entities of students, mentors, requests and responses, and mongo has a document approach, so there are doubts about using it. Question: is it worth going with mongoDB or is it better to use MySql ?
Answer the question
In order to leave comments, you need to log in
Better take PostgreSQL, it just has an excellent driver for the node: https://node-postgres.com
For data with a large number of relationships, relational databases are better, because many relationships tend to generate or are close to:
- With complex queries where SQL helps a lot
- Large amounts of data, where a regulated structure will only improve support
- Need in transactions
Deviating from the above, since this is a training project, it is better to practice again on a relational basis.
And for experience, make two projects on different bases, and feel the whole difference not in words, but in deeds.
It seems you are better off taking a relational DB.
I would look towards postgresql, but mysql is also possible
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question