by gg2222 · 5y ago · 0 comments
Do you first query the root to see it's content blocks, then make additional queries to load the root's children block, then make additional queries to get those blocks children blocks (ie. recursively) until there are no more children?
Does that result in too many database queries? Or do you have other ways to optimize it?
[1] https://en.wikipedia.org/wiki/Hierarchical_and_recursive_que...