Performance Tips
Many factors can affect the performance of an application that uses the API. The following tips will help the programmer avoid some of the more common performance problems:
- If possible, log in to the API as a user with the Admin Superuser global security profile.
- When creating or updating business objects, use methods that allow multiple objects to be processed at one time.
- When loading business objects, load only the fields that are absolutely necessary.
- Use where clauses to load business objects intelligently.
- When choosing the methods used to access business objects, be sure to use the methods that will most effectively minimize server and database traffic. For example, a project is the parent of its WBS hierarchy, and individual WBS objects can be parents of other business objects, such as activities. To access activities quickly, use the loadAllActivities() method of project to bypass the child WBS objects.
- Use only Local Mode with the XML exporter and importer.
Last Published Friday, February 2, 2024