With ThinkGeo.FileGeoDatabase 15.0.0-beta250, discovery of a GDB on a network drive
still takes 19.073 seconds. It processes 92 catalog entries, accepts 91 with
compatible geometry, and reports no failed classes or unhandled exception in this
run. Module ID: 29fb43a9-8e13-49a4-bd69-ef3cad0b98de.
The same GDB was also tested from local storage and reportedly loaded in about
1 second, versus 19.073 seconds from the network drive: approximately 19x faster.
This strongly points to storage access as the main contributor. The local result
is an approximate reported total; a local phase log and cache/repeat controls have
not been supplied.
Our discovery sequence is:
- Call
FileGeoDatabaseFeatureLayer.GetTableNames(path)once. - For each name, create
FileGeoDatabaseFeatureLayer(path, name, string.Empty),
Open it and callQueryTools.GetFirstFeaturesWellKnownType()to filter the list. - Retain the first successfully opened source across the entire loop and subsequent
dialog operations. Close each other source after its probe.
This discovery operation does not request a preview or full feature/attribute scan.
| Timed phase | Milliseconds |
|---|---|
| Catalog listing | 7,238.1 |
| All class opens | 6,226.1 |
| First-geometry probes | 5,582.1 |
| Close/dispose | 12.8 |
| Total request | 19,073.3 |
The first successful owner’s Open took 43.1 ms, included in the Open total. No
class’s combined Open/probe/cleanup time reached our 500 ms logging threshold;
inspection averages 128.5 ms per entry. Worker queueing and return to the UI account
for only 2.1 ms. Timers include possible SDK lock waits. The same-GDB local test
strengthens the storage diagnosis, but we have not isolated the particular source
of delay within the network-storage path or measured native-call round trips.
Could you profile this discovery pattern on a GDB with roughly 100 classes in
feature datasets over network storage, and advise on a supported faster path?
Inspection of this build identifies these candidates:
- Catalog enumeration issues two GetChildDatasets calls per feature dataset plus
three at the root. Can catalog discovery reduce those native calls? - Each new source’s Open refreshes column metadata, although class discovery only
needs to determine whether it has compatible geometry. Could a discovery API
avoid fetching the full column schema for every entry? - The first-geometry probe uses
Search("*", "", RowInstance.Recycle)and constructs
a ThinkGeo geometry to get its type; the polygon conversion can also repair
geometry. Could it request only the geometry field and
determine the type without constructing the entire geometry where safe?
A bulk discovery API would also be useful if it can supply the required information
more efficiently. We need to preserve the existing filter: exclude empty,
non-spatial and unsupported/invalid first-row geometries; source replacement also
checks the geometry family. Declared schema type alone may change that behavior.
Please preserve the shared ownership, native-call serialization and finalizer
protections. We have not added an SDK bypass or changed the filtering behavior.
Thank you!