Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add index to public_keys.user_id #3316

Merged
merged 1 commit into from
Mar 12, 2023
Merged

add index to public_keys.user_id #3316

merged 1 commit into from
Mar 12, 2023

Conversation

wentokay
Copy link
Collaborator

adds index to auth.public_keys.user_id

reduces total cost of

query {
  auth_users(where:{username:{_eq:"backpack_dev"}}) {
    id
    public_keys {
      public_key
    }
  }
}

from 20,500 to 17

before after
Screenshot 2023-03-12 at 12 31 29 Screenshot 2023-03-12 at 12 31 37

@vercel
Copy link

vercel bot commented Mar 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
backpack ✅ Ready (Inspect) Visit Preview Mar 12, 2023 at 7:33PM (UTC)

@github-actions github-actions bot added the backend Related to backend infra, reef or cf workers label Mar 12, 2023
@wentokay wentokay marked this pull request as ready for review March 12, 2023 19:35
@wentokay wentokay merged commit 6ddf0ed into master Mar 12, 2023
@wentokay wentokay deleted the wen/indexing branch March 12, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend infra, reef or cf workers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant