G
G
Gimir2019-06-17 11:26:50
MongoDB
Gimir, 2019-06-17 11:26:50

How to make DB structure in MongoDB?

Good day!
There are groups of "dictionaries", each dictionary has a set of words.
What is the best way to build a database if I need to store and modify data?
What is the best way to do this:
- store groups and dictionaries in different collections and in dictionaries write the ID of the group to which it belongs;
- store both groups and dictionaries and words in one collection in the form: group>arrayFromDictionaries>dictionary>arrayFromWords;
- another variant...

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