DEV Community

Cover image for Mongoose 101: Population

Mongoose 101: Population

Zell Liew 🤗 on January 02, 2020

MongoDB documents have a size limit of 16MB. This means you can use subdocuments (or embedded documents) if they are small in number. For example,...
Collapse
 
manuelgu profile image
Manuel

Thanks for the great post. The document size for the blog post can exceed nonetheless, can't it? It no longer stores the full comment - but a reference. If there are too many references (too many IDs of all comments) the document size will exceed 16MB. Or does MongoDB handle the embedded documents in a different way?

Collapse
 
mohamednossair profile image
Mohamed Nossair

Thanks great post