π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add migration delay before migrating clip vectorDB
laurenspriem304d4af390c9
diff --git a/mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dart b/mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dartindex 252734d067..21d4273d28 100644--- a/mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dart+++ b/mobile/apps/photos/lib/services/machine_learning/semantic_search/semantic_search_service.dart@@ -45,6 +45,7 @@ class SemanticSearchService {bool? _cachedEmbeddingsOffline;Timer? _embeddingsCacheTimer;final Duration _embeddingsCacheDuration = const Duration(seconds: 60);+ static const Duration _vectorDbMigrationDelay = Duration(seconds: 10);Future<void>? _prepareVectorDbFuture;Future<(String, List<EnteFile>)>? _searchScreenRequest;@@ -106,6 +107,7 @@ class SemanticSearchService {if (!flagService.usearchForSearch) return;if (!flagService.hasGrantedMLConsent) return;if (!await _vectorDB.checkIfMigrationDone()) {+ await Future.delayed(_vectorDbMigrationDelay);await _mlDataDB.checkMigrateFillClipVectorDB();}if (await _vectorDB.checkIfMigrationDone()) {