fix(auth): efficient user session projection (#7187)

* fix(auth): cache users during session projection

* fix(auth.user_sessions): add index for more efficient by user search
This commit is contained in:
Silvan
2024-01-09 19:36:46 +01:00
committed by GitHub
parent 039a1e793b
commit 43f1d59649
6 changed files with 142 additions and 4 deletions

1
cmd/setup/20.sql Normal file
View File

@@ -0,0 +1 @@
CREATE INDEX CONCURRENTLY IF NOT EXISTS user_sessions_by_user ON auth.user_sessions (instance_id, user_id);