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 "How to store hierarchical data" by PeterMonks
Date Wed, 18 Feb 2009 18:51:04 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 PeterMonks:
http://wiki.apache.org/couchdb/How_to_store_hierarchical_data

The comment on the change is:
Attempted to clarify the text concerning UUID / numeric _ids.

------------------------------------------------------------------------------
  ]
  }}}
  
- In a real system you'd probably want to use some sort of UUID instead of descriptive strings,
since conflicts between node names could be bad. In fact, it'd probably be much faster to
just use numbers, since comparisons on numbers are generally much faster. For the purposes
of this example, however, it's much easier to understand if it's descriptive text.
+ In a real system you'd probably want to use some sort of UUID for the _id field rather than
descriptive strings, since conflicts between node names could be bad. In fact, it'd probably
be much faster to just use numbers, since comparisons on numbers are generally much faster.
For the purposes of this example, however, it's much easier to understand if the _id is descriptive
text.  For the purposes of displaying the path for a particular document, however, it will
generally be easier to store (at least) the descriptive name of each path element in the path
array, as shown here.
  
  Once that data is in your DB, it's time to get it out again!
  

Mime
View raw message