diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-14 09:15:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-14 09:15:43 +0900 |
| commit | 06461bb9ee6d579fceaaa700ed0b4167f3e00058 (patch) | |
| tree | 4283e8d69aa8c3db621f4e12864f77a8314b8690 /src/models | |
| parent | Disable prev/next (diff) | |
| download | sharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.tar.gz sharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.tar.bz2 sharkey-06461bb9ee6d579fceaaa700ed0b4167f3e00058.zip | |
NoteのuserIdに対してインデックスを張るように
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/note.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 337711bcfa..f42bb2a49d 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -15,9 +15,8 @@ import Notification, { deleteNotification } from './notification'; import Following from './following'; const Note = db.get<INote>('notes'); - Note.createIndex('uri', { sparse: true, unique: true }); - +Note.createIndex('userId'); export default Note; export function isValidText(text: string): boolean { |