Gitea: Limit number of files/folders to appear in explorer

Created on 27 Feb 2020  路  8Comments  路  Source: go-gitea/gitea

  • 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

kinenhancement kinui revieweconfirmed

Most helpful comment

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.

All 8 comments

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

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

"- 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)

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.

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.

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

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.

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

internalfx picture internalfx  路  3Comments

tuxfanou picture tuxfanou  路  3Comments

Fastidious picture Fastidious  路  3Comments

kolargol picture kolargol  路  3Comments

kifirkin picture kifirkin  路  3Comments