perf: reduce worker concurrency to 4 to ease SQLite write contention

This commit is contained in:
2026-06-11 13:55:48 +02:00
parent 8cb90b256c
commit 338ecb71c8

View File

@@ -7,7 +7,7 @@ use domain::{
use futures::StreamExt;
use tokio::sync::Semaphore;
const DEFAULT_CONCURRENCY: usize = 8;
const DEFAULT_CONCURRENCY: usize = 4;
pub struct WorkerService {
consumer: Arc<dyn EventConsumer>,