perf(backend): ノートのリアクション情報をキャッシュすることでDBへのクエリを削減
This commit is contained in:
@@ -164,6 +164,11 @@ export class MiNote {
|
||||
})
|
||||
public mentionedRemoteUsers: string;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 1024, array: true, default: '{}',
|
||||
})
|
||||
public reactionAndUserPairCache: string[];
|
||||
|
||||
@Column('varchar', {
|
||||
length: 128, array: true, default: '{}',
|
||||
})
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user