A larger database pool on Postgres #200
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ipx keeps sqlx's default of 10 connections on Postgres (src/db.rs, connect). A page load asks for dozens of covers through /api/art at once, each with a lookup, and a scan fetches several feeds side by side, so bursts open all ten. In use stayed at 2 or below at every scrape on 2026-10-11, but a 15 s scrape misses a burst of milliseconds. The server allows 100 connections (max_connections in /mnt/fast/appdata/postgres/postgresql.conf) and about 13 were open across all its clients, ipx's 10 among them, so 20 leaves plenty for the other apps. Asked for by the user.
Done in
c28accb: 20 connections on Postgres (SQLite stays at 8). Deployed; /metrics shows ipx_db_connections_max 20.