Using Caché Multi-Dimensional Storage - InterSystems ...
Using Caché Multi-Dimensional Storage - InterSystems ...
Using Caché Multi-Dimensional Storage - InterSystems ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Global Structure<br />
An operation on ^Data can retrieve its entire contents with a minimum number of disk operations.<br />
There are a number of additional techniques used to ensure that inserts, updates, and deletes<br />
are performed efficiently.<br />
2.3 Referencing Globals<br />
A global resides within a particular <strong>Caché</strong> database. Portions of a global can reside in different<br />
databases if appropriate mappings are used. A database can by physically located on the<br />
current system, or on a remote system accessed through <strong>Caché</strong> networking. The term dataset<br />
refers to the system and the directory that contain a <strong>Caché</strong> database. For further details on<br />
networking, see the Distributed Data Management Guide.<br />
A namespace is a logical definition of the datasets and global mappings that together form a<br />
set of related information.<br />
A simple global reference applies to the currently selected namespace. The namespace definition<br />
can cause this to physically access a database on the local system or a remote system.<br />
Different globals can be mapped to different locations or datasets (where a dataset refers to<br />
the system and the directory that contain a <strong>Caché</strong> database).<br />
For example, to create a simple reference to the global ORDER in the namespace to which<br />
it currently has been mapped, use the following syntax:<br />
^ORDER<br />
2.3.1 Setting Global Mapping<br />
You can map globals and routines from one database to another on the same or different<br />
systems. This allows simple references to data which can exist anywhere and is the primary<br />
feature of a namespace. You can map whole globals or pieces of globals. This ability to map<br />
global subscripts allow data to easily span disks.<br />
To establish this type of mapping, see the “Add Global, Routine, and Package Mapping to<br />
a Namespace” section of the “Configuring <strong>Caché</strong>” chapter of the <strong>Caché</strong> System Administration<br />
Guide.<br />
Once you've mapped a global from one namespace to another, you can reference the mapped<br />
global as if it were in the current namespace — with a simple reference. For example:<br />
^ORDER<br />
10 <strong>Using</strong> <strong>Caché</strong> <strong>Multi</strong>-<strong>Dimensional</strong> <strong>Storage</strong>