Hybrid View

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    131
    Vote Rating
    0
    yazan_rababa is on a distinguished road

      0  

    Cool i want deleting 200 of rows or more from a data store

    i want deleting 200 of rows or more from a data store


    i want deleting 200 of records or more from a data store
    please i want deleting 200 of rows or more, the problem is that i am using for loop then giving the record to the remove(record) function so it is too slow.

    var records = sm2.getSelections();
    symbolsGrid.stopEditing();
    for (var i=0; i<records.length; i++) {
    comboDsTick.remove(records[i]);
    }

    remove function is using search to the given record then deleting itl
    so i think there is 200*200 checks for the record to delete itl
    if we used insert to 200 of records it is quickly processed.
    is there a faster way to delete the records.
    thank u.

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    How many records total? Why not just reload from server after deletion from server?

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    131
    Vote Rating
    0
    yazan_rababa is on a distinguished road

      0  

    Default


    thanks for the quick reply.

    the user can delete a single record or all of the records(over than 200 of records) i dont want making the server reloading all of the records each time that the user deleted one record or more.
    kind regards

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Well, you could try it and see if it improves the perception of the time issues you've stated.

    If that helps any, then you could add logic to reload store if number of records removed is greater than X (where X is 50, 100, or 50% or whatever).

  5. #5
    Ext User
    Join Date
    Apr 2008
    Posts
    131
    Vote Rating
    0
    yazan_rababa is on a distinguished road

      0  

    Default


    thanks mj

  6. #6
    Sencha User
    Join Date
    May 2012
    Posts
    1
    Vote Rating
    0
    tai.tran is on a distinguished road

      0  

    Default Same problem, any solution ?

    Same problem, any solution ?


    I have same problem. I want to delete a lot of row about 1000 or more.
    But i can't commit the change until the user click "Save" button.
    Does anybody have any ideas ? Thanks.

Thread Participants: 2

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..."