From 8892e626ddc6fdc4c0bf670c57853e89b1bd44b3 Mon Sep 17 00:00:00 2001 From: MujkicA Date: Mon, 13 Jan 2025 15:27:42 +0100 Subject: [PATCH] comment on chunking --- packages/adapters/storage/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/adapters/storage/src/lib.rs b/packages/adapters/storage/src/lib.rs index 4617a105..765f0d69 100644 --- a/packages/adapters/storage/src/lib.rs +++ b/packages/adapters/storage/src/lib.rs @@ -506,6 +506,7 @@ mod tests { storage: impl services::block_importer::port::Storage, range: RangeInclusive, ) { + // Insert blocks in chunks to enable setting up the db for a load test let chunk_size = 10_000; for chunk in range.chunks(chunk_size).into_iter() { let blocks = chunk