Add indices on frequent queries (#12401)

Fixes #12165

Also changed the index naming convention because some were not properly
name and would have caused conflicts in the long run
This commit is contained in:
Félix Malfait
2025-06-02 09:55:45 +02:00
committed by GitHub
parent f6bfec882a
commit 1ef7b7a474
23 changed files with 419 additions and 32 deletions

View File

@ -32,7 +32,7 @@ export class IndexFieldMetadataEntity {
indexMetadata: Relation<IndexMetadataEntity>;
@Column({ nullable: false })
@Index('IndexOnFieldMetadataId')
@Index('IDX_INDEX_FIELD_METADATA_FIELD_METADATA_ID', ['fieldMetadataId'])
fieldMetadataId: string;
@ManyToOne(