Re: acts_as_tree

Ilan Berci
Wed, 05 Aug 2009 17:43:55 -0000

Marnen Laibow-Koser wrote:

>
> That''s pretty inefficient on a tree of any size, at least if
you''re
> doing a DB query each time instead of loading the whole tree into
> memory.
>

Very true!  However, if only a couple of branches will be opened for a
given tree and the branches will be opened via an AJAX call then the
performance will most likely be better than retrieving the whole tree
into memory initially and then trucking it across the wire.. depends
upon the situation I guess...

Anyways, question smelled like a homework assignment so I didn''t reason
on performance..

ilan