A
A
Asikov Artur2018-03-07 15:56:11
MongoDB
Asikov Artur, 2018-03-07 15:56:11

How to design a database in mongoDB?

Briefly about the structure of the site: there are 5 sections, each section has 10-15 subsections, each subsection has up to 10 topics.
Each topic is assigned an article, each article has a short test of 10 questions. The article and the test for this article are displayed on a separate page together.
How is that an option?
Razdel = {
subrazdelu: [{"theme1", "article1", [test1] }, {"theme2", "article2", [test2] }, {"theme3", "article3", [test3] }],
}
It is confusing that a massive, hard-to-manage structure is obtained, tk. articles can have up to 2000-3000 characters, and tests also have a massive structure.
How would all this be correctly put into mongodb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-03-07
@dimonchik2013

NoSql programmers went to the bar, but did not find any tables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question