mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-22 13:27:29 -06:00
[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:
parent
dccc2eee81
commit
45ae719bd9
2 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue