Hybrid View
-
13 Apr 2008 5:24 AM #1
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.
-
13 Apr 2008 9:36 AM #2
How many records total? Why not just reload from server after deletion from server?
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
14 Apr 2008 1:48 AM #3
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
-
14 Apr 2008 3:58 AM #4
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).MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
15 Apr 2008 12:44 AM #5
-
6 Jun 2012 7:46 PM #6
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
.



Reply With Quote