L
L
LXSTVAYNE2021-06-24 15:54:00
MongoDB
LXSTVAYNE, 2021-06-24 15:54:00

What is the correct way to use Mongodb in this task?

Hello! I want to write an application that will store lectures in its database. I divided the structure of the base like this: Faculty -> Level of higher education -> Course -> Subject -> All lectures on this subject. (*) I want to be able to get data like this: For example, all faculties or all subjects for the selected faculty, higher level and course. In Mongodb, I have to create a collection of lectures, and each lecture will, in addition to some of its fields, have the fields Faculty, Level of higher education, etc. .. ? If so, how to do (*) , create separate collections for them ? How will it be in terms of speed? Maybe I'm misunderstanding something?

Block diagram:
60d499f461d42021327986.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question