How Do I Increase Supabase-JS API Statement Timeout From 3s? #27421
-
Hi, I'm using Supabase with my Next.js app and I'm using the supabase-js library to connect to it. This is what I found:
I've tried updating the statement_timeout but nothing is getting updated. I've tried:
Even after setting the time out and the role and confirming if I do current_user and it says anon, in the web editor it's 2min (which is fine). But even when I try to get it from the API, it still says 3s. How do I increase that timeout? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
https://supabase.com/docs/guides/database/postgres/configuration#timeouts |
Beta Was this translation helpful? Give feedback.
-
Do db.session.refresh(self) after some working time if you have something in the cycle |
Beta Was this translation helpful? Give feedback.
Seems a step is missing...
Checked with this postgres function from the API: