ArcObjects Library Reference (GeoDatabase)  

IWorkspaceFactorySchemaCache Interface

Manages Geodatabase workspace schema caches.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The schema cache is a cached snapshot of the geodatabase system tables (often referred to as the geodatabase schema). In an enterprise environment the geodatabase system tables (geodatabase schema) are in constant use by ArcGIS. Caching this schema locally can reduce database roundtrips by using the locally cached representation of the geodatabase schema.

Members

Description
Method DisableAllSchemaCaches Disable the schema caches of all open workspaces.
Method DisableSchemaCache Disable the schema cache for a specific workspace.
Method DisableSchemaCaching All new workspaces handed out by the factory will not have schema caching enabled.
Method EnableAllSchemaCaches Enable the schema caches of all open workspaces.
Method EnableSchemaCache Enable the schema cache for a specific workspace.
Method EnableSchemaCaching All new workspaces handed out by the factory will have schema caching enabled.
Method IsAnySchemaCacheStale Checks all current schema caches for staleness.
Method IsSchemaCacheStale Checks a specific schema cache for staleness.
Method RefreshAllSchemaCaches Refreshes all current schema caches.
Method RefreshSchemaCache Refreshes the schema cache for a specific workspace.

CoClasses that implement IWorkspaceFactorySchemaCache

CoClasses and Classes Description
SdeWorkspaceFactory (esriDataSourcesGDB) ESRI SDE Workspace Factory.

Remarks

It is most common to use the schema cache when the geodatabase schema is in heavy use. In ArcGIS this is most common when opening a large number of datasets. For instance internally, ArcGIS uses the schema cache when opening all the layers in a map document. The schema cache is most beneficial when working with large static data models where geodatabase objects like tables, fields, domains and relationships are well defined and do not change.
To get the greatest benefit from the schema cache the cache should be filled prior to opening any datasets. Once filled any calls to Open methods including IName.Open will be satisfied by the active schema cache and therefore optimized.

.NET Related Topics

Leveraging the schema cache |