From 701db965e583341e9e963f2af79ec172b887a171 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Tue, 18 Aug 2026 21:27:13 +0000 Subject: [PATCH] Increase SQLite log sink batching (#39294) ## What changed - Increase the default bounded log queue capacity from 512 to 2,048 entries. - Raise the default insert batch size from 128 to 512 entries. - Extend the default periodic flush interval from 2 to 10 seconds. GitOrigin-RevId: e96be0996152b4a2a84d88c23d36959436685682 --- codex-rs/state/src/log_db.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codex-rs/state/src/log_db.rs b/codex-rs/state/src/log_db.rs index e2b3fcedc8..58f125c317 100644 --- a/codex-rs/state/src/log_db.rs +++ b/codex-rs/state/src/log_db.rs @@ -46,9 +46,9 @@ use uuid::Uuid; use crate::LogEntry; use crate::StateRuntime; -const LOG_QUEUE_CAPACITY: usize = 512; -const LOG_BATCH_SIZE: usize = 128; -const LOG_FLUSH_INTERVAL: Duration = Duration::from_secs(2); +const LOG_QUEUE_CAPACITY: usize = 2048; +const LOG_BATCH_SIZE: usize = 512; +const LOG_FLUSH_INTERVAL: Duration = Duration::from_secs(10); pub fn default_filter() -> Targets { Targets::new()