- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.2k
 
Closed
Closed
Copy link
Labels
performance/speedperformance issues with slow downsperformance issues with slow downstype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
- Gitea version (or commit ref): 1.15.0+dev-499-gca18c4d44
 - Git version:
 - Operating system: linux
 - Database (use 
[x]):- PostgreSQL
 - MySQL
 - MSSQL
 - SQLite
 
 - Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
 - No
 
 - Log gist:
 
Description
When a markdown file or a comment contains lots of references (looking at you, CHANGELOG.md), they are all resolved, inducing very high server load: loading the view page of gitea's CHANGELOG.md takes ~15secs!
I'm not sure if it's sensible to just limit the number of references that are preloaded, as that change has quite a impact on functionality.
Loading those issue cards on demand (on hover?) might be a better approach, though inducing latency.
Maybe a hybrid approach is best: load max 5 references on page render, and resolve the rest on hover via ajax
Metadata
Metadata
Assignees
Labels
performance/speedperformance issues with slow downsperformance issues with slow downstype/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.