MartinWittemann wrote:
> 
> Christians idea of converting native objects on runtime to Model objects:
> Sounds like a good idea in the first place but I think that the problem
> here is, that we need to know the moment when there is the need of
> converting. Maybe the time it is rendered but imagine a fast scrolling
> user... scrolling could get really sloppy in that case and thats even
> worse than waiting a few seconds for the nodes to be created.
> 

Maybe the problem needs to be solved by a "prefetching" strategy. There are
two scenarios:

1) We need to show the root nodes only: We need to load only the first 100
nodes or so that are direct children and grandchildren of the root node.
When the user openes a node, this specific node is populated further by
pulling more raw data and adding to the model.

2) We need to show a specific node: The remote data model must know how to
retrieve all nodes leading up to this node, whereever it is placed in the
tree structure. We need to load all these nodes, plus a specific number of
nodes in the context of this branch. 

Alternatively, the whole tree could be loaded in chunks. I have an
implementation of this here:

http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/qcl/trunk/source/class/qcl/ui/treevirtual/TreeView.js?revision=20861&view=markup

See lines 540-, in particular 585 seqq. (_loadTreeData method).

To save load time, the server sends a "transaction id" when it sends the
number of nodes in the tree. If the transaction id is the same, the tree
data is loaded from a browser-side cache instead of being fully reloaded. 

Maybe this can serve as an inspiration.

C. 
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/virtual-tree-and-lots-of-data-tp6040890p6051750.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to