go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.08k stars 5.49k forks source link

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

Open Aviortheking opened 4 years ago

Aviortheking commented 4 years ago

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

6543 commented 4 years ago

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

Aviortheking commented 4 years ago

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

6543 commented 4 years ago

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

guillep2k commented 4 years ago

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.

stale[bot] commented 4 years ago

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 4 years ago

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

stale[bot] commented 4 years ago

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.

iamdoubz commented 4 years ago

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?

Aviortheking commented 3 years ago

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