IMetabaseLinkBase.DeferredLoading

Syntax

DeferredLoading: Boolean;

Description

The DeferredLoading property determines whether the lazy loading of object descriptions on working in the repository is executed.

Comments

The property is available for use if on the server where the repository is located, one of the following DBMS is used:

To get supported DBMS version, see theSupported DBMS section.

If the property has the True value then on connecting the descriptions of only those objects will be loaded which are required to work in the repository.

Loading of descriptors will be performed in the following order:

The loaded descriptions will be cached in memory.

NOTE. The property does not affect the objects, for which the IMetabaseObjectDescritpor.IsDeferred attribute is set.

Example

Executing the example requires that the repository manager contains a schema with the WAREHOUSE identifier. The type of the repository server supporting the lazy loading of descriptors must be selected.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MAN: IMetabaseManager;
    Defs: IMetabaseDefinitions;
    Def: IMetabaseDefinition;
Begin
    MAN := MetabaseManagerFactory.Active;
    Defs := MAN.Definitions;
    Def := Defs.FindById("Warehouse");
    If (Def.DriverId <> "ORCL"And (Def.DriverId <> "MSSQL"Then
        Def.DeferredLoading := True;
        Def.Save;
    End If;
End Sub UserProc;

After executing the example for the specified description of the repository objects the label including the lazy loading of repository descriptors will be set.

See also:

IMetabaseLinkBase