mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-09 18:50:40 +08:00

This PR implements a strategy to improve Optimize() performance by returning the correct number of modified rows in PurgeOrphanFaces and treating the result 0 as an error condition in MergeFaces. Logging around this has been improved in faces.go and faces_optimize.go. Related Comments: - https://github.com/photoprism/photoprism/issues/3124#issuecomment-2566025503 - https://github.com/photoprism/photoprism/pull/4691#issuecomment-2566164179