A
A
AntonKiya2020-01-02 23:59:05
MySQL
AntonKiya, 2020-01-02 23:59:05

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

3 answer(s)
I
Igor Makhov, 2020-01-03
@AntonKiya

Better take PostgreSQL, it just has an excellent driver for the node: https://node-postgres.com

I
Ilya Chubarov, 2020-01-03
@agoalofalife

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.

V
Vasily Bannikov, 2020-01-03
@vabka

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 question

Ask a Question

731 491 924 answers to any question