1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Reverting Indexing from positions as it did not improve performance

This commit is contained in:
Patrik J. Braun 2021-05-12 22:37:36 +02:00
parent eb84723523
commit 86739d3378

View File

@ -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';
@ -54,7 +54,6 @@ export class PositionMetaDataEntity implements PositionMetaData {
@Column(type => GPSMetadataEntity)
GPSData: GPSMetadataEntity;
@Index()
@Column({
type: 'text', nullable: true,
charset: columnCharsetCS.charset,
@ -62,7 +61,6 @@ export class PositionMetaDataEntity implements PositionMetaData {
})
country: string;
@Index()
@Column({
type: 'text', nullable: true,
charset: columnCharsetCS.charset,
@ -70,7 +68,6 @@ export class PositionMetaDataEntity implements PositionMetaData {
})
state: string;
@Index()
@Column({
type: 'text', nullable: true,
charset: columnCharsetCS.charset,