Keep code connections in MongoDB

What is the best solution for keeping left connections in NoSQL solutions like MongoDB / Norm, if you cannot change the complete architecture of a single cms. Experience, samples, cost.

Thanks.

+1
source share
1 answer

I can offer two ways:

  • Create large documents, I mean a combination of two, three, ten entites into one. Therefore, if, for example, you have a link to many, and you know that many are not more than 100 for most cases, you can combine these objects into one.
  • Create "denormalized" documents with the data you need in problem areas. Therefore, instead of any connections, only one document is downloaded.
0
source

Source: https://habr.com/ru/post/956367/


All Articles