# Loading Data in Batches

###### [ File Path: bigdata/diy_async.html ]

- Demo for testing load data in batches, each node needs to re-start to load.

- ## 1, Explanation of large data load

  - 1) If has nodes for as many as thousands in one level, lazy loading is invalid, this demo shows how to load data in batches.
  - 2) This method applies to thousands of nodes must all display needs.
  - 3) This method doesn't solve the problem of slow loading, it will only make the final result appear more slowly, but can be limited to avoid browser suspended animation, and more nodes displayed slower.
  - 4) For at least several thousand nodes in one level case, another solution is to: pagination loading.
    async load log:

- ## 2, Explanation of setting

  - Need to set the parameters in setting.async
  - Advised to turn off animation effects: setting.view.expandSpeed = "";
  - No other special configuration, the user can set their own requirements.

- ## 3, Explanation of treeNode

  - No special requirements on the node data, the user can add custom attributes.