couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Aljord" <>
Subject when to use another document and when not to?
Date Mon, 14 Jul 2008 22:46:56 GMT
Hey all,

I'm playing with couchdb and I'm wondering when should I just use
another field in the doc or another doc.

Say, I have users, each user can follow many users. Should I put all
the followed users in a field of each user doc (as an array)  or
should I create a Follower doc with the id of the followed user and
the id of the follower user.

What's the general "rule" if there is one to know when it's best to
use a separate doc and when not to?

Thanks in advance


View raw message