Fetching Process Areas - quality-manager/onboarding GitHub Wiki

Background

Fetching the COMPLETE item for IProcessArea, IProjectArea, or ITeamArea causes a fetchItem() to take place for each and every IContributor in the area. In environments where there are many thousands of users, this can be quite costly from a performance perspective.

The Right Way

Use ProcessAreaRepository, ProjectAreaRepository, or TeamAreaRepository to fetch only the attributes required.

IProjectAreaHandle projectArea = ProcessAreaRepository.make(repoItemService).readProjectAreaProperty(processArea);
String projectName = ProjectAreaRepository.make(repoItemService).readNameProperty(projectArea);

Examples