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

sql: add a virtual index on database name for SHOW GRANTS ON DATABASE #90597

Merged

Conversation

ajwerner
Copy link
Contributor

@ajwerner ajwerner commented Oct 25, 2022

Before this change, we'd always fetch all databases. This is expensive if there are many. It's also the case that the databases page will run this for each database. In that case, this was an N^2 proposition.

Epic: CRDB-20865

Release note: None

@ajwerner ajwerner requested a review from a team October 25, 2022 04:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner ajwerner force-pushed the ajwerner/improve-show-grants-for-database branch 3 times, most recently from cdab66c to 8fb3e08 Compare October 25, 2022 17:03
Before this change, we'd always fetch all databases. This is expensive if there
are many. It's also the case that the databases page will run this for each
database. In that case, this was an N^2 proposition.

Release note: None
@ajwerner ajwerner force-pushed the ajwerner/improve-show-grants-for-database branch from 8fb3e08 to 02cc484 Compare October 25, 2022 17:22
Copy link
Contributor

@postamar postamar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner)

@ajwerner
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 26, 2022

Build succeeded:

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.

4 participants