Should we use dbref or an embedded document in a read-only application

We are developing an application that is difficult to read and can have millions of documents. We need to access user information in almost every collection. User information has some attribute that may change from time to time.

Should we use DBref or embed user information in all collections?

How bad is DBref performance in a heavy readable application?

If we do not use DBref, how can we update each document if user information changes periodically?

In Mongodb, is there an alternative for DBref and inline documents for this kind of use?

+5
source share
1 answer

DBref . , ( ) . . DBRef.

, (), . , _id . , , DBrefs, . , _id , , , .

( ) , MongoDB ( ), . , , ( ).

, mongodb. , db.

+6

All Articles