loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Do some performance optimize for issues list and view issue/pull (#29515) (migration only)

Refs: https://codeberg.org/forgejo/forgejo/pulls/2679#issuecomment-1720941

authored by

Lunny Xiao and committed by
Earl Warren
b019ecce d67e7ae2

+16
+2
models/migrations/migrations.go
··· 568 568 NewMigration("Add default_wiki_branch to repository table", v1_22.AddDefaultWikiBranch), 569 569 // v290 -> v291 570 570 NewMigration("Add PayloadVersion to HookTask", v1_22.AddPayloadVersionToHookTaskTable), 571 + // v291 -> v292 572 + NewMigration("Add Index to attachment.comment_id", v1_22.AddCommentIDIndexofAttachment), 571 573 } 572 574 573 575 // GetCurrentDBVersion returns the current db version
+14
models/migrations/v1_22/v291.go
··· 1 + // Copyright 2024 The Gitea Authors. All rights reserved. 2 + // SPDX-License-Identifier: MIT 3 + 4 + package v1_22 //nolint 5 + 6 + import "xorm.io/xorm" 7 + 8 + func AddCommentIDIndexofAttachment(x *xorm.Engine) error { 9 + type Attachment struct { 10 + CommentID int64 `xorm:"INDEX"` 11 + } 12 + 13 + return x.Sync(&Attachment{}) 14 + }