I have hierarchical data. The most common queries will be “get the parent branch for node” and “get the subtree node”. Updates and inserts are unlikely to occur frequently. I choose between nested sets and hierarchy. As far as I know, searching in a nested set should be pretty fast for indexed columns, however, I have no idea about the internal implementation of the hierarchy. What should be used for maximum performance?
Vasaka
source share