API
Version 7.x > API > TreeNode.Update() slow View modes: 
User avatar
Certified Developer v6
Certified Developer v6
Dave - 10/24/2013 2:59:29 PM
   
TreeNode.Update() slow
Hi,

I am noticing that calls to TreeNode.Update() take about 2.5 seconds each. This seems like longer than it should be. Are there any particular reasons for this, or things I can check?

Thanks!
Dave

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 10/25/2013 8:17:42 AM
   
RE:TreeNode.Update() slow
Do you have versioning, staging, or workflow setup? Those can all cause the process to be a bit slower than normal.

User avatar
Certified Developer v6
Certified Developer v6
Dave - 10/25/2013 10:53:21 AM
   
RE:TreeNode.Update() slow
Hey FroggEye,

I do, and unfortunately I need all of them. Are you aware of any properties on the Node or TreeProvider that will slim down the amount of code being run?

Thanks!
Dave

User avatar
Kentico MVP
Kentico MVP
Brenden Kehren - 10/25/2013 3:14:41 PM
   
RE:TreeNode.Update() slow
Lets step back a bit, what are you doing or need to do? Maybe an alternative would work.

User avatar
Certified Developer v6
Certified Developer v6
Dave - 10/25/2013 3:48:27 PM
   
RE:TreeNode.Update() slow
I may have found the cause. The app was using DocumentEvents to execute additional code before and after the Update.