From beb049f8176bdf522f80d356ea1ffef4b4390ca5 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Thu, 22 May 2025 10:38:43 +0530 Subject: [PATCH] Reduce batch size in migration --- mobile/lib/db/ml/db.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { _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;