From: George Moschovitis Date: 2004-10-08T21:29:44+09:00 Subject: Re: [ANN] ndb Object-Relational Mapper > > Yep. The trouble with just having a child/parent link is that it's very > inefficient to do a search which is limited to all nodes within a subtree, ... anyone wants to play. > Have a look at the SqlTreeTraversable Mixin in the file n/db/mixins.rb If you include this mixin in your managed Object you can efficiently serach in subtrees. This mixin implements the common Preorder Tree Traversal SQL pattern. Is this what you are looking for? regards, George Moschovitis -- www.navel.gr | tel: +30 2106898050 | fax: +30 2106898437 Navel does not accept liability for any errors, viruses or omissions in the contents of this message. The full corporate policy is available on our site. have fun: www.joy.gr