PDA

View Full Version : record.set method really slow in Ext 4.1.1



taavih
16 Aug 2012, 8:04 AM
Hi,

I know there is a post talking about the same problem:
http://www.sencha.com/forum/showthread.php?214354-Store-set()-function-is-slow&p=872606
(http://www.sencha.com/forum/showthread.php?214354-Store-set()-function-is-slow&p=872606)
But still, it's a big problem and needs more attention. Has anyone solved this it anyhow? Debugged it for two hours and got to nowhere (this also means I'm not very good at debugging :) ).

The cause: I have a grid, which uses store1 and some data from store2. When stores are loaded, I calculate some values and make some changes to store1. Setting one value for 50 different records took 22 seconds on Chrome! There must be something I'm missing as I've suspended layouts during the process.

scottmartin
16 Aug 2012, 1:05 PM
I see you mentioned suspendLayouts() .. do you mean store.suspendEvents().. have you tried if not?

Scott.

taavih
16 Aug 2012, 9:57 PM
Oh, this really made the process faster (1.5 seconds compared with initial 22 seconds). I wonder why this worked nicely in Ext 4.0?

Thanks!