- Blogory (473)
Here are my plans for managing a fancytree filter with 10K+ nodes.
I already run 1600 nodes, and it is growing fast to 10,000 or more.
For background, every node in the tree represents a different web page on a different subject. Initially I only show a node, its parents and children. Siblings of parents are hidden. During search more of the tree is shown.
So I want to take a different approach. Instead of loading a json tree, I want to serve a list of json nodes with parent node names. For server performace, I cache that list on the server whenever it is edited.
Meanwhile, in In the background I will load the complete list of nodes. As each node is downloaded, it is created. If a node has already been created, there will be duplicates, so I have to test for that.
So I will serve the initially visible nodes, then load all the nodes in the background. If a filter happens, apply the filter to the loaded nodes, and to all the new nodes as they are loaded.
I think that this approach should allow me to serve and filter 10K nodes comfortably, without the user realizing that they are being downloaded in the background.