Skip to content

PR 4: index hot query columns - #5

Open
prathameshkurunkar7 wants to merge 1 commit into
pr-3-frontend-deadcodefrom
pr-4-schema-indexes
Open

PR 4: index hot query columns#5
prathameshkurunkar7 wants to merge 1 commit into
pr-3-frontend-deadcodefrom
pr-4-schema-indexes

Conversation

@prathameshkurunkar7

@prathameshkurunkar7 prathameshkurunkar7 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Add database indexes on the 13 columns that permission-gated reads filter on but that weren't indexed — the hottest being Team Member.user, hit on every permission check.

Stacked on #4.

Index the Link/Data columns every gated read filters on, none of which were indexed: Team Member user/role (the can() hot path), Asset team/cluster (reconcile + console), Site team (also ends the Site(team,region) migrate index churn), Team Invitation email/role, Team Role team, Pilot Credential asset, Atlas Instance service_user, IAM Permission Probe team/user/capability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant