<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Storing Hierarchical Data in CouchDB</title>
	<atom:link href="http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/</link>
	<description>It&#039;s what I&#039;m doing, and what posts on this blog are about.</description>
	<lastBuildDate>Sat, 05 Jun 2010 21:26:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-28195</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-28195</guid>
		<description>&lt;p&gt;Thanks for the good example. I tried to figure it out on my own before and the missing bit was the endkey syntax of [&quot;foo&quot;, {}]. What exactly does it mean? Where can I get more information about how startkey and endkey are compared to the actual keys?&lt;/p&gt;

&lt;p&gt;Thanks,
Michael&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the good example. I tried to figure it out on my own before and the missing bit was the endkey syntax of ["foo", {}]. What exactly does it mean? Where can I get more information about how startkey and endkey are compared to the actual keys?</p>

<p>Thanks,
Michael</p>]]></content:encoded>
	</item>
	<item>
		<title>By: pib</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-21178</link>
		<dc:creator>pib</dc:creator>
		<pubDate>Sun, 27 Dec 2009 09:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-21178</guid>
		<description>&lt;p&gt;I&#039;d say write up a quick script that loads as many ducuments as possinble into memory (within reason), and then does bulk inserts to put them in CouchDB. Since it will be your initial import, I&#039;d suggesting using batch mode, too, since you don&#039;t need data safety until you&#039;ve actually got something up and running.&lt;/p&gt;

&lt;p&gt;Check out the sections here on bulk inserts and batch mode: http://books.couchdb.org/relax/reference/high-performance&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;d say write up a quick script that loads as many ducuments as possinble into memory (within reason), and then does bulk inserts to put them in CouchDB. Since it will be your initial import, I&#8217;d suggesting using batch mode, too, since you don&#8217;t need data safety until you&#8217;ve actually got something up and running.</p>

<p>Check out the sections here on bulk inserts and batch mode: <a href="http://books.couchdb.org/relax/reference/high-performance" rel="nofollow">http://books.couchdb.org/relax/reference/high-performance</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: HariKrishnan</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-21174</link>
		<dc:creator>HariKrishnan</dc:creator>
		<pubDate>Sun, 27 Dec 2009 08:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-21174</guid>
		<description>&lt;p&gt;Hey,&lt;/p&gt;

&lt;p&gt;Nice article. I really would like to apply this, but the trouble is how would we get this data into couch db in the first place.
Lets say we have a lot of data in a self-referential table of a legacy system. I was wondering what would be the most efficient way to pull this information into couchDb.&lt;/p&gt;

&lt;p&gt;Thanks,
HariKrishnan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey,</p>

<p>Nice article. I really would like to apply this, but the trouble is how would we get this data into couch db in the first place.
Lets say we have a lot of data in a self-referential table of a legacy system. I was wondering what would be the most efficient way to pull this information into couchDb.</p>

<p>Thanks,
HariKrishnan</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Orr</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-19714</link>
		<dc:creator>Nicholas Orr</dc:creator>
		<pubDate>Wed, 09 Dec 2009 00:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-19714</guid>
		<description>&lt;p&gt;It took me a little bit to apply the information in this post - however having played a bit it all makes sense and has saved me a bit of time.&lt;/p&gt;

&lt;p&gt;The issue with using the doc uuid&#039;s is they are too long for the reduce functions offered above. I&#039;ve managed to do everything I need from the map functions so that is good.&lt;/p&gt;

&lt;p&gt;Thanks a lot for the information :)&lt;/p&gt;

&lt;p&gt;Nick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>It took me a little bit to apply the information in this post &#8211; however having played a bit it all makes sense and has saved me a bit of time.</p>

<p>The issue with using the doc uuid&#8217;s is they are too long for the reduce functions offered above. I&#8217;ve managed to do everything I need from the map functions so that is good.</p>

<p>Thanks a lot for the information <img src='http://probablyprogramming.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>Nick</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Helder Ribeiro &#8212; Second steps with CouchDB: Playing with hierarchical data</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-7548</link>
		<dc:creator>Helder Ribeiro &#8212; Second steps with CouchDB: Playing with hierarchical data</dc:creator>
		<pubDate>Tue, 19 May 2009 19:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-7548</guid>
		<description>&lt;p&gt;[...] had seen this blog post about how to store hierarchical data in CouchDB and decided to play with the example data and views the guy provided (big thanks to Paul Bonser!). [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] had seen this blog post about how to store hierarchical data in CouchDB and decided to play with the example data and views the guy provided (big thanks to Paul Bonser!). [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Helder</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-4895</link>
		<dc:creator>Helder</dc:creator>
		<pubDate>Thu, 29 Jan 2009 09:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-4895</guid>
		<description>&lt;p&gt;Hey, thanks for the great example! The part about selecting descendants was kinda tricky and I didn&#039;t really figure out what it was doing until I ran it myself on Futon (I was thinking the start/end keys would select the doc &lt;em&gt;before&lt;/em&gt; passing it to the map function). I ended up noticing that what you get indeed is the sub-tree, &lt;em&gt;including&lt;/em&gt; the sub-tree root. So if you really only want to get the &lt;em&gt;descendants&lt;/em&gt; then you have to exclude the self, like this (forgive my poor, unoptimized js):&lt;/p&gt;

&lt;p&gt;function(doc) { 
    for (var i in doc.path) {
        if (i &lt; doc.path.length -1) {
        emit([doc.path[i], doc.path], doc) 
    } }
}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the great example! The part about selecting descendants was kinda tricky and I didn&#8217;t really figure out what it was doing until I ran it myself on Futon (I was thinking the start/end keys would select the doc <em>before</em> passing it to the map function). I ended up noticing that what you get indeed is the sub-tree, <em>including</em> the sub-tree root. So if you really only want to get the <em>descendants</em> then you have to exclude the self, like this (forgive my poor, unoptimized js):</p>

<p>function(doc) { 
    for (var i in doc.path) {
        if (i &lt; doc.path.length -1) {
        emit([doc.path[i], doc.path], doc) 
    } }
}</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Daily Digest for 2008-11-21 &#124; Pedro Trindade</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-3854</link>
		<dc:creator>Daily Digest for 2008-11-21 &#124; Pedro Trindade</dc:creator>
		<pubDate>Sat, 22 Nov 2008 08:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-3854</guid>
		<description>&lt;p&gt;[...] PIBlog » Blog Archive » Storing Hierarchical Data in CouchDB [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] PIBlog » Blog Archive » Storing Hierarchical Data in CouchDB [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: CouchDB resources &#124; Tech Mix</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-2453</link>
		<dc:creator>CouchDB resources &#124; Tech Mix</dc:creator>
		<pubDate>Fri, 03 Oct 2008 10:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-2453</guid>
		<description>&lt;p&gt;[...] General Discussion:CouchDB - Use caseCouchdb Joins by Paul Joseph DavisCouchDB Joins by Christopher LenzStoring hierachical data in CouchDB [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] General Discussion:CouchDB &#8211; Use caseCouchdb Joins by Paul Joseph DavisCouchDB Joins by Christopher LenzStoring hierachical data in CouchDB [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-1321</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 09 Jul 2008 19:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-1321</guid>
		<description>&lt;p&gt;Ok, I kinda &quot;embelished&quot; (w/o knowing it).
It did work but then I browsed away and came back and it throws the error again...
Close though!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ok, I kinda &#8220;embelished&#8221; (w/o knowing it).
It did work but then I browsed away and came back and it throws the error again&#8230;
Close though!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/comment-page-1/#comment-1320</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Wed, 09 Jul 2008 19:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://probablyprogramming.com/?p=81#comment-1320</guid>
		<description>&lt;p&gt;Sorry to anyone else learning from examples as I am, that last line of code should have &quot;GOOG&quot; as being quoted.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry to anyone else learning from examples as I am, that last line of code should have &#8220;GOOG&#8221; as being quoted.</p>]]></content:encoded>
	</item>
</channel>
</rss>
