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

perf: GRANT all SELECT privileges in a single query #213

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

michalc
Copy link
Member

@michalc michalc commented Mar 19, 2024

This reduces the number of queries run when copying existing SELECT privileges, which happens at the end of the first batch in the cases when the ingest is not directly into the live table.

The existing test that privileges are preserved is extended to make sure the ','.join(... behaviour is correct

@michalc michalc requested a review from a team as a code owner March 19, 2024 18:09
@michalc michalc changed the title perf: GRANT all SELECT privilege in a single query perf: GRANT all SELECT privileges in a single query Mar 19, 2024
@michalc michalc force-pushed the perf/combine-grants branch 2 times, most recently from c98032b to 8dbf1a0 Compare March 19, 2024 18:17
This reduces the number of queries run when copying existing SELECT privileges,
which happens at the end of the first batch in the cases when the ingest is not
directly into the live table.

The existing test that privileges are preserved is extended to make sure the
`','.join(...` behaviour is correct
@michalc michalc force-pushed the perf/combine-grants branch from 8dbf1a0 to 4d3a2f1 Compare March 19, 2024 18:21
@michalc michalc merged commit 3d9a74c into main Mar 19, 2024
120 checks passed
@michalc michalc deleted the perf/combine-grants branch March 19, 2024 18:24
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