News for hackers. Stuff that matters.
Re:3 reasons to use MongoDB by mathias_10gen on Thursday September 09, 2010 @03:06PM (#1676481)
Actually it would probably be best to reverse the relation and put user_id's in the event objects. Then you can do queries like this:

    db.events.find({hosted_by: MY_ID})
    db.events.find({invited: MY_ID}) // invited is an array of users

There are no comments on this comment yet.