Next.js Discord

Discord Forum

Long Execution Time for Supabase Update Call in Next.js Application

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
I'm working on a Next.js application that uses Supabase as the backend database. I'm encountering a performance issue where an update operation on the database takes significantly longer when executed through the Next.js app compared to running the equivalent SQL query directly in the database. Sample:
await client
.from(TABLE)
.update({ test: updatedTest })
.match({ id })
.throwOnError();

Any ideas why the significant difference in execution time?

0 Replies