couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "EntityRelationship" by WoutMertens
Date Mon, 13 Apr 2009 18:47:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by WoutMertens:
http://wiki.apache.org/couchdb/EntityRelationship

------------------------------------------------------------------------------
  = Modeling Entity Relationships in CouchDB =
  
- This page is mostly a translation of http://code.google.com/appengine/articles/modeling.html
in CouchDB terms.
+ This page is mostly a translation of http://code.google.com/appengine/articles/modeling.html
in CouchDB terms. I (WoutMertens) am mostly happy with it but it could use more code examples
and more examples of actual output. Since this is a wiki, feel free to update this document
to make things clearer, fix inaccuracies etc.
  
  == Why would I need entity relationships? ==
  Imagine you are building a snazzy new web application that includes an address book where
users can store their contacts. For each contact the user stores, you want to capture the
contacts name, birthday (which they mustn't forget!) their address, telephone number and company
they work for.
@@ -175, +175 @@

  }
  }}}
  
- You would use this method when there is potentially a large number of contacts in a group
'''and''' a large number of groups. In that case embedding a list of keys could result in
huge documents.
+ You would use this method when there is potentially a large number of contacts in a group
'''and''' a large number of groups. In that case embedding a list of keys could result in
huge documents so we have to resort to writing out the list in many documents.
  
  If you then want to know who is in a group you'll need to use the view
  {{{

Mime
View raw message