Active Records Tree Cache


#1

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


#2

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.