i wonder if we could alternatively recalculate the depth in sql instead of loading all nodes from the db for this. moving a large subtree will be quite expensive like this. or at least calculate the delta and then update all affected childs simply in sql.