May 2008
Intermediate to advanced
100 pages
55m
English
Force.com provides “relationship” datatypes that an organization can use to declare relationships (referential integrity) among application objects. When an organization declares an object’s field with a relationship type, the platform maps the field to a Value field in the Data table, and then uses this field to store the ObjID of a related object.
To optimize join operations, Force.com maintains a pivot table called Relationships, as depicted in Figure 8.

The Relationships index table has two underlying database unique composite indexes (OrgID+GUID, ...