From ca0df97e739b608d48bec691c1f665bd9ab65fae Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Tue, 15 Oct 2024 21:40:11 +0100 Subject: [PATCH] Slim down batch size to fit in ingestion --- src/ingestion/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ingestion/db.rs b/src/ingestion/db.rs index 1dc61a3..648c917 100644 --- a/src/ingestion/db.rs +++ b/src/ingestion/db.rs @@ -28,7 +28,7 @@ pub async fn insert( .map(|row| MonzoRow::into_insertion(row, account_id)) .collect::, _>>()?; - for insertions in insertions.chunks(400) { + for insertions in insertions.chunks(200) { let (new_or_updated_insertions, inserted_transaction_ids) = whittle_insertions(insertions, db).await?;