In the MongoDB page: http://www.mongodb.org/display/DOCS/Inserting
doc = { author: 'joe',
created : new Date('03/28/2009'),
title : 'Yet another blog post',
text : 'Here is the text...',
tags : [ 'example', 'joe' ],
comments : [ { author: 'jim', comment: 'I disagree' },
{ author: 'nancy', comment: 'Good post' } ]}
db.posts.insert(doc);
db.posts.find( { "comments.author" : "jim" } )
Is it true that when comments is more than 4MB, then this document won't work? We can say, it is hard for it to be more than 4MB, but I guess a system will be a little bit limited if it is limited to the size or number of comments like this. If it is relational model, then there is no such limit except mostly for the disk space.
Or is there another way to handle the comments so that it can be any size?