RunIndexDefrag;
RunIndexDefrag();
The RunIndexDefrag method defragments table indexes, on which the time series database is based.
Executing the example requires that the repository contains a time series database with the FC identifier. Add links to the Metabase, Cubes system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Rub: IRubricator;
Begin
MB := MetabaseClass.Active;
Rub := MB.ItemById("FC").Bind As IRubricator;
Rub.RunIndexDefrag;
End Sub UserProc;
After executing the example indexes of the table, which the time series database is based on will be defragmented.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Rub: IRubricator;
Begin
MB := Params.Metabase;
Rub := MB.ItemById["FC"].Bind() As IRubricator;
Rub.RunIndexDefrag();
End Sub;
See also: