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
This commit is contained in:
Eric Traut
2026-08-18 22:05:07 +00:00
committed by copyberry
parent 17de14558b
commit 701db965e5
+3 -3
View File
@@ -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()