diff options
| author | 2022-11-18 17:28:33 +0000 | |
|---|---|---|
| committer | 2022-11-18 18:28:33 +0100 | |
| commit | dccc2eee81c0c9ca4496bcb326812268c22ee732 (patch) | |
| tree | 4ab70910dc5f3557b0f0fe312d7c475a6dd96c91 /internal/db/bundb/bundb.go | |
| parent | [performance] don't use relations to select notification structs, use caches ... (diff) | |
| download | gotosocial-dccc2eee81c0c9ca4496bcb326812268c22ee732.tar.xz | |
[performance] replace status query relationals with separate calls in order to rely on caches more (#1073)
Signed-off-by: kim <grufwub@gmail.com>
Signed-off-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/db/bundb/bundb.go')
| -rw-r--r-- | internal/db/bundb/bundb.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index de6749ca4..44b0b1807 100644 --- a/internal/db/bundb/bundb.go +++ b/internal/db/bundb/bundb.go @@ -174,6 +174,8 @@ func NewBunDBService(ctx context.Context) (db.DB, error) { account.status = status admin.users = user status.accounts = account + status.emojis = emoji + status.mentions = mention timeline.status = status // Initialize db structs |
