You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
Lunny Xiao fbe6d9dc6b
Use batch database operations instead of one by one to optimze api pulls (#32680)
Resolve #31492

The response time for the Pull Requests API has improved significantly,
dropping from over `2000ms` to about `350ms` on my local machine. It's
about `6` times faster.

A key area for further optimization lies in batch-fetching data for
`apiPullRequest.ChangedFiles, apiPullRequest.Additions, and
apiPullRequest.Deletions`.

Tests `TestAPIViewPulls` does exist and new tests added.

- This PR also fixes some bugs in `GetDiff` functions.
- This PR also fixes data inconsistent in test data. For a pull request,
the head branch's reference should be equal to the reference in
`pull/xxx/head`.
2 months ago
..
api Use batch database operations instead of one by one to optimze api pulls (#32680) 2 months ago
common Fix markup render regression and fix some tests (#32640) 2 months ago
install Save initial signup information for users to aid in spam prevention (#31852) 5 months ago
private Split mail sender sub package from mailer service package (#32618) 2 months ago
utils Refactor external URL detection (#29973) 11 months ago
web Refactor issue filter (labels, poster, assignee) (#32771) 2 months ago
init.go Make oauth2 code clear. Move oauth2 provider code to their own packages/files (#32148) 4 months ago