trails/packages/db/src
Ullrich Schäfer d2b28a1164
fix(planner): add index on sessions.last_activity for the expire job
The hourly `expireSessions()` cron runs `DELETE FROM planner.sessions
WHERE last_activity < cutoff`. Without an index on `last_activity`,
that's a full table scan growing linearly with the total sessions
ever created (planner sessions are never user-deleted; expiry is the
only churn path).

`drizzle-kit push` picks this up on next deploy.
2026-05-25 23:59:10 +02:00
..
schema fix(planner): add index on sessions.last_activity for the expire job 2026-05-25 23:59:10 +02:00
get-database-url.test.ts fix(journal): fail loud in production when secrets are unset 2026-05-24 11:37:20 +02:00
index.test.ts Add tests to all packages, remove passWithNoTests 2026-04-13 00:48:27 +02:00
index.ts fix: add E2E opt-out for fail-loud secret/DB-URL guards 2026-05-24 11:45:09 +02:00
migrate-data.ts fix(journal): fail loud in production when secrets are unset 2026-05-24 11:37:20 +02:00