© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
Ryry💻🤓

Updating DB: Edge functions or RPC?

Hi, I wanted to understand what's the best practice for choosing which method to update my database?

1. Update database via edge function using supabase client directly
2. Have the edge function invoke an RPC, passing in the payload to be updated

How do you guys decide which approach to take in different scenarios? For my use case, it's a simple use case of taking in form data, performing some logic checks in the edge function before updating it in my DB.

Thanks!
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

Edge Functions not updating
SupabaseSSupabase / help-and-questions
6mo ago
Supabase Edge Functions not updating
SupabaseSSupabase / help-and-questions
11mo ago
Possible to hit localhost from db and+or edge functions?
SupabaseSSupabase / help-and-questions
4y ago
Edge Functions
SupabaseSSupabase / help-and-questions
4mo ago