One-time Large Data Loading
[ File Path: bigdata/common.html ]
- Adjust the total number of nodes to the test load speed:
1, Explanation of large data load
- 1) zTree v3.x optimized for one-time large data loading capacity, using a lazy loading technique, which does not expand the node does not create child nodes of the DOM.
- 2) If a maximum of 100 nodes each, but a total number of several thousand or even tens of thousands of nodes, and the parent node is collapsed by default to optimize the most obvious effect, very fast.
- 3) For the next level there are thousands of sub-node case, the optimization of lazy loading is invalid, proposal to consider asynchronous page loading.
- 4) if you set the data to all the parent nodes are expanded, the optimization of lazy loading is invalid, proposal to not expand all parent node when you initialize zTree.
- 5) set the display checkbox / radio will affect some of the performance.
- 6) DOM generated using addDiyDom function will affect the speed, the number of nodes determines the number of impact situations.
- 7) Using 'onNodeCreated' callback function to manipulate nodes object will affect the speed, the degree of influence determined by the number of nodes.
2, Explanation of setting
- No special configuration.
3, Explanation of treeNode
- No special requirements on the node data, the user can add custom attributes.