© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
23 replies
MetaPM6

Supabase inserts are too slow in prod

I am using sveltekit and supabase. My requirements are like this 1) User can go to a page, 2) user can create a note and 3) User can see the note on the page at the right position. To achieve this positioning thing, I have a trigger function which runs after every insert. It checks the position of the note, and if require, update the position of other notes on the position. Normally a page has 5-10 notes.

I am not sure if this trigger function causing the delay, but when I connect to prod database, the response is super slow. Everything works fine in local env. I can post the note and can see right away page getting updated in less than a second. However, on production, it takes so much time and that I dont even get a response. I have to reload the page to view the new note.

Is there a better way? What am I doing wrong?
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

Why supabase JSONB inserts so slow?
SupabaseSSupabase / help-and-questions
4d ago
Keeping two Supabase projects in Sync Prod|Dev
SupabaseSSupabase / help-and-questions
4y ago
Supabase Dashboard is slow
SupabaseSSupabase / help-and-questions
5mo ago
Supabase/Pgvector -> Very Slow
SupabaseSSupabase / help-and-questions
7mo ago