D
D
Dmitry2012-08-30 12:07:13
Java
Dmitry, 2012-08-30 12:07:13

How to implement a resource-intensive tree in GWT?

Good day, I'm interested in solving the problem with the tree.
It is necessary that up to 10k nodes can be placed in the tree at the same level, now the browser is terribly slow, and the tree is formed for about 1 minute for 4k+ nodes, this is not acceptable, what are the solutions to the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
gricom, 2012-08-30
@gricom

Lazy loading. Those. show only the branch that the user is viewing, because he is still unable to view 4k nodes.

B
BiTHacK, 2012-12-22
@BiTHacK

I implemented it like this: at each level I displayed no more than 50 elements, if there are more than 50 elements, then 51m displayed a fictitious element [download more]. Potentially, if the required element is the last one on the level, and there are a lot of elements, then an inconvenient additional loading in portions is obtained, and in the end the same brake tree comes out. To solve this problem, you can filter the tree.

V
Vladimir Smirnov, 2013-07-12
@bobzer

As an option: try to look somehow differently at your tree. Understand what the user really wants to do. What I mean is that they have already said that it is unlikely that someone will look at such a huge tree. Maybe there is no need for a tree at all?
Example: catalogs in online stores are a tree whose leaves are products. A very common implementation - the tree is opened to the user until he reaches the leaves, and then the interface switches to a tabular view.
Or maybe your user does not need to sequentially go through the entire tree at all, maybe it is more convenient for him to enter some kind of filtering condition and make a through selection that does not depend on the level? In general, IMHO - there are no problems with the tree, but there are doubts about the correctness of setting the task you are implementing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question