perf: add composite index on user_workspace(workspace_id, role) #51

Open
Charon wants to merge 1 commit from feat/add-workspace-role-index into dev

1 commit

Author SHA1 Message Date
Claude
39adfd67b0
perf: add composite index on user_workspace(workspace_id, role)
Queries filtering by workspace_id and role (e.g. "get all owners of
workspace X") required a full table scan on the user_workspace pivot
table. This adds a composite index to cover those lookups efficiently.

Fixes #11

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:03:27 +00:00