Skip to content

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