From b16044f34bb822e79f960d16e9e1bfffa1e66190 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Fri, 16 May 2025 09:23:42 +0300 Subject: [PATCH] pager: bump default page cache size from 10 to 1000 pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` Gnuplot not found, using plotters backend Execute `SELECT count() FROM users`/limbo_execute_select_count time: [12.867 µs 12.958 µs 13.104 µs] change: [-91.233% -91.178% -91.120%] (p = 0.00 < 0.05) Performance has improved. ``` --- core/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib.rs b/core/lib.rs index d457fa72a..2f076727d 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -166,7 +166,7 @@ impl Database { None }; - let shared_page_cache = Arc::new(RwLock::new(DumbLruPageCache::new(10))); + let shared_page_cache = Arc::new(RwLock::new(DumbLruPageCache::new(1000))); let schema = Arc::new(RwLock::new(Schema::new())); let db = Database { mv_store,