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
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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs