DependencyTrack / DependencyTrack/dependency-track

Performance: Reduce over-fetching for Project Lists children

Open
#3,463 0 comments 0 reactions 0 assignees View on GitHub
enhancement p2 performance
Dominant language
Java
Stars
4.2k
Forks
811
Avg merge
8h 39m
Merged PRs (30d)
237

Description

### Current Behavior

For large datasets, which have parent -> children relationships, the `Project Lists` view can take quite a long time to respond, particularly when fetching children objects (query parameter `onlyRoot=true`)

When inspecting the JSON response, there are quite a number of fields that are not required for the Project Lists paginated view to be rendered.

### Proposed Behavior

Optimize the response object so that only required fields are retrieved

### Checklist

- [X] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [X] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this enhancement was already requested

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.