Skip to content

Commit

Permalink
fix: added an index on refresh_tokens to improve lookup performance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin-decre authored Dec 4, 2023
1 parent 19316ad commit 00b3994
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-flies-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hasura-auth': patch
---

Adding an index on refresh_tokens to increase performances
2 changes: 2 additions & 0 deletions migrations/00016_index_on_refresh_tokens.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS refresh_tokens_refresh_token_hash_expires_at_user_id_idx ON
auth.refresh_tokens (refresh_token_hash, expires_at, user_id);

0 comments on commit 00b3994

Please sign in to comment.