From ae42805a8ba2d9085a1860b543b47c5cd9ec991d Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Thu, 1 May 2025 11:48:48 +0900 Subject: [PATCH] alter comment --- packages/backend/src/models/Note.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/models/Note.ts b/packages/backend/src/models/Note.ts index d10172072b..840acd3372 100644 --- a/packages/backend/src/models/Note.ts +++ b/packages/backend/src/models/Note.ts @@ -11,10 +11,11 @@ import { MiChannel } from './Channel.js'; import type { MiDriveFile } from './DriveFile.js'; // Note: When you create a new index for existing column of this table, -// it might be better to index concurrently by editing generated migration file -// Since this table is very large, and it takes a long time to create index in most cases. +// it might be better to index concurrently under isConcurrentIndexMigrationEnabled flag +// by editing generated migration file since this table is very large, +// and it will make a long lock to create index in most cases. // Please note that `CREATE INDEX CONCURRENTLY` is not supported in transaction, -// so you need to set `transaction = false` in migration. +// so you need to set `transaction = false` in migration if isConcurrentIndexMigrationEnabled() is true. // Please refer 1745378064470-composite-note-index.js for example. // You should not use `@Index({ concurrent: true })` decorator because database initialization for test will fail // because it will always run CREATE INDEX in transaction based on decorators.