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. |
||
|---|---|---|
| .. | ||
| schema | ||
| get-database-url.test.ts | ||
| index.test.ts | ||
| index.ts | ||
| migrate-data.ts | ||