I have a Mongo database.
I have two collections:
The user sends a message, but the question is here. Which way is better?
In the first method, we need to get user information from the USERS collection.
In the second method, we need to update all the message data that was sent by the user Only when the user updated the profile information.
What's better?
MongoDB.
.
MongoDB. , , :
1- ,
2-, ( )
, :
a) nr () ? (, )
b) nr ? (, )
c) ()?
- MongoDB. nr nr , , , . , , mongodb .
# 1, , . , .
№2, , , , . . , , . , , , , ( _id), , .
, , , , , - # 2 .
, , .
, , , .
, .
Source: https://habr.com/ru/post/1664851/More articles:Android gets video file size from gallery - androidWhy does this form not violate the type signature for `$`? - haskellLinux: how to change the maximum number of files that a process can open? - linuxasync mvvm freezes GUI - asynchronousThe difference between the sheets - c ++Background color using array and object for reversible repeatable div - javascriptПредупреждение о вызове overridable auto-property при использовании дженериков - genericsWhy is CA2214 warning not allowed if the private override method is common? - genericsExtend mysqli_result - whether it uses store_result () or use_result () - phpHow to programmatically restart webpack dev server (is the close method simply broken?) - webpackAll Articles