12.07.2015 Views

Using Caché Globals - InterSystems Documentation

Using Caché Globals - InterSystems Documentation

Using Caché Globals - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4SQL and Object Use ofMultidimensional StorageThis chapter describes how the <strong>Caché</strong> object and SQL engines make use of multidimensional storage(globals) for storing persistent objects, relational tables, and indices.Though the <strong>Caché</strong> object and SQL engines automatically provide and manage data storage structures,it can be useful to understand the details of how this works.The storage structures used by the object and relational view of data are identical. For simplicity, thisdocument only describes storage from the object perspective.4.1 DataEvery persistent class that uses the %CacheStorage storage class (the default) can store instances ofitself within the <strong>Caché</strong> database using one or more nodes of multidimensional storage (globals).Every persistent class has a storage definition that defines how its properties are stored within globalnodes. This storage definition (referred to as “default structure” ) is managed automatically by theclass compiler. (You can modify this storage definition or even provide alternate versions of it if youlike. This is not discussed in this document.)4.1.1 Default StructureThe default structure used for storing persistent objects is quite simple:<strong>Using</strong> <strong>Caché</strong> <strong>Globals</strong> 35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!