VIEW "GBLDIRLOAD" refreshes cached copies of global directories
Final Release Note
The VIEW "GBLDIRLOAD":str command instructs YottaDB to read the global directory file specified by str
, cache its contents in memory, and switch to it as the current global directory ($ZGBLDIR). If the global directory file was previously read and its contents cached (e.g., by a SET $ZGBLDIR, or from the environment variables ydb_gbldir
/ gtmgbldir
at process startup), YottaDB replaces its cached copy with a fresh copy. If str
is not a valid global directory, YottaDB issues a GDINVALID error. If str
is the empty string (""
), YottaDB re-reads and again caches the global directory file specified by ydb_gbldir
/ gtmgbldir
. If str
is omitted, a VIEWARGCNT
error is issued. As each VIEW "GBLDIRLOAD" command causes the process to permanently consume a small amount of memory, use it only when a global directory file has changed. Previously, once a YottaDB process read a global directory file, it would never refresh its cached copy. [#956 (closed)]
Description
Draft Release Note
The VIEW "ZGUPDATE"[:str] command instructs YottaDB to read the global directory file specified by str
and cache its contents in memory. If the global directory file was previously read and its contents cached (e.g., by a SET $ZGBLDIR, or from the environment variables ydb_gbldir
/ gtmgbldir
at process startup), YottaDB replaces its cached copy with a fresh copy. If str
is omitted, YottaDB replaces all cached copies of global directory files with fresh copies. Previously, once a YottaDB process read a global directory file, it would never refresh its cached copy. If str
is not a valid global directory, YottaDB issues a GDINVALID error. If str
is omitted, and the new version of a previously read global directory file is not a valid global directory, YottaDB issues a GDINVALID error for that file, retains the prior cached copy, and abandons refreshing any cached copies that it has not already refreshed.