-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
API request to contents/
is slow
#2674
Comments
I've found the As I understand, to compute the result for the In the resulting API response, only the file SHAs are missing, and these are not computed by the (presumably slow) call to |
Thanks for investigation. Sounds like we can optimize it. I think we can deal with it in 4.36.0. |
@ziggystar I created #2686 to optimize the performance of Contents API, but I'm not sure how much effective it is. Could you try that branch if possible to compare the performance? |
@takezoe I can clone and compile the project. How can I run it? I tried |
You can create an executable war file by |
Same problem. |
Before submitting an issue to GitBucket I have first:
Issue
Impacted version: 4.35.3
Deployment mode: Tomcat
Problem description:
content
API call/api/v3/repos/<group>/<repo>/contents
with or without?ref
is slow for a large repositoryI have a large repository (17k commits, 700MB on disk). The API call to
contents/
to the root, which contains 49 objects (dirs and files) takes 10 seconds.This also causes a problem with Jenkins, since within the log I see all those calls running into a time out.
I think this is a performance problem in gitbucket, because to me it appears that this call should perform much faster.
The text was updated successfully, but these errors were encountered: