S
S
Sergey Popov2018-04-18 21:54:07
MongoDB
Sergey Popov, 2018-04-18 21:54:07

What is the correct way to design a Mongo base?

Good evening!
There was a problem. I just can not unlearn from the relational approach to building a database. Tell me how best to design a many-to-many relationship in mongodb, taking into account the heavy load on it.
Task: there is an entity "user", conditionally, with _id and name. There is a news model, which has a title, text, photo. News is sent to users. It is necessary to associate news for each user in order not to duplicate the news for new users when resending.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Ivanov, 2018-04-24
@eastywest

If there are many-to-many relationships, then it is better to use tools suitable for this, for example, relational DBMS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question