<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Storing hierarchical data in a database using ancestor tables</title>
	<atom:link href="http://bitdepth.wordpress.com/2009/03/06/storing-hierarchical-data-in-a-database-using-ancestor-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://bitdepth.wordpress.com/2009/03/06/storing-hierarchical-data-in-a-database-using-ancestor-tables/</link>
	<description>Thomas Rutter</description>
	<lastBuildDate>Wed, 30 Sep 2009 00:17:49 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: thomasrutter</title>
		<link>http://bitdepth.wordpress.com/2009/03/06/storing-hierarchical-data-in-a-database-using-ancestor-tables/comment-page-1/#comment-64</link>
		<dc:creator>thomasrutter</dc:creator>
		<pubDate>Sat, 07 Mar 2009 16:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://bitdepth.wordpress.com/?p=277#comment-64</guid>
		<description>Ah yep, I see. I didn’t know there was a name for it either, and kinda assumed that since I couldn’t find anything else on it, maybe it has another name.  If not, then I think ancestor tables is a good one ;)

I’ve added extra columns to my implementation of it to allow me to sort the results in various orders, ie to do things like “find all descendants of node A and order them by creation date”, all using the one index.  You could do this with a join and a sort afterwards.</description>
		<content:encoded><![CDATA[<p>Ah yep, I see. I didn’t know there was a name for it either, and kinda assumed that since I couldn’t find anything else on it, maybe it has another name.  If not, then I think ancestor tables is a good one <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I’ve added extra columns to my implementation of it to allow me to sort the results in various orders, ie to do things like “find all descendants of node A and order them by creation date”, all using the one index.  You could do this with a join and a sort afterwards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vlad</title>
		<link>http://bitdepth.wordpress.com/2009/03/06/storing-hierarchical-data-in-a-database-using-ancestor-tables/comment-page-1/#comment-62</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Sat, 07 Mar 2009 13:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://bitdepth.wordpress.com/?p=277#comment-62</guid>
		<description>Never knew there was a name for this method. I used it quite often.


My 2nd variant I use somethimes: nodeid, level, order 

node    level      order
0          0           0
1          1           1
2          2           2
3          1           3

.. and i build quickly a tree like..

0
.. 1
.. .. 2
.. 3

Not as good as the ancestor table but in some cases is useful.

Glad to know i&#039;m not the only one using ancestor tables.</description>
		<content:encoded><![CDATA[<p>Never knew there was a name for this method. I used it quite often.</p>
<p>My 2nd variant I use somethimes: nodeid, level, order </p>
<p>node    level      order<br />
0          0           0<br />
1          1           1<br />
2          2           2<br />
3          1           3</p>
<p>.. and i build quickly a tree like..</p>
<p>0<br />
.. 1<br />
.. .. 2<br />
.. 3</p>
<p>Not as good as the ancestor table but in some cases is useful.</p>
<p>Glad to know i&#8217;m not the only one using ancestor tables.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
