I am getting an ESRI “General function failure” exception when I call GetAllFeatures() on a geodatabase table with roughly a million features in it (I know this is a huge dataset).
The reason I need all of the features is I have implemented an attribute table and need to load the features into the attribute table in the order they appear in the geodatabase table. I am not too stressed about the exception as I am sure even if it didn’t fail it would take an extreme amount of time to fetch that many features from the gdb.
My initial thought is to adopt a lazy loading methodology where I only grab the first couple thousand features and load more on an as needed basis. Where I am stuck is finding a ThinkGeo functionality that allows me to get some number of features in the order they appear in the geodatabase.
In looking over the existing ‘GetFeatureBy…’ methods I see lots for spatial query options and a couple for column contents and feature IDs but I am unsure how to translate this into something that is data-agnostic (will work on any large geodatabase).
In an ideal world for my needs something like GetFeaturesByRows(0, 3000) GetFeaturesByRows(3001, 6000) would be great but I am open to other ideas or solutions.
Thanks,
Sean Jamieson