Answer the question
In order to leave comments, you need to log in
How to properly design a database for such a task?
Hello. The task is something like this:
There are 4 sites from which I receive news. There is a user who enters keywords. And every time the news arrives, I must send a link to it to the user if:
1) he indicated this site in the subscriptions
2) in the description of the news there is at least one keyword indicated by him.
And I can not understand how to design a DB in any way. If you take MongoDB, then something like this:
User = {
email: "[email protected]",
sites: ["ya.ru", "google.com"],
keys: ["spirt", "sport", "music"]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question