nhost / hasura-auth

Authentication for Hasura.
https://nhost.io
MIT License
373 stars 111 forks source link

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

Closed quentin-decre closed 7 months ago

quentin-decre commented 7 months ago

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

BEFORE :

image

AFTER : image

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 23f0d16bf473d3fe30c89a3ef7c62287b536331f

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 commented 7 months ago

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 commented 7 months ago

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