diff --git a/src/models/note.ts b/src/models/note.ts index 4e2fc5d6b..359d95373 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -15,6 +15,8 @@ import Following from './following'; const Note = db.get('notes'); Note.createIndex('uri', { sparse: true, unique: true }); +Note.createIndex('userId'); +Note.createIndex('tags', { sparse: true }); Note.createIndex({ createdAt: -1 });