You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Index OAuth access tokens by session before registry growth #594
A verified read-only production aggregate at 2026-11-17 00:08:41 UTC found 216 access-token rows, zero non-null session_id rows and 11 unexpired access tokens. No token values, session identifiers or customer rows were retrieved. This is a nonblocking performance follow-up to #590, not evidence of the production connection-timeout cause.
Add the matching Drizzle index and a genuinely generated append-only migration after the current planned migration sequence. Preserve released 0037/0038 and all existing SQL, snapshots and journal prefixes. Validate fresh and upgraded schemas with canonical db:release and drift checks, confirm the index definition, and exercise session deletion with populated session-bound credentials. Keep production DDL bounded with a lock timeout; never apply an out-of-band index that disagrees with the declared schema.
Taking this one. Adding oauth_access_token_session_idx on session_id (the FK column that currently has no index) and a generated append-only migration (0042) after the current sequence, preserving 0037/0038 and all prior SQL/snapshots/journal entries. Validation (db:release + drift + session-deletion) will be CI-driven since the local Postgres harness isn't available here; the schema change is a single index and the migration is drizzle-kit generated, so the declared schema and the migration agree by construction.
Activity
ayam04 commentedon Nov 25, 2026
Taking this one. Adding
oauth_access_token_session_idxonsession_id(the FK column that currently has no index) and a generated append-only migration (0042) after the current sequence, preserving 0037/0038 and all prior SQL/snapshots/journal entries. Validation (db:release + drift + session-deletion) will be CI-driven since the local Postgres harness isn't available here; the schema change is a single index and the migration is drizzle-kit generated, so the declared schema and the migration agree by construction.