Nice intro article! I'd summarize it a little differently:
- To work with persistent data, use persistent classes. These provide the ability to store and access objects and/or rows. In other words, two different but related models, accessing the same data.
- To work with JSON, use dynamic objects {} and dynamic arrays []. If you need to store this data in addition to simply processing it, you can use a property of a persistent class, or you can use the DocDB feature of IRIS.
- When any data is stored in IRIS, it's stored in globals. These days, it's not that common to access data directly in globals. Using persistent classes to provide object access and SQL access is typically sufficient. But it is still possible, and can be useful. The "art and science" of good global design is another topic, as @Yaron Munz briefly mentions in his comment.
- Log in to post comments