K
K
Konstantin2020-12-03 23:18:44
MongoDB
Konstantin, 2020-12-03 23:18:44

Where is the best place to store order history?

Where is it better to store the order history, next to the product itself as embedded, or create a separate document?

As I know, there are two types of links in mono, an embedded document and a link. What confuses me is that if the user orders several products at the same time. In the case of embedd, order information is duplicated in each product document.

Thanks for your opinions!

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