Ineficient repo search fetching #12419

Closed
opened 2025-11-02 10:09:14 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @moritztim on GitHub (Feb 1, 2024).

Description

The repo list / search interface on the homepage is paginated and so is the http response for the request that's made to get it. And whenever you go to another page, another request is sent. I think this could be made noticeably faster by only actually sending one page at a time, along with page count, since that's the only information the client seems to need.

Screenshots

network dev tool screenshot

Gitea Version

1.21.4

Can you reproduce the bug on the Gitea demo site?

No, because the home page isn't accessible there.

Operating System

n/a

Browser Version

n/a

Originally created by @moritztim on GitHub (Feb 1, 2024). ### Description The repo list / search interface on the homepage is paginated and so is the http response for the request that's made to get it. And whenever you go to another page, another request is sent. I think this could be made noticeably faster by only actually sending one page at a time, along with page count, since that's the only information the client seems to need. ### Screenshots ![network dev tool screenshot](https://github.com/go-gitea/gitea/assets/90388353/5c306ff1-7750-478b-a000-7a60b791b400) ### Gitea Version 1.21.4 ### Can you reproduce the bug on the Gitea demo site? No, because the home page isn't accessible there. ### Operating System n/a ### Browser Version n/a
GiteaMirror added the topic/uiissue/needs-feedbacktype/bug labels 2025-11-02 10:09:14 -06:00
Author
Owner

@moritztim commented on GitHub (Feb 1, 2024):

On second thought I'm not sure I categorized this correctly

@moritztim commented on GitHub (Feb 1, 2024): On second thought I'm not sure I categorized this correctly
Author
Owner

@lunny commented on GitHub (Feb 2, 2024):

Did you mean it will send so many requests when the page load?

@lunny commented on GitHub (Feb 2, 2024): Did you mean it will send so many requests when the page load?
Author
Owner

@moritztim commented on GitHub (Feb 2, 2024):

My mistake. It's not actually implemented the way I said, I must have looked at the wrong request 😂

@moritztim commented on GitHub (Feb 2, 2024): My mistake. It's not actually implemented the way I said, I must have looked at the wrong request :joy:
Author
Owner

@github-actions[bot] commented on GitHub (Feb 28, 2024):

Automatically locked because of our CONTRIBUTING guidelines

@github-actions[bot] commented on GitHub (Feb 28, 2024): Automatically locked because of our [CONTRIBUTING guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#issue-locking)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12419