From 3e99a4c72cb068cd86e932ad36850487ea1d1b64 Mon Sep 17 00:00:00 2001 From: Marten Wijnja Date: Wed, 1 Apr 2026 13:58:41 +0200 Subject: [PATCH] Perform WAL checkpointing ten times per second --- Cargo.toml | 2 +- opsqueue/src/db/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ec73dfc..76e111d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ members = [ ] [workspace.package] -version = "0.34.3" +version = "0.34.4" [workspace.lints.clippy] diff --git a/opsqueue/src/db/mod.rs b/opsqueue/src/db/mod.rs index f804bcb..c872bc8 100644 --- a/opsqueue/src/db/mod.rs +++ b/opsqueue/src/db/mod.rs @@ -256,7 +256,7 @@ impl DBPools { } pub async fn periodically_checkpoint_wal(&self) { - const EXPLICIT_WAL_CHECK_INTERVAL: Duration = Duration::from_secs(1); + const EXPLICIT_WAL_CHECK_INTERVAL: Duration = Duration::from_millis(100); let mut interval = tokio::time::interval(EXPLICIT_WAL_CHECK_INTERVAL); loop { let _ = self.perform_explicit_wal_checkpoint().await;