Skip to content

API request to contents/ is slow #2674

Description

@ziggystar

Before submitting an issue to GitBucket I have first:

Issue

Impacted version: 4.35.3

Deployment mode: Tomcat

Problem description:

  • accessing the content API call /api/v3/repos/<group>/<repo>/contents with or without ?ref is slow for a large repository

I 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.

  • a call to a directory with 104 entries takes 32s
  • 30 entries takes 5s
  • 10 entries 2.5s

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions