mirror of
https://codeberg.org/forgejo/forgejo
synced 2025-10-18 22:40:38 +02:00
This patch contains two fixes/enhancements to two functions that were updating all columns of the `access_token` and `repository` table when they were only updating a select few columns. Within Codeberg we saw these two queries quite often when something problematic with the database was going on, likely because of this all columns update pattern. `UpdateAccessToken` is removed and a new function `UpdateLastUsed` was added, for `updateRepoRunsNumbers` we can simply add which columns we want to have updated in that query. It's likely there are more of such queries, but these were the ones being executed often. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9572 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Reviewed-by: Otto <otto@codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz> |
||
---|---|---|
.. | ||
artifact.go | ||
forgejo.go | ||
forgejo_test.go | ||
main_test.go | ||
run.go | ||
run_job.go | ||
run_job_list.go | ||
run_job_status_test.go | ||
run_job_test.go | ||
run_list.go | ||
run_test.go | ||
runner.go | ||
runner_list.go | ||
runner_test.go | ||
runner_token.go | ||
runner_token_test.go | ||
schedule.go | ||
schedule_spec.go | ||
schedule_spec_list.go | ||
schedule_spec_test.go | ||
status.go | ||
task.go | ||
task_list.go | ||
task_output.go | ||
task_step.go | ||
task_test.go | ||
tasks_version.go | ||
utils.go | ||
utils_test.go | ||
variable.go |