angular-treetable icon indicating copy to clipboard operation
angular-treetable copied to clipboard

Large data creates loading problem

Open himanshu-patidar opened this issue 8 years ago • 3 comments

Hi, I am using this library and it is great. I have one problem in it. I have a large amount of data and once loaded in DOM it hangs the browser. In this we are using two way binding. Is there any other way we can skip two way binding as output data is just a report.?

himanshu-patidar avatar Aug 19 '15 12:08 himanshu-patidar

Even i am facing this issue. Any updates?

aneeshwp avatar Aug 21 '15 17:08 aneeshwp

You can do one-way binding for data in your templates, but I doubt you'll get a measurable performance improvement form that.

It would help if you could answer the following questions:

  1. Can you give me some sense of the size of the tree you're using? How many nodes are on the branch being opened?
  2. Do you use initialState: 'expanded' in opts?

It looks like a more performant solution would likely need changes in this library and the original jquery one, but answers to the above questions would help.

Thanks

garrettheel avatar Aug 31 '15 15:08 garrettheel

My tree size is quite large. As my tree structure is like I have mainly four categories under each there can be sub-categories. In each categories/sub-categories there can be any number of nodes which shows some details.

By default I have used initialState: 'collapsed' in opts. As users clicks on categories and sub-categories its details are shown. Suppose in my tree there a sub category say A has 200 nodes in it which shows there details respectively. Once I click on sub category, it takes a lot of time to load all 200 nodes under that sub-category.

himanshu-patidar avatar Sep 07 '15 04:09 himanshu-patidar