Merge pull request 'Replace notes(userId) index with (userId, id)' (#28) from sugar/forkey:replace-notes-user-id-index-with-user-id-id into main
All checks were successful
Lint / pnpm_install (push) Successful in 31s
Test (production install and build) / production (22.x) (push) Successful in 1m1s
Lint / lint (misskey-js) (push) Successful in 33s
Lint / lint (backend) (push) Successful in 1m17s
Test (backend) / validate-api-json (22.x) (push) Successful in 1m27s
Lint / lint (sw) (push) Successful in 30s
Lint / typecheck (misskey-js) (push) Successful in 31s
Test (backend) / unit (22.x) (push) Successful in 2m50s
Lint / typecheck (backend) (push) Successful in 1m22s
Test (backend) / e2e (22.x) (push) Successful in 6m49s
Lint / lint (frontend) (push) Successful in 7m49s
All checks were successful
Lint / pnpm_install (push) Successful in 31s
Test (production install and build) / production (22.x) (push) Successful in 1m1s
Lint / lint (misskey-js) (push) Successful in 33s
Lint / lint (backend) (push) Successful in 1m17s
Test (backend) / validate-api-json (22.x) (push) Successful in 1m27s
Lint / lint (sw) (push) Successful in 30s
Lint / typecheck (misskey-js) (push) Successful in 31s
Test (backend) / unit (22.x) (push) Successful in 2m50s
Lint / typecheck (backend) (push) Successful in 1m22s
Test (backend) / e2e (22.x) (push) Successful in 6m49s
Lint / lint (frontend) (push) Successful in 7m49s
Reviewed-on: #28 Reviewed-by: leah <leah@noreply.woem.men>
This commit is contained in:
commit
598b88b142
2 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
export class NoteUserIdIdIndex1736888704471 {
|
||||
name = 'NoteUserIdIdIndex1736888704471'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE INDEX "IDX_note_userId_id" ON "note" ("userId", "id") `);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`DROP INDEX "public"."IDX_note_userId_id"`);
|
||||
}
|
||||
}
|
|
@ -15,6 +15,7 @@ import type { MiDriveFile } from './DriveFile.js';
|
|||
@Index('IDX_NOTE_MENTIONS', { synchronize: false })
|
||||
@Index('IDX_NOTE_FILE_IDS', { synchronize: false })
|
||||
@Index('IDX_NOTE_VISIBLE_USER_IDS', { synchronize: false })
|
||||
@Index('IDX_note_userId_id', ['userId', 'id'])
|
||||
export class MiNote {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
Loading…
Reference in a new issue