perf: add missing indexes on all foreign key columns (#2461)

This commit is contained in:
fallenbagel
2026-02-16 21:36:55 +05:00
committed by GitHub
parent 6076878f76
commit c6bcfe0ae4
10 changed files with 394 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import { DbAwareColumn } from '@server/utils/DbColumnHelper';
import {
Column,
Entity,
Index,
ManyToOne,
PrimaryGeneratedColumn,
Unique,
@@ -18,6 +19,7 @@ export class UserPushSubscription {
eager: true,
onDelete: 'CASCADE',
})
@Index()
public user: User;
@Column()