mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 21:53:51 +03:00
da333382e1
- I made a mistake when specifying the `FOR` clause for the index hint, I read it as being an required argument by XORM. The [MariaDB documention](https://mariadb.com/kb/en/use-index/) tells that it defaults to the `FOR JOIN` clause hence why I specified `JOIN` (As can be seen in the previous PR's SQL analyze I didn't specify the `FOR` clause). However apparently there seems to be some wizardy going on as we need to tell MariaDB to use this index for the `ORDER BY` clause to actually force MariaDB to use this index over the `updated_unix` index. However because it's not actually required by XORM to specify this value I leave this empty as mariadb is apparently smart enough to figure out for which type we want to use this index. - TL;DR make this index hint actually effective for MariaDB. - Ref: #6146 |
||
---|---|---|
.. | ||
admin | ||
auth | ||
devtest | ||
events | ||
explore | ||
feed | ||
healthcheck | ||
misc | ||
org | ||
repo | ||
shared | ||
user | ||
base.go | ||
githttp.go | ||
goget.go | ||
home.go | ||
metrics.go | ||
nodeinfo.go | ||
swagger_json.go | ||
web.go | ||
webfinger.go |