Interacting with Data in ObjectScript Using Multiple Data Models
Try out the multi-model architecture of InterSystems IRIS® data platform, which lets you write code using the data models that best fit each task in your application. Multi-model access in InterSystems IRIS is possible due to an underlying data structure called globals, which allow you to interact with your data directly. These provide flexible data access while avoiding data duplication.
Using InterSystems ObjectScript, the built-in language for developing in InterSystems IRIS, you can also interact with your data in several other ways:
- Use industry-standard SQL to access your data, modeled as a relational table.
- Treat the same data as objects, without the need for additional object-relational mapping software.
- Access your data using a document data model or a system of key-value pairings.
The same capabilities exist whether you are programming in ObjectScript or using one of the external language APIs. If you are more familiar with an external language, try this exercise in Python, Java, or .NET.
Watch the video and try the exercise below!