FetchAll: Boolean;
The FetchAll property determines whether values of system and custom attributes are loaded in cache together.
Available values:
True. Values of custom attributes along with values of system attributes are loaded in cache. Opening of a dictionary will take more time, but speed of work with dictionary elements will increase.
False. Default value. Only values of system attributes are loaded in cache. If values of custom attributes are loaded, they will be cleared. Opening of a dictionary will take less time, but speed of work with dictionary elements will decrease.
Executing the example requires an MDM repository with the RDS_REPO identifier that contains a dictionary with the OBJ_DICT identifier. It is also necessary to add links to the Metabase, Rds system assemblies.
Sub UserProc;
Var
MB: IMetabase;
RdsDescr: IMetabaseObjectDescriptor;
Dict: IRdsDictionary;
DictInst: IRdsDictionaryInstance;
Begin
MB := MetabaseClass.Active;
RdsDescr := MB.ItemById("RDS_REPO");
Dict := MB.ItemByIdNamespace("OBJ_DICT", RdsDescr.Key).Bind As IRdsDictionary;
DictInst := Dict.Open(Null);
DictInst.FetchAll := True;
End Sub UserProc;
After executing the example values of custom attributes along with values of system attributes are loaded in cache.
See also: