acts_as_tree leads to high CPU occupied?

I believe acts_as_nested_set can get the entire tree with one SQL
statement.