Places: Remove unique label index and purge unused location infos #1664

This commit is contained in:
Michael Mayer
2021-11-20 19:14:00 +01:00
parent 9f1c456fe8
commit 403eb0d71d
16 changed files with 66 additions and 70 deletions

View File

@@ -35,6 +35,7 @@ import (
"time"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/internal/event"
"github.com/photoprism/photoprism/internal/mutex"
)
@@ -83,7 +84,11 @@ func StartMeta(conf *config.Config) {
if !mutex.WorkersBusy() {
go func() {
worker := NewMeta(conf)
if err := worker.Start(time.Minute, false); err != nil {
delay := time.Minute
interval := entity.MetadataUpdateInterval
if err := worker.Start(delay, interval, false); err != nil {
log.Warnf("metadata: %s", err)
}
}()