What is the best method for caching features obtained by a featurecuror so they can be requeried without having to round trip to the datasource?
I am querying a subset of features using a queryfilter and later in my code want to subset the original subset of features (ie. I don't want to make a round trip as I already queried the features once). Is there an object or something that allows you to use queryfilter on a subset of client cached features? Or is just storing the features in a List of something and do searching via a loop?
In an arcuser article (fall 2009) http://www.esri.com/news/arcuser/1009/files/5tips.pdf which has arcobjects optimizations there is a section on the following:
Code Listing 4: Don’t Be Too Selective (or Chatty)
Build a where clause containing all items you want to fetch.
- Create a query filter and set the where clause property to the where clause you just created.
- Create a Geodatabase RecordSet and set the source table property.
- Create a new InMemoryWorkspace and save the RecordSet as a table within it.
but not much more than that. I can't track down the code samples for the article and the documentation on IRecordSet (assumption that is what this article is referring to) is very light and not much to go on.