accounts: reduce initial load time even further

took the referralCache idea further and did it for all db queries. Now
take ~40ms for ~5000 users on arm64 through QEMU, and ~60ms on a
rockpro64.
This commit is contained in:
Harvey Tindall
2025-12-10 17:39:54 +00:00
parent a08a0fd3e6
commit 2e97142d9e
4 changed files with 153 additions and 50 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func (app *appContext) NewUserPostVerification(p NewUserParams) (out NewUserData
webhookURIs := app.config.Section("webhooks").Key("created").StringsWithShadows("|")
if len(webhookURIs) != 0 {
summary := app.userSummary(out.User, nil)
summary := app.GetUserSummary(out.User)
for _, uri := range webhookURIs {
pendingTasks.Add(1)
go func() {