InterSystems IRIS® data platform contains an extremely efficient data model known as globals. Individually, a global is a persistent multidimensional array. Data added to globals is immediately stored and available to multiple processes, not just the process that stored it.
The benefits of using globals are vast. Globals are:
Note that globals are not just another storage model. In fact, they are so powerful and flexible that they are actually at the core of all InterSystems models, giving you freedom from database remodels.
Interested in seeing it for yourself? Check out the exercise below.
Launch the development sandbox and click the Management Portal link to begin.
set ^Stock("dress", 4, "blue", "floral") = 52 set ^Stock("dress", 8, "green", "solid") = 10 set ^Stock("dress", 4, "blue", "striped") = 7 set ^Stock("dress", 4, "blue", "solid") = 117 set ^Stock("dress", "location") = "aisle A"
Here, you are storing this data directly to InterSystems IRIS in your own custom structure. This example contains one node for each pattern and an additional node for the location of the dresses in the store. Notice the subscripts within a global ("dress"
and 4
) can have different types. Furthermore, subscripts even within the same position (4
and "location"
) can also have different types, supporting your ability to dynamically and efficiently store sparse and varied data.
write ^Stock("dress", 4, "blue", "floral")
zwrite ^Stock("dress",4)
^Stock("dress", 4, "blue")
node.set key = "" for { set key = $order(^Stock("dress",4,"blue",key)) quit:key="" write ! ,key_":"_$get(^Stock("dress",4,"blue",key)) }
halt
.To give you the best possible experience, this site uses cookies and by continuing to use the site you agree that we can save them on your device.