Hi, I have a model that uses acts_as_tree option to manage a tree structure in the database. Is it possible to fetch the entire tree with constant number of database calls and cache the tree in memory? Thanks! Bob -- Posted via http://www.ruby-forum.com/.
Bob wrote:> Hi, > > I have a model that uses acts_as_tree option to manage a tree structure > in the database. Is it possible to fetch the entire tree with constant > number of database calls and cache the tree in memory?I *think* you''re going to need acts_as_nested_set rather than acts_as_tree if you want a constant number of database calls. -- Alex