Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip unchanged face cluster assignments

laurenspriem45120a6f7e02
diff --git a/mobile/apps/photos/lib/db/ml/dart_db.dart b/mobile/apps/photos/lib/db/ml/dart_db.dart
index ee8307ca2b..c84fa0e9f7 100644
--- a/mobile/apps/photos/lib/db/ml/dart_db.dart
+++ b/mobile/apps/photos/lib/db/ml/dart_db.dart
@@ -183,6 +183,7 @@ class DartMLDataDB
INSERT INTO $faceClustersTable ($faceIDColumn, $clusterIDColumn)
VALUES (?, ?)
ON CONFLICT($faceIDColumn) DO UPDATE SET $clusterIDColumn = excluded.$clusterIDColumn
+ WHERE $faceClustersTable.$clusterIDColumn IS NOT excluded.$clusterIDColumn
''';
final parameterSets = batch.map((e) => [e.key, e.value]).toList();