How JSDO memory works
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
How JSDO memory works
JSDO memory stores table records as record objects according to the schema of the Data Object resource that is mapped to the JSDO. If the data model is for a single table, JSDO memory can contain only record objects for the specified table.
If the data model is for a multi-table resource (such as an OpenEdge
ProDataSet), JSDO memory can contain record objects for all the tables defined in the
multi-table resource. By default, record objects for a multi-table resource are maintained in
JSDO memory according to any data relations defined between the tables. This means, for
example, that when a JSDO method finds a record object of a parent table, if a method is then
called to search through the record objects of a table that is a child of that parent, the
search will find only record objects that are related to the record object found in the
parent; if new record objects are added to the same child table, they are added with key
fields set implicitly in relation to the parent record object. The JSDO also supports a
boolean run-time option (the useRelationships property) that toggles between honoring these data relations and
ignoring them when you access table data in JSDO memory.