Sign in or 

|
rrees |
Latest page update: made by rrees
, Jun 5 2009, 1:41 PM EDT
(about this update
About This Update
33 words added view changes - complete history) |
|
More Info: links to this page
|
| Started By | Thread Subject | Replies | Last Post | ||
|---|---|---|---|---|---|
| rrees | CouchDb Question | 0 | Jun 6 2009, 9:17 AM EDT by rrees | ||
|
Thread started: Jun 6 2009, 9:17 AM EDT
Watch
During the evening I answered a question saying that you can query historic revisions of documents in Couch. This answer was the right one, the map-reduce is done over the latest revisions of documents.
A more detailed explanation of dealing with historic revisions will be appearing in the CouchDb wiki but for now the brief answer is that if the data is relevant you should store it under a different key in the document (for example Surname and Maiden Name), taking advantage of the schema-less nature of the data or you should separate the historic data into another document and then link via the id of the document representing the previous information. This would then allow you to work back to the main document. For example for addresses you could store each person's address in a different document and then have an array field in the main document that holds the ids of previous addresses in historic order. You can go to the CouchDb IRC channel to discuss the issue in more detail. |
|||||
|
|
webunconventions_felix.ppt (Powerpoint Presentation - 1,122k)
posted by rrees Jun 5 2009, 1:44 PM EDT
Felix Leipold's Slides talking about DRY in webdevelopment
|