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

fix: schema access optimization #966

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Conversation

nzlz
Copy link
Contributor

@nzlz nzlz commented Oct 16, 2024

Currently, accessing data across multiple schemas using the schema() method incurs significant performance overhead due to the creation of a new PostgreSQL client for each call. This contrasts with directly querying tables, which leverages existing connections and avoids this repeated client instantiation. The overhead becomes particularly noticeable when working with numerous schemas, adding unnecessary milliseconds to query build time.

Thoughts?

@grdsdev grdsdev requested a review from silentworks October 17, 2024 09:13
@silentworks silentworks changed the title schema access optimization fix: schema access optimization Oct 18, 2024
@silentworks silentworks merged commit 8f1300e into supabase:main Oct 18, 2024
8 checks passed
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.

2 participants