MongoDB: embedding performance question

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2011-01-03T07:47:34Z Indexed on 2011/01/03 7:53 UTC
Read the original article Hit count: 242

Filed under:
|
|

I just started learning MongoDB, and I really like the idea of embedding collections instead of referencing them.

MongoDB's documentation recommends to use embedding if performance is needed.

I just thought about a simple forum model. Let's say, every board category has several boards, every board has several topics, and every topic has several messages. All of these collections are embedded.

After some time the size of the board category will be huge. Way more than the 2MB limit. Does this mean that there's a flaw in this design?

© Stack Overflow or respective owner

Related posts about Performance

Related posts about mongodb