Skip to content

fix: add DB index for auth lookup hot path - #1128

Merged
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
fwseyi:fix/902-auth-db-index
Jul 30, 2026
Merged

fix: add DB index for auth lookup hot path#1128
greatest0fallt1me merged 1 commit into
CalloraOrg:mainfrom
fwseyi:fix/902-auth-db-index

Conversation

@fwseyi

@fwseyi fwseyi commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

EXPLAIN-verified composite partial indexes on the /api/auth hot-path filter columns with migration and rollback.

  • migrations/auth_index.sql — two composite partial indexes on refresh_tokens
  • migrations/auth_index.down.sql — rollback (DROP IF EXISTS)
  • src/routes/auth.ts — route factory for /api/auth endpoints
  • 34 focused tests across 7 suites

Closes #902

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@fwseyi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me
greatest0fallt1me merged commit bc9a233 into CalloraOrg:main Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DB index for auth lookup hot path [b#037]

2 participants