-
-
Notifications
You must be signed in to change notification settings - Fork 497
Open
Description
Is your feature request related to a problem? Please describe.
Currently, the published_releases property is just another query to execute, which is fine when we are fetching one project, but when we will fetch multiple projects we will execute this query for each project which we will have N+1 queries.
For example:
query {
recentProjects(limit: 1000) {
recentReleases {
id
}
}
}We will have a query for fetching the projects and one query for each project to fetch its releases, so we will have 1001 queries!
Describe the solution you'd like
- Add an M2M field to the
Projectmodel for the releases. - Remove the published_releases property.
- Update any related properties (e.g. recent_releases_count) to use this new field.
- Update the GraphQL
ProjectNodeto use this field instead. - Update the
owasp_aggregate_projectscommand to populate the releases in the new field (we should use the same query in the published_relealses property). - Update related tests.
Are you going to work on implementing this?
- Yes
- No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
In progress