Link Entity type is necessary to enable lightweight / lazy relationships
I have to create an extra entity at the moment to avoid loading expensive dependent objects.
In this case, the folder is the expensive entity and for all intents and purposes, I only need
to know for a specific issue the IDs of folders that it belongs to. Maybe there's opportunity
for improvement here.
entity Folder {
fields {
RecordID<Integer> RECORD_KEY;
Parent<Folder>;
Name<String>;
}
}
entity FolderLink {
fields {
LinkID<Integer> RECORD_KEY;
DefectID<
FolderID<
Folder<Folder>;
}
}
entity Issue {
fields {
Number<Integer> ALT_RECORD_KEY;
Project<Project>;
LastModified<
RecordID<Integer> ALT_RECORD_KEY;
PriorityID<
ComponentID<
DispositionID
TypeID<Integer>;
Summary<String> TITLE;
FolderLinks<
}
}
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by