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 {CameraMetadata, GPSMetadata, PhotoDTO, PhotoMetadata, PositionMetaData} from '../../../../../common/entities/PhotoDTO';
|
||||||
import {MediaEntity, MediaMetadataEntity} from './MediaEntity';
|
import {MediaEntity, MediaMetadataEntity} from './MediaEntity';
|
||||||
import {columnCharsetCS} from './EntityUtils';
|
import {columnCharsetCS} from './EntityUtils';
|
||||||
@ -10,7 +10,7 @@ export class CameraMetadataEntity implements CameraMetadata {
|
|||||||
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'text', nullable: true,
|
type: 'text', nullable: true,
|
||||||
charset: columnCharsetCS.charset,
|
charset: columnCharsetCS.charset,
|
||||||
collation: columnCharsetCS.collation
|
collation: columnCharsetCS.collation
|
||||||
})
|
})
|
||||||
@ -18,7 +18,7 @@ export class CameraMetadataEntity implements CameraMetadata {
|
|||||||
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'text', nullable: true,
|
type: 'text', nullable: true,
|
||||||
charset: columnCharsetCS.charset,
|
charset: columnCharsetCS.charset,
|
||||||
collation: columnCharsetCS.collation
|
collation: columnCharsetCS.collation
|
||||||
})
|
})
|
||||||
@ -54,25 +54,22 @@ export class PositionMetaDataEntity implements PositionMetaData {
|
|||||||
@Column(type => GPSMetadataEntity)
|
@Column(type => GPSMetadataEntity)
|
||||||
GPSData: GPSMetadataEntity;
|
GPSData: GPSMetadataEntity;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'text', nullable: true,
|
type: 'text', nullable: true,
|
||||||
charset: columnCharsetCS.charset,
|
charset: columnCharsetCS.charset,
|
||||||
collation: columnCharsetCS.collation
|
collation: columnCharsetCS.collation
|
||||||
})
|
})
|
||||||
country: string;
|
country: string;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'text', nullable: true,
|
type: 'text', nullable: true,
|
||||||
charset: columnCharsetCS.charset,
|
charset: columnCharsetCS.charset,
|
||||||
collation: columnCharsetCS.collation
|
collation: columnCharsetCS.collation
|
||||||
})
|
})
|
||||||
state: string;
|
state: string;
|
||||||
|
|
||||||
@Index()
|
|
||||||
@Column({
|
@Column({
|
||||||
type: 'text', nullable: true,
|
type: 'text', nullable: true,
|
||||||
charset: columnCharsetCS.charset,
|
charset: columnCharsetCS.charset,
|
||||||
collation: columnCharsetCS.collation
|
collation: columnCharsetCS.collation
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user