[CLOSED] Performance. Live row add
I am facing performance issue if I want to add data in store in specific time intervals .For example
Code:
lateBind: function (data) {
var rec = 0;
var grdStore = Ext.getStore('storeLiveSetData');
console.log('late binding');
bindIntervalId = window.setInterval(function () {
if (rec < data.length) {
grdStore.add(data[rec]);
Ext.getCmp('sbSearchResult').setText('Records : ' + grdStore.data.length);
} else {
window.clearInterval(bindIntervalId);
}
rec++;
}, 250);
}
The problem starts after 80th records is being added to the Grid and eventually interface becomes unresponsive. Interesting thing is that rows are added 20 per server request so there is time between request