Skip to content

armgit / ente

Public Imported from GitHub
0

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

Disable clustering

Manav Rathifca2d460f98c
diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.ts
index bf663ee3e2..302a80b53a 100644
--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts
+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts
@@ -258,11 +258,10 @@ class MachineLearningService {
await this.syncFiles(syncContext);
}
- // TODO: running index before all files are on latest ml version
- // may be need to just take synced files on latest ml version for indexing
if (
syncContext.outOfSyncFiles.length <= 0 ||
- (syncContext.nSyncedFiles === batchSize && Math.random() < 0.2)
+ // TODO-ML(MR): Forced disable.
+ (syncContext.nSyncedFiles === batchSize && Math.random() < 0)
) {
await this.syncIndex(syncContext);
}