IRubricator.UseDeduplication

Fore Syntax

UseDeduplication: Boolean;

Fore.NET Syntax

UseDeduplication: boolean;

Description

The UseDeduplication property determines whether time series database supports deduplication.

Comments

Deduplication is executed on creating a matrix and is supported for rows and numeric values.

After deduplication, only different rows are stored in the matrix. Several matrix nodes can refer to one row. This reduces the size of the created matrix.

Available values:

Fore Example

Executing the example requires that the repository contains a time series database with the TSDB_DATA identifier.

To execute the example, add links to the Cubes, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    TSDB: IRubricator;
Begin
    // Get current repository
    mb := MetabaseClass.Active;
    // Get time series database
    TSDB := mb.ItemById("TSDB_DATA").Edit As IRubricator;
    // Determine that deduplication is used on matrix creating
    TSDB.UseDeduplication := True;
    // Specify that use duplication of series attribute values
    TSDB.UseDuplication := True;
    // Save changes
    (TSDB As IMetabaseObject).Save;
End Sub UserProc;

After executing the example deduplication is used on creating a matrix, and duplication of series attribute values is used for time series database.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    TSDB: IRubricator;
Begin
    // Get current repository
    mb := Params.Metabase;
    // Get time series database
    TSDB := mb.ItemById["TSDB_DATA"].Edit() As IRubricator;
    // Determine that deduplication is used on matrix creating
    TSDB.UseDeduplication := True;
    // Specify that use duplication of series attribute values
    TSDB.UseDuplication := True;
    // Save changes
    (TSDB As IMetabaseObject).Save();
End Sub;

See also:

IRubricator