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:
parent
eb84723523
commit
86739d3378
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user