mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-09 19:28:08 -06:00
[performance] remove last of relational queries to instead rely on caches (#2091)
This commit is contained in:
parent
9770d54237
commit
91cbcd589e
19 changed files with 507 additions and 107 deletions
|
|
@ -60,6 +60,7 @@ var registerTables = []interface{}{
|
|||
type DBService struct {
|
||||
db.Account
|
||||
db.Admin
|
||||
db.Application
|
||||
db.Basic
|
||||
db.Domain
|
||||
db.Emoji
|
||||
|
|
@ -168,6 +169,10 @@ func NewBunDBService(ctx context.Context, state *state.State) (db.DB, error) {
|
|||
db: db,
|
||||
state: state,
|
||||
},
|
||||
Application: &applicationDB{
|
||||
db: db,
|
||||
state: state,
|
||||
},
|
||||
Basic: &basicDB{
|
||||
db: db,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue