diff options
author | 2022-11-18 17:23:14 +0100 | |
---|---|---|
committer | 2022-11-18 17:23:14 +0100 | |
commit | d98a48b446edb5bf2c3b79bdfd382d505a08a6fc (patch) | |
tree | 1dd1639f63fa25f561d2050af1baab1d3fb7ee28 /internal/db/bundb/notification.go | |
parent | [docs] Add AUR Reference (#1054) (diff) | |
download | gotosocial-d98a48b446edb5bf2c3b79bdfd382d505a08a6fc.tar.xz |
[performance] don't use relations to select notification structs, use caches instead (#1072)
Diffstat (limited to 'internal/db/bundb/notification.go')
-rw-r--r-- | internal/db/bundb/notification.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/db/bundb/notification.go b/internal/db/bundb/notification.go index 1874f81ea..6a8fab464 100644 --- a/internal/db/bundb/notification.go +++ b/internal/db/bundb/notification.go @@ -55,9 +55,6 @@ func (n *notificationDB) GetNotification(ctx context.Context, id string) (*gtsmo q := n.conn.NewSelect(). Model(¬if). - Relation("OriginAccount"). - Relation("TargetAccount"). - Relation("Status"). Where("? = ?", bun.Ident("notification.id"), id) if err := q.Scan(ctx); err != nil { return nil, n.conn.ProcessError(err) |