Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance problems with instances with large enabled repository count #4813

Closed
lafriks opened this issue Feb 5, 2025 · 1 comment
Closed
Labels
ui frontend related ux user experience
Milestone

Comments

@lafriks
Copy link
Contributor

lafriks commented Feb 5, 2025

Currently when opening repository list UI will load sometimes for 5-9 minutes if you have large instances where user can have hundreds or even close to thousand repositories enabled. Currently frontend will make request for each repository to get it's latest pipeline that makes 3.0 version very unresponive in such cases.

Problem is in this code as it will generate hundreds of ajax requests to backend and UI will not show up until all are done, sometimes even making both backend (users DDoS'ing woodpecker server) and browser unresponsive:

await Promise.all(
_ownedRepos.map(async (repo) => {
const lastPipeline = await apiClient.getPipelineList(repo.id, { page: 1, perPage: 1 });
if (lastPipeline.length === 1) {
pipelineStore.setPipeline(repo.id, lastPipeline[0]);
repo.last_pipeline = lastPipeline[0].number;
}
setRepo(repo);
}),
);

@lafriks lafriks added ui frontend related ux user experience labels Feb 5, 2025
@lafriks lafriks added this to the 3.x.x milestone Feb 5, 2025
@qwerty287
Copy link
Contributor

Duplicate of #4427

@qwerty287 qwerty287 marked this as a duplicate of #4427 Feb 5, 2025
@qwerty287 qwerty287 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui frontend related ux user experience
Projects
None yet
Development

No branches or pull requests

2 participants