IMetabaseManager.BuildMetadataCache

Syntax

BuildMetadataCache;

Description

The BuildMetadataCache method updates system table cache in all repositories.

Comments

When the method is executed, cache is updated for the repositories, for which descriptions are available in the Definitions collection. It is recommended to call the CleanMetadataCache method before the update.

Example

Add links to the Metabase system assembly.

Sub RebuildAll;
Var
    MbMan: IMetabaseManager;
Begin
    MbMan := MetabaseManagerFactory.Active;
    Debug.WriteLine("Cleaning cache");
    MbMan.CleanMetadataCache;
    Debug.WriteLine("Building cache");
    MbMan.BuildMetadataCache;
    Debug.WriteLine("---Done---");
End Sub RebuildAll;

After executing the method, system table cache of all repositories, for which descriptions were created, are reset and updated.

See also:

IMetabaseManager