Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added an index on refresh_tokens to improve lookup performance #453

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

quentin-decre
Copy link
Contributor

Just adding an index on auth.refresh_tokens (refresh_token_hash, expires_at, user_id)

BEFORE :
image

AFTER :
image

Copy link

changeset-bot bot commented Dec 4, 2023

🦋 Changeset detected

Latest commit: 23f0d16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hasura-auth Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dbarrosop
Copy link
Member

Thx! Could you add a changeset with pnpm changeset or give me access to your fork so I can add it if you prefer?

@quentin-decre
Copy link
Contributor Author

I really like changeset. I'm happy to have discovered this !

@dbarrosop dbarrosop changed the title perf: add index on refresh_tokens fix: added an index on refresh_tokens to improve lookup performance Dec 4, 2023
@dbarrosop dbarrosop merged commit 00b3994 into nhost:main Dec 4, 2023
3 checks 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.

2 participants