Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
    Gucky is on a distinguished road

      0  

    Default create and destory grid and store.load to fill will get slower at each iteration

    create and destory grid and store.load to fill will get slower at each iteration


    I am creating a tab with a panel and a grid inside it. It gets filled from the DB. The first time, its very fast, about 2 seconds. now each time I destroy the grid, remove the tab and than recreate the tab with the same grid, same data, the system slows down adding about 1 second. Using the profiler I can see that the number of calls within EXTJS increases by about 40000 ! on each create. The data are displayed within a second but the loading mask will not go for a while. This is the same behaviour in 4.1.0 and 4.1.1. Is that a known problem ?
    According to the profiler, its the following piece of code that gets called thousands of times:
    isModified : function( fieldName) {
    return this.modified.hasOwnProperty( fieldName);
    }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,916
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This should not be happening .. if you have autoDestroy set to the default true, this should be handled automatically.

    Scott

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
    Gucky is on a distinguished road

      0  

    Default


    I have not changed any of the defaults, below a few lines of code if that helps:

    ......
    Code:
            var overviewGrid = new Ext.grid.GridPanel ({
                id            : 'overviewGrid' + id,
                autoHeight    : false,
                autoWidth     : true,
                columns        : overviewColumnModel,
                store        : tomcatOverviewStore,
                loadMask    : true,
                features    : [filters],
                autoExpandColumn : 'managedBy'            
            });
           tomcatOverviewStore.load();     
       
            tabs.add({
                title        : recName ,
                id            : id,
                closable    : true,
                border        : false,
                iconCls        : 'icon-' + recKey,
                items        : overviewGrid,
                autoScroll    : true            
            }).show();    
    
            Ext.getCmp( id ).on( 'close', function() {
                releaseToolbar(); // Just deactivate some menu items
            });
    .....
    I could provide you with more details if you let me know what is useful to you

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi