Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Separate out loading run artifacts and only load artifacts where needed to improve delete runs performance #649

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

eamansour
Copy link
Member

Why?

See galasa-dev/projectmanagement#1210

When getting a run by its ID, all of the artifacts for the given run were being loaded which is unnecessary for API routes that don't care about artifacts. This PR separates the loading of artifacts into a separate loadArtifacts method on the IRunResult interface to provide more flexibility around when to load artifacts for a run.

Changes

  • Added loadArtifacts method to IRunResult interface and added calls to it in the routes that require artifacts to be loaded (i.e. the /ras/runs/{run-id}/artifacts and /ras/runs/{run-id}/files/{artifact-path} routes)

Copy link
Contributor

@techcobweb techcobweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with changes suggested

@eamansour eamansour merged commit 53b1517 into main Sep 13, 2024
6 checks passed
@eamansour eamansour deleted the iss1210-delete-runs-performance branch September 13, 2024 08:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants