On the nested set structure, once indices corrupt, it is difficult to correct them by hand.
But rebuild! is very expensive on large trees, as writtern in the source comment.
So I need the feature of "rebuild on a specific scope id."
This would be the expansion of rebuild! like rebuild!(scope_id: foo).
It rebuilds the tree indices under foo only.
This feature should solve inconsistency in a specific tree at less cost.
On the nested set structure, once indices corrupt, it is difficult to correct them by hand.
But
rebuild!is very expensive on large trees, as writtern in the source comment.So I need the feature of "rebuild on a specific scope id."
This would be the expansion of
rebuild!likerebuild!(scope_id: foo).It rebuilds the tree indices under
fooonly.This feature should solve inconsistency in a specific tree at less cost.