diff options
| author | 2022-11-18 17:29:25 +0000 | |
|---|---|---|
| committer | 2022-11-18 18:29:25 +0100 | |
| commit | 45ae719bd9d7bbffad0e2338149d87c47f18a4e6 (patch) | |
| tree | 3b02835da1e9da0b6a53f102c8ec8d2d16983673 /internal/db/bundb/bundb.go | |
| parent | [performance] replace status query relationals with separate calls in order t... (diff) | |
| download | gotosocial-45ae719bd9d7bbffad0e2338149d87c47f18a4e6.tar.xz | |
[performance] replace account emojis relational query with separate calls to emojiDB to rely on cache (#1074)
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index 44b0b1807..b316f2106 100644 --- a/internal/db/bundb/bundb.go +++ b/internal/db/bundb/bundb.go @@ -171,6 +171,7 @@ func NewBunDBService(ctx context.Context) (db.DB, error) { user := &userDB{conn: conn} // Setup DB cross-referencing + account.emojis = emoji account.status = status admin.users = user status.accounts = account |
