From 3cbde014a6a7906b61cf3a6f8bf76d610231fa42 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 2 Apr 2022 18:28:36 +0200 Subject: [PATCH] Limits the bulk loader thread count to 4 Allows writing bigger files --- lib/src/storage/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/storage/mod.rs b/lib/src/storage/mod.rs index f8d814ed..e6195197 100644 --- a/lib/src/storage/mod.rs +++ b/lib/src/storage/mod.rs @@ -1195,7 +1195,7 @@ impl StorageBulkLoader { quads: I, ) -> Result<(), EO> { let system = System::new_all(); - let cpu_count = min(8, system.physical_core_count().unwrap_or(2)); + let cpu_count = min(4, system.physical_core_count().unwrap_or(2)); let num_threads = max( if let Some(num_threads) = self.num_threads { num_threads