PDA

View Full Version : ExtJS buffered grid and a buffer in 4.2.1 release



zerkms
30 May 2013, 3:52 PM
I've noticed that in 4.2.1 the `this.data` storage has been changed from LRU to PageMap, which means, that if we have a buffered grid that serves data from a data source that holds thousands/millions of rows - then the more we use grid, the more memory will be consumed (as soon the new storage doesn't remove the unused pages from the memory).

That means that since v4.2.1 grid isn't a solution for data that doesn't fit into the memory entirely and/or single-page long living applications (that are assumed to be opened once and working with them for a long time).

Don't you think this change breaks the whole idea of a buffered feature completely?

evant
30 May 2013, 4:01 PM
Don't you think this change breaks the whole idea of a buffered feature completely?


No. The PageMap is a subclass of a HashMap with a LRU caching algorithm.

zerkms
30 May 2013, 4:19 PM
Oh my bad, I didn't check that PageMap was just extracted as a separate class from Ext.data.Store