mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-05 03:28:06 -06:00
[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>
This commit is contained in:
parent
d98a48b446
commit
dccc2eee81
2 changed files with 50 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue