forgejo/routers/web/org
Gusted 548cd0c059 feat: avoid expensive SQL for org home (#9309)
This change comes from Codeberg's Forgejo fork and has been in deployed in production for a month now. (de372975c7)

What we noticed on Codeberg is that navigating to the organisation's home was quite slow, for example https://codeberg.org/forgejo, this was caused by searching for the repositories that is owned by the organisation. The expensive part of this SQL was that it tried to show repositories where the organisation is a collaborator of... which is none as you cannot add organisations as a collaborator. Not doing this made the SQL query very fast again.

There's no test associated with this, as it's essentially a no-op before and after. So no testing would fail without this change.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9309
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-09-16 08:54:14 +02:00
..
setting chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
home.go feat: avoid expensive SQL for org home (#9309) 2025-09-16 08:54:14 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
members.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
org.go Restore form inputs on organization create error (#34201) 2025-04-22 09:54:18 +02:00
org_labels.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
projects.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
projects_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
setting.go fix(ui): prevent render failure on faulty org settings post (#8553) 2025-07-18 13:13:45 +02:00
setting_oauth2.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
setting_packages.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
teams.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00