]> source.dussan.org Git - gitea.git/commit
Improve /api/v1/repos/issues/search by just getting repo ids (#15179)
authorzeripath <art27@cantab.net>
Mon, 29 Mar 2021 17:12:21 +0000 (18:12 +0100)
committerGitHub <noreply@github.com>
Mon, 29 Mar 2021 17:12:21 +0000 (18:12 +0100)
commitc1ca4a83136c12853a3301b16dc8dce4cb0cf5c7
treeed96de7ce320e719e5773229cc208e43601c656e
parent2b9e0b4d1bfb1b21851e1d56373cbcc52b2c2dfe
Improve /api/v1/repos/issues/search by just getting repo ids (#15179)

/api/v1/repos/issues/search is a highly inefficient search which is unfortunately
the basis for our dependency searching algorithm. In particular it currently loads
all of the repositories and their owners and their primary coding language all of
which is immediately thrown away.

This PR makes one simple change - just get the IDs.

Related #14560
Related #12827

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/repo_list.go
routers/api/v1/repo/issue.go