R – Adobe Air/Flex filtering large datasets

airapache-flex

Hi I have an Air app that downloads a data set of around 100`000 objects and puts the objects in an ArrayCollection.

I would like to apply various filters to the data set in numerous screens throughout the app.
I am a little worried about possible performance issues if I make multiple copies of the collection. However, if I don't copy the collection any filters applied will be reflected in all the screens and this is not the behavior I need.

What would be the best way to give multiple views of this large data collection?
Has anyone had any experience with this kind of scenario.
Any help much appreciated.

Best Answer

You could use a class that acts as a proxy for the original ArrayCollection and the data stored in it. You can set the filter function on the proxy and have the proxy delegate most of its other functionality to the referenced ArrayCollection. You can probably start by subclassing ListCollectionView to do this.

Related Topic