[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>
This commit is contained in:
kim 2022-11-18 17:29:25 +00:00 committed by GitHub
commit 45ae719bd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View file

@ -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