From 86739d3378329d17ec58eb5da6d3d24a1ba32062 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 12 May 2021 22:37:36 +0200 Subject: [PATCH] Reverting Indexing from positions as it did not improve performance --- .../model/database/sql/enitites/PhotoEntity.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/backend/model/database/sql/enitites/PhotoEntity.ts b/src/backend/model/database/sql/enitites/PhotoEntity.ts index b12bf32d..794e3490 100644 --- a/src/backend/model/database/sql/enitites/PhotoEntity.ts +++ b/src/backend/model/database/sql/enitites/PhotoEntity.ts @@ -1,4 +1,4 @@ -import {ChildEntity, Column, Index} from 'typeorm'; +import {ChildEntity, Column} from 'typeorm'; import {CameraMetadata, GPSMetadata, PhotoDTO, PhotoMetadata, PositionMetaData} from '../../../../../common/entities/PhotoDTO'; import {MediaEntity, MediaMetadataEntity} from './MediaEntity'; import {columnCharsetCS} from './EntityUtils'; @@ -10,7 +10,7 @@ export class CameraMetadataEntity implements CameraMetadata { @Column({ - type: 'text', nullable: true, + type: 'text', nullable: true, charset: columnCharsetCS.charset, collation: columnCharsetCS.collation }) @@ -18,7 +18,7 @@ export class CameraMetadataEntity implements CameraMetadata { @Column({ - type: 'text', nullable: true, + type: 'text', nullable: true, charset: columnCharsetCS.charset, collation: columnCharsetCS.collation }) @@ -54,25 +54,22 @@ export class PositionMetaDataEntity implements PositionMetaData { @Column(type => GPSMetadataEntity) GPSData: GPSMetadataEntity; - @Index() @Column({ - type: 'text', nullable: true, + type: 'text', nullable: true, charset: columnCharsetCS.charset, collation: columnCharsetCS.collation }) country: string; - @Index() @Column({ - type: 'text', nullable: true, + type: 'text', nullable: true, charset: columnCharsetCS.charset, collation: columnCharsetCS.collation }) state: string; - @Index() @Column({ - type: 'text', nullable: true, + type: 'text', nullable: true, charset: columnCharsetCS.charset, collation: columnCharsetCS.collation })