Limit number of files/folders to appear in explorer #4953

Open
opened 2025-11-02 06:08:52 -06:00 by GiteaMirror · 9 comments
Owner

Originally created by @Aviortheking on GitHub (Feb 27, 2020).

  • Gitea version (or commit ref): 1.12.0+dev-379-ge5944a952
  • Git version: Docker image latest
  • Operating system: Docker image latest
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Limit the number of files/folders shown at the same time to not cause this VERY long loading time and browser not handling the page correctly

ex: https://git.delta-wings.net/tcgdex/compiled/src/branch/master/en/cards
Github: https://github.com/tcgdex/distribution/tree/master/en/cards
...

Screenshots

Originally created by @Aviortheking on GitHub (Feb 27, 2020). - Gitea version (or commit ref): 1.12.0+dev-379-ge5944a952 - Git version: Docker image latest - Operating system: Docker image latest - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Limit the number of files/folders shown at the same time to not cause this VERY long loading time and browser not handling the page correctly ex: https://git.delta-wings.net/tcgdex/compiled/src/branch/master/en/cards Github: https://github.com/tcgdex/distribution/tree/master/en/cards ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the topic/uiissue/confirmedtype/enhancement labels 2025-11-02 06:08:52 -06:00
Author
Owner

@6543 commented on GitHub (Feb 27, 2020):

@Aviortheking this should be only be a problem if you visit a folder the first time after code change: #10069

@6543 commented on GitHub (Feb 27, 2020): @Aviortheking this should be only be a problem if you visit a folder the first time after code change: #10069
Author
Owner

@Aviortheking commented on GitHub (Feb 28, 2020):

It dont seems its doing it as it take a long t'aime to load Evert times

@Aviortheking commented on GitHub (Feb 28, 2020): It dont seems its doing it as it take a long t'aime to load Evert times
Author
Owner

@6543 commented on GitHub (Feb 28, 2020):

"- COMMITS_COUNT: 1000: Only enable the cache when repository's commits count great than."
you may have to less commits - https://github.com/go-gitea/gitea/pull/10069/files#diff-07e54da65506d1528f7f446c22a6f723R398

but a configruable limit or paginatin would be a enhancement (I personaly prefere a pagination since the other optin will make some things inaccessible)

@6543 commented on GitHub (Feb 28, 2020): "- `COMMITS_COUNT`: **1000**: Only enable the cache when repository's commits count great than." you may have to less commits - https://github.com/go-gitea/gitea/pull/10069/files#diff-07e54da65506d1528f7f446c22a6f723R398 but a configruable limit or paginatin would be a enhancement (I personaly prefere a pagination since the other optin will make some things inaccessible)
Author
Owner

@guillep2k commented on GitHub (Feb 28, 2020):

Performance hits for this page come from two sources: 1) the time required for git to bring up the list and 2) the server/network/client time associated with rendering that list.

AFAIK (1) is the most expensive by far, so only adding pagination wouldn't help much.
For this, #10069 will help.

Paginating will help with (2), certainly, and with the general usability of the feature.

@guillep2k commented on GitHub (Feb 28, 2020): Performance hits for this page come from two sources: 1) the time required for git to bring up the list and 2) the server/network/client time associated with rendering that list. AFAIK (1) is the most expensive by far, so _only_ adding pagination wouldn't help much. For this, #10069 will help. Paginating will help with (2), certainly, and with the general usability of the feature.
Author
Owner

@stale[bot] commented on GitHub (Apr 28, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Apr 28, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (May 13, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (May 13, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Author
Owner

@stale[bot] commented on GitHub (Jul 12, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jul 12, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@iamdoubz commented on GitHub (Jul 20, 2020):

I would like this to be added as well. For me, I am doing a large ERP upgrade and need to compare Oracle package and package bodies. We currently have over 16,000 files per branch (dev, test, and prod) in the repo and it takes 2268ms for page load and 2034ms for template load. If we could have a configuration that limits to only loading oh let's say 50 files at a time, that would be fantastic.

Do I need to put in a separate ticket?

@iamdoubz commented on GitHub (Jul 20, 2020): I would like this to be added as well. For me, I am doing a large ERP upgrade and need to compare Oracle package and package bodies. We currently have over 16,000 files per branch (dev, test, and prod) in the repo and it takes 2268ms for page load and 2034ms for template load. If we could have a configuration that limits to only loading oh let's say 50 files at a time, that would be fantastic. Do I need to put in a separate ticket?
Author
Owner

@Aviortheking commented on GitHub (Sep 29, 2021):

It would be cool doing like Github by limiting to 3k files displayed

@Aviortheking commented on GitHub (Sep 29, 2021): It would be cool doing like Github by limiting to 3k files displayed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4953