© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
kuroro

initialize supabase client once (cached) or multiple times?

Lets say on the server, i have an API handler that needs to return user data using supabase. Should i call
createClient
createClient
during each request? Or should I only call it once and then cache the object for further use in subsequent requests? I guess this is meant for non-serverless setups where each request is handled on same process.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Join table multiple times ?
SupabaseSSupabase / help-and-questions
4y ago
Supabase multiple accounts
SupabaseSSupabase / help-and-questions
2d ago
TimeScaleDB on Supabase
SupabaseSSupabase / help-and-questions
4y ago
supabase login multiple accounts
SupabaseSSupabase / help-and-questions
4mo ago