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. |
||
|---|---|---|
| .. | ||
| migrations | ||
| src | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||