From 8a179a6d9ea2bfe582783ca74df83fe33cf56ac5 Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Thu, 9 Oct 2025 08:13:53 +0000 Subject: [PATCH] perf: Use smaller chunks --- src/node/migrate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/migrate.rs b/src/node/migrate.rs index 3223ae9fa..497eba31f 100644 --- a/src/node/migrate.rs +++ b/src/node/migrate.rs @@ -327,8 +327,8 @@ fn migrate_single_static_file( ) -> Result<(), eyre::Error> { info!("Migrating block range {}...", block_range); - // block_ranges into chunks of 100000 blocks - const CHUNK_SIZE: u64 = 100000; + // block_ranges into chunks of 10000 blocks + const CHUNK_SIZE: u64 = 10000; for chunk in (0..=block_range.end()).step_by(CHUNK_SIZE as usize) { let end = std::cmp::min(chunk + CHUNK_SIZE - 1, block_range.end()); let block_range = chunk..=end;