Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reduce batch size in migration

laurenspriembeb049f8176b
diff --git a/mobile/lib/db/ml/db.dart b/mobile/lib/db/ml/db.dart
index daf4eace36..ab0a7759fa 100644
--- a/mobile/lib/db/ml/db.dart
+++ b/mobile/lib/db/ml/db.dart
@@ -1215,7 +1215,7 @@ class MLDataDB with SqlDbBase implements IMLDataDB<int> {
_logger
.info("Starting migration of $totalCount clip embeddings to vector DB");
- const batchSize = 5000;
+ const batchSize = 1000;
int offset = 0;
int processedCount = 0;
int weirdCount = 0;