perf(backend): ノートのリアクション情報をキャッシュすることでDBへのクエリを削減
This commit is contained in:
parent
4d1d25e02f
commit
1671575d5d
13 changed files with 103 additions and 23 deletions
|
@ -174,6 +174,14 @@ export const packedNoteSchema = {
|
|||
type: 'string',
|
||||
optional: true, nullable: false,
|
||||
},
|
||||
reactionAndUserPairCache: {
|
||||
type: 'array',
|
||||
optional: true, nullable: false,
|
||||
items: {
|
||||
type: 'string',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
},
|
||||
|
||||
myReaction: {
|
||||
type: 'object',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue