re-analyze all tables affected by new indexes
This commit is contained in:
@@ -8,10 +8,6 @@ export class IndexIDXInstanceHostKey1748104955717 {
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`CREATE UNIQUE INDEX "IDX_instance_host_key" ON "instance" (((lower(reverse("host")) || '.')::text) text_pattern_ops)`);
|
||||
|
||||
// Flush all cached Linear Scan Plans and redo statistics for expression index
|
||||
// this is important for Postgres to learn that even in highly complex queries, using this index first can reduce the result set significantly
|
||||
await queryRunner.query(`ANALYZE "instance"`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
|
||||
Reference in New Issue
Block a user