[CLOSED] TreeStore-Node commit is exceptionally slow

  1. #1

    [CLOSED] TreeStore-Node commit is exceptionally slow

    Hi,

    We are having issues with node's commit method, we have a complex screen that has 8 TreeStores bound with 8 TreeGrids. These treegrids allow editing and on each cell-edit certain calculation takes place.

    These calculation spans through multiple treestores, hence we have to commit each node post calculation so that the bound tree-grid shows the changes.

    We have realized that committing each node consumes lots of time, earlier we were suspecting that the find operation is eating up time but lots of debugging with messages proved that the commit operation takes most of the time (we also tried using set method but that is even slower). How can we speed this up?

    What have we tried so far?
    1) Wrapped the commit between suspendEvent and resumeEvent, this brought a little respite but still its pretty slow.
    2) Refreshed View instead of commit so that the view reads the store and shows the result but this deteriorated the performance.

    Is there a better way to approach this requirement?

    Any help will be greatly appreciated!

    Cheers,
    Avi
    Last edited by Daniil; Apr 20, 2014 at 3:54 PM. Reason: [CLOSED]
  2. #2
    Hi @asolvent,

    Please try the following:
    Ext.suspendLayouts();
    /* operate with the nodes */
    Ext.resumeLayouts(true);

Similar Threads

  1. [CLOSED] TreeStore with IHierarchicalDataSource
    By bbros in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 26, 2013, 9:25 AM
  2. [CLOSED] there is no remove method in treestore?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 23, 2013, 6:20 AM
  3. [CLOSED] TreeStore issue with 2.2
    By paulc in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 19, 2013, 9:24 AM
  4. Replies: 3
    Last Post: Apr 10, 2013, 4:05 AM
  5. [CLOSED] [1.0] Tree node reload is very slow
    By acrossdev in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Oct 28, 2010, 8:48 AM

Tags for this Thread

Posting Permissions