Can anyone advise me on how well the windows .net tree view control performs
when loaded with large numbers of nodes.
I'm intersted in how it might perform when used with possibly millions of
nodes.
At what point will the control be 'over-stressed'? 2 1689
Kevin -
I have a number of comments on this topic, having asked the same question
myself on several different occasions.
First of all the clear answer is NO. You would never want to load that many
nodes into the tree control. I remember clearly back in VB6 land that the
tree control would bog down after only adding several thousand nodes. I
think it's a bit better in .NET, but not much.
There are a couple of third party controls out there that are much better
designed to handle hundreds of thousands of nodes much faster.
BUT... all that having been said, I would turn this around on you, (as I did
to myself) and ask the question, "What are you thinking????" A MILLION
nodes? What kind of application requires the display of so many nodes at
once, and even if you could, do you really want your user having to go
through that many nodes to get where he or she wants?
Which direction are the millions of nodes? Is there a million nodes under
the root (vertical build) or does each node have ten nodes that has ten nodes
that has ten nodes, etc... (horizontal build)?
If it is a vertical build, I don't think a tree node is the right tool. If
it is a horizontal build, then I would recommend the solution I ended up
using and that is to only fetch the child nodes when the branch is
expanded... That way you are not wasting all those resources for all the
millions of nodes that will never get looked at.
Hope this helps! Good luck from a guy that's "been there, done that."
-Zorpy
Zorpiedoman,
Thanks for your reply and good advice.
I will have to reconsider the presentation of my data.
Kevin
"Zorpiedoma n" wrote: Kevin -
I have a number of comments on this topic, having asked the same question myself on several different occasions.
First of all the clear answer is NO. You would never want to load that many nodes into the tree control. I remember clearly back in VB6 land that the tree control would bog down after only adding several thousand nodes. I think it's a bit better in .NET, but not much.
There are a couple of third party controls out there that are much better designed to handle hundreds of thousands of nodes much faster.
BUT... all that having been said, I would turn this around on you, (as I did to myself) and ask the question, "What are you thinking????" A MILLION nodes? What kind of application requires the display of so many nodes at once, and even if you could, do you really want your user having to go through that many nodes to get where he or she wants?
Which direction are the millions of nodes? Is there a million nodes under the root (vertical build) or does each node have ten nodes that has ten nodes that has ten nodes, etc... (horizontal build)?
If it is a vertical build, I don't think a tree node is the right tool. If it is a horizontal build, then I would recommend the solution I ended up using and that is to only fetch the child nodes when the branch is expanded... That way you are not wasting all those resources for all the millions of nodes that will never get looked at.
Hope this helps! Good luck from a guy that's "been there, done that."
-Zorpy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tree menu using XML |
last post by:
I have one XML file that has nodes and sub node and each and every node has
the attribute call visible if its value is true then diplay this node else
don't display thid node, but this condition i am able to check using xpath in
asp.net 2.0 till MenuItem node. if i check visible attribute value till
SubMenuLevel0 node then in tree it will not display the MenuItem Node at all
Note: My tree Menu will start from MenuItem node and it will...
|
by: Christian Fowler |
last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres,
though may hop to oracle if necessary). The data is strictly hierarchical - each node has one, and only one
parent. The depth should not exceed 6 or 7 levels. The initial import will have about 6 million leaves, and
3 million branches. I would expect the leaves to grow significantly, in number easily tripling. However, the
branches will...
|
by: Jesper DK |
last post by:
Hi,
I have docked a tree view to the left on a form. When I
start to populate this tree view with nodes, a horizontal
scroll box appears in the bottom of the tree view even
though thee tree view is big largely big enough to fit
the nodes and text. If I widen the tree view the scroll
bar doesn't resize itself to show the relative view size
in relation to the total size. Only if I narrow the view
to not fit the nodes, the scroll box...
|
by: Saradhi |
last post by:
Hi All,
Here I am facing a performance problem with the TreeView Node renaming.
I am displaying a hierarchy Data in a treeview in my Windows C# Application.
My tree view represents an hierarchical view of Parent Nodes and projects where in a projectnode can be added to any ParentNode and hence we may have a project node added to 100 Parent nodes.
In this one, I have an operation of Renaming a Project Node. So whenever I am doing the...
|
by: dwok |
last post by:
Does anyone know of a good article that discusses creating a "Tree
View" control in ASP.NET? Or perhaps a Tree View Control that comes
with source code? I have come across a lot of tree controls for ASP.NET
however most of them are already compiled and don't come with source
code. I am really just looking for an example on how to create my own
Tree Control. Thanks a bunch.
| |
by: rinishrk |
last post by:
Hi,
I have a web application that contains subfolders Admin and User with
related webpages inside them. Within the Admin folder I have a page
containing a Tree View Control.I want this tree view to have nodes for
all pages in the website. However it seems that I cannot create child
nodes within this tree view for pages that exist outside the Admin
folder.(i.e.pags within the User folder or the Root folder ).It gives
me an errors stating...
|
by: gmail |
last post by:
Hi Friends,
Can any body suggest me on this.
I am working on .NET 2005 Frame work 2.0 . I am facing problem using the tree stucture. I created the site map.Now i want use the site map in every page
by keeping the tree structure in master page.
Note: tree structure is created success fully. Now i want it display the output in the iframe which is besides the tree structure. That tree structure should display in every page with out hard...
|
by: ursskmdali |
last post by:
Sorry for my unclear question.
Here is my problem description.
I want to know is there any possibility to implement Tree view , and assign all functionality to it i.e. copy, paste, add nodes, drag and drop. I don't want to use the built-in functions which are supported by the programming languages. I can write similar functions. Using these advanced controls/functions system performance will degrade this is the issue.
I have...
|
by: happy.john1234 |
last post by:
Hi, i am a new bie in programming.I am currently doing a project
that displays certain hierarchial set of data in tree view.I currently
implemented this tree view to be displayed in xml file which is one
of my requirement too.But, the point that i am confused is with
further processing.I have to move accross tree node to recover various
information related with each node like searching node replacing node
and extracting particular...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |