IMetabaseManager.BuildMetadataCacheForMb

Syntax

BuildMetadataCacheForMb(Metabase: IMetabaseDefinition);

Parameters

Metabase. Description of the repository, which requires system table cache updating.

Description

The BuildMetadataCacheForMb method updates repository system table cache with the specified description.

Comments

Before cache update for the specified repository it is recommended to call the CleanMetadataCacheForMb method.

Example

Executing the example requires description of a repository with the WAREHOUSE identifier.

Add links to the Metabase system assembly.

Sub RebuildSelected;
Var
    MbMan: IMetabaseManager;
    MbDef: IMetabaseDefinition;
Begin
    MbMan := MetabaseManagerFactory.Active;
    MbDef := MbMan.Definitions.FindById("WAREHOUSE");
    Debug.WriteLine("Cleaning cache");
    MbMan.CleanMetadataCacheForMb(MbDef);
    Debug.WriteLine("Building cache");
    MbMan.BuildMetadataCacheForMb(MbDef);
    Debug.WriteLine("---Done---");
End Sub RebuildSelected;

After executing the example system table cache of the specified repository is reset and updated.

See also:

IMetabaseManager