Using Multidimensional Storage (Globals)

Explain multidimensional storage and traversal in InterSystems IRIS globals.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/sorodriguezz/skills-objectscript --skill using-multidimensional-storage-globals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Using Multidimensional Storage (Globals)
Source: https://github.com/sorodriguezz/skills-objectscript/tree/main/skills/using-multidimensional-storage-globals
Command: npx skills add https://github.com/sorodriguezz/skills-objectscript --skill using-multidimensional-storage-globals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill demystifies the fundamental data storage mechanism in InterSystems IRIS, enabling developers to efficiently manage and access data through its multidimensional structure.

Core Features & Use Cases

  • Understanding Globals: Learn the core concepts of persistent, multidimensional, and sparse arrays.
  • Data Access: Explore direct access, relational, and object models for interacting with globals.
  • Use Case: Efficiently store and retrieve complex hierarchical data structures, such as user profiles or product catalogs, directly within the InterSystems IRIS database.

Quick Start

Learn how to set a value in the global variable ^MyGlobal with the subscript "key" to "my value".

Frequently Asked Questions about Using Multidimensional Storage (Globals)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are globals in InterSystems IRIS and how do they store data?

You can store data in a global variable like ^MyGlobal by assigning a value to a specific subscript, such as setting the subscript "key" to "my value". This provides direct access to the multidimensional data structure.

How do I traverse multidimensional arrays in ObjectScript?

You can traverse multidimensional arrays in ObjectScript using traversal functions like $ORDER and $QUERY. These functions allow you to iterate through global nodes and subscripts to retrieve stored data efficiently.

Can I map specific subscripts in InterSystems IRIS globals?

Yes, InterSystems IRIS supports subscript-level mapping for advanced data management scenarios. This feature allows you to configure extended global references and map specific subscript ranges for optimized data distribution.

How do I delete and retrieve data from an IRIS global node?

Data retrieval and deletion from an IRIS global node are handled using standard ObjectScript commands. You can directly access the multidimensional structure to remove specific subscripts or fetch stored values using direct, relational, or object models.