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.

Merge pull request 'fix: don't specify FOR clause for index hint' (#6188) from gusted/forgejo-mariadb-2 into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6188
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>

+1 -1
+1 -1
routers/web/user/notification.go
··· 113 113 114 114 sess := db.GetEngine(ctx).Table("notification") 115 115 if setting.Database.Type.IsMySQL() { 116 - sess = sess.IndexHint("USE", "JOIN", "IDX_notification_user_id") 116 + sess = sess.IndexHint("USE", "", "IDX_notification_user_id") 117 117 } 118 118 sess.Where("user_id = ?", ctx.Doer.ID). 119 119 And("status = ? OR status = ?", status, activities_model.NotificationStatusPinned).