-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
NuGet package restore fails due to timeout - poor performance #25953
Labels
Comments
Should be fixed with #26075. |
Great! This sounds fantastic :) |
Out of curiosity, why do you have so many versions? Do you build and store the package on every commit? |
Yes. For now this is actually the case. Also we don't use the |
KN4CK3R
added a commit
that referenced
this issue
Jul 26, 2023
Fixes #25953 - Do not load full version information (v3) - Add pagination support (v2)
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Jul 26, 2023
Fixes go-gitea#25953 - Do not load full version information (v3) - Add pagination support (v2)
project-mirrors-bot-tu bot
pushed a commit
to project-mirrors/forgejo-as-gitea-fork
that referenced
this issue
Jan 23, 2025
…tea#26173) Backport go-gitea#26075 by @KN4CK3R Fixes go-gitea#25953 - Do not load full version information (v3) - Add pagination support (v2) Co-authored-by: KN4CK3R <admin@oldschoolhack.me> (cherry picked from commit 5461476)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
As part of our build pipelines we create multiple NuGet packages which results in about 100 new packages / package versions a day. Currently we have a total of 52.488 packages with a total size of 4.4 GiB. Since some time the NuGet restore in our pipelines fail with on of the following messages (there might be even more):
OR
With means something like:
Note: For the single package above we have currently a total of 3609 versions.
So NuGet tries to gether some information but times out after 10s. I can reproduce it when opening the url from above in the browser. It takes ages to finish. So the performance seems really bad when having many packages.
The SQL Server Management Studio shows this query as a resource intensive query:
As a workaroud we created the following index for these columns which made the performance a bit better. The pipeline was able to run again. But the performance is still quite slow. It could be better/faster
The studio printed some more resource intensive queries. I'm not sure whether they are relevant, I didn't digged any deeper:
The problem with the workaround/index is that it gets deleted once gitea is restarted.
Gitea Version
1.20.0 built with GNU Make 4.1, go1.20.6 : bindata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.39.1, Wire Protocol Version 2 Enabled
Operating System
Windows Server 2016 - Version 1607 (Build 14393.6085)
How are you running Gitea?
D:\gitea\gitea.exe web --config D:\gitea\custom\conf\app.ini
Database
MSSQL
The text was updated successfully, but these errors were encountered: