forgejo/routers/web/user
Gusted da333382e1
fix: don't specify FOR clause for index hint
- 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
2024-12-06 22:13:17 +01:00
..
setting Validate OAuth Redirect URIs (#32643) 2024-12-03 10:19:22 +01:00
avatar.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
code.go code-search: make linters happy again 2024-09-16 16:20:55 +02:00
home.go feat(ui): set your_repositories as the default filter for org dashboards (#5593) 2024-10-17 13:24:41 +00:00
home_test.go feat: set created_by as the default filter for /issues and /pulls (#5286) 2024-09-13 12:55:39 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification.go fix: don't specify FOR clause for index hint 2024-12-06 22:13:17 +01:00
package.go style: change one argument switch to if 2024-08-18 16:20:26 +02:00
profile.go nix wording nit in todo code comment 2024-09-09 20:54:39 +02:00
search.go Add DISABLE_ORGANIZATIONS_PAGE and DISABLE_CODE_PAGE settings for explore pages and fix an issue related to user search (#32288) 2024-10-27 11:27:40 +01:00
stop_watch.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
task.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00