Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(db): bump SQLite pool from 10 to 30 connections to prevent starvation

Louis Beaumontd25191d73464
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 42a88352d..cf7d1adbb 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -798,19 +798,6 @@ dependencies = [
"zbus",
]
-[[package]]
-name = "audiopipe"
-version = "0.2.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=c92760e#c92760e7cfc9912162a411ba14ec2d90500fd44c"
-dependencies = [
- "hf-hub 0.4.3",
- "qwen3-asr-sys",
- "serde",
- "serde_json",
- "thiserror 2.0.18",
- "tracing",
-]
-
[[package]]
name = "auto-launch"
version = "0.5.0"
@@ -3878,30 +3865,6 @@ dependencies = [
"ureq 2.12.1",
]
-[[package]]
-name = "hf-hub"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "629d8f3bbeda9d148036d6b0de0a3ab947abd08ce90626327fc3547a49d59d97"
-dependencies = [
- "dirs 6.0.0",
- "futures",
- "http 1.4.0",
- "indicatif",
- "libc",
- "log",
- "native-tls",
- "num_cpus",
- "rand 0.9.2",
- "reqwest 0.12.12",
- "serde",
- "serde_json",
- "thiserror 2.0.18",
- "tokio",
- "ureq 2.12.1",
- "windows-sys 0.60.2",
-]
-
[[package]]
name = "hkdf"
version = "0.12.4"
@@ -5835,16 +5798,6 @@ dependencies = [
"libm",
]
-[[package]]
-name = "num_cpus"
-version = "1.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
-dependencies = [
- "hermit-abi",
- "libc",
-]
-
[[package]]
name = "num_enum"
version = "0.7.5"
@@ -7343,15 +7296,6 @@ dependencies = [
"proc-macro2",
]
-[[package]]
-name = "qwen3-asr-sys"
-version = "0.1.0"
-source = "git+https://github.com/screenpipe/audiopipe.git?rev=c92760e#c92760e7cfc9912162a411ba14ec2d90500fd44c"
-dependencies = [
- "cc",
- "cmake",
-]
-
[[package]]
name = "r-efi"
version = "5.3.0"
@@ -8223,7 +8167,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.1.1"
+version = "2.0.584"
dependencies = [
"anyhow",
"arboard",
@@ -8299,7 +8243,6 @@ dependencies = [
"tower-http 0.4.4",
"tracing",
"tracing-appender",
- "tracing-oslog",
"tracing-subscriber",
"uuid",
"windows 0.58.0",
@@ -8320,10 +8263,9 @@ dependencies = [
[[package]]
name = "screenpipe-audio"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"anyhow",
- "audiopipe",
"bytemuck",
"bytes",
"chrono",
@@ -8336,7 +8278,7 @@ dependencies = [
"env_logger",
"esaxx-rs",
"futures",
- "hf-hub 0.3.2",
+ "hf-hub",
"hound",
"knf-rs",
"lazy_static",
@@ -8372,7 +8314,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -8413,7 +8355,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"anyhow",
"chrono",
@@ -8438,7 +8380,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"anyhow",
"chrono",
@@ -8454,7 +8396,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"anyhow",
"chrono",
@@ -8474,7 +8416,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"anyhow",
"async-trait",
@@ -8522,7 +8464,6 @@ dependencies = [
"tower-http 0.5.2",
"tracing",
"tracing-appender",
- "tracing-oslog",
"tracing-subscriber",
"uuid",
"windows 0.58.0",
@@ -8530,7 +8471,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.3.159"
+version = "0.3.158"
dependencies = [
"accessibility-sys",
"anyhow",
@@ -11292,18 +11233,6 @@ dependencies = [
"tracing-core",
]
-[[package]]
-name = "tracing-oslog"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d76902d2a8d5f9f55a81155c08971734071968c90f2d9bfe645fe700579b2950"
-dependencies = [
- "cc",
- "cfg-if 1.0.4",
- "tracing-core",
- "tracing-subscriber",
-]
-
[[package]]
name = "tracing-subscriber"
version = "0.3.22"
diff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rs
index a2dde17a5..d275a8f2a 100644
--- a/crates/screenpipe-db/src/db.rs
+++ b/crates/screenpipe-db/src/db.rs
@@ -174,8 +174,8 @@ impl DatabaseManager {
let pool = SqlitePoolOptions::new()
// Pool handles both read and write concurrency. Writes are serialized
// by SQLite's WAL mode + busy_timeout(5s).
- .max_connections(10)
- .min_connections(3) // Minimum number of idle connections
+ .max_connections(30)
+ .min_connections(5) // Minimum number of idle connections
.acquire_timeout(Duration::from_secs(10))
.connect_with(connect_options)
.await?;