Portal Engine
Version 3.x > Portal Engine > TreeHelper performance View modes: 
User avatar
Member
Member
Geert - 9/25/2008 3:16:01 AM
   
TreeHelper performance
When I use the SelectSingleNode function from the TreeHelper class, it takes 5 to 10 seconds to retrieve the node. Is there a way to improve the speed of this process?

string aliasPath = "somePlace/someHouse/someRoom";
CMS.CMSHelper.TreeHelper.SelectSingleNode(aliasPath, true);

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/25/2008 7:31:25 AM
   
RE:TreeHelper performance
Hi,

Are you getting any results from this? The alias path should start with "/" sign.

Could you please provide us with more details:
- how big is your site?
- how many documents do you have in your web site?
- what version of CMS are you using?

Thank you in advance.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Geert - 9/25/2008 7:37:48 AM
   
RE:TreeHelper performance
I have about 45 nodes in my tree and 4 small test documents. Kentico v3.1a.

This performance issue is not always a problem. It just happens sometimes. When I watch the task manager for performance, my cpu load is about 4%.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/26/2008 7:39:40 AM
   
RE:TreeHelper performance
Hi,

If it happens only sometimes, it is possible that the project is actually re-builded. This is ensured by configuration in web.config file that after some number of changes the project is recompiled and restarted (<compilation debug="false" numRecompilesBeforeAppRestart="100">).

Best Regards,
Juraj Ondrus