Skip to content

Commit 278b666

Browse files
committed
perf(coderd/database): add index for GetAPIKeysLastUsedAfter
1 parent df8b3b2 commit 278b666

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP INDEX api_keys_last_used_idx;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE INDEX api_keys_last_used_idx ON api_keys (last_used DESC);
2+
COMMENT ON INDEX api_keys_last_used_idx IS 'Index for optimizing api_keys queries filtering by last_used';

0 commit comments

Comments
 (0)