I added a "Function Hook" via the Supabase dashboa...
# help
j
I added a "Function Hook" via the Supabase dashboard. The hook should trigger on every insert to a table called
barcodes
. If I slowly add records to this table, the hook works well. However, if I add records quickly (say 10 in 20 ms), the hook only executes about 3 or 4 times. Is there a built-in throttling or rate-limiting mechanism for "Function Hooks"?
n
Hello @JustinNoel! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
I've seen nothing documented, or any reports of such in pg_net. This would be best place to get dev's to see your issue: https://github.com/supabase/pg_net/issues Also you might look in the database logs and see if there is any info, I've not used hooks, so not sure.
n
JustinNoel (2022-04-05)
j
Thanks for the suggestion about the logs. I didn't find any problems there though. I did find some interesting stuff in the
net
schema tables. It definitely shows the requests are created, but they aren't all processing properly. I wasn't sure if an opening an issue was appropriate for this. So, I opened a discussion. https://github.com/supabase/supabase/discussions/6327
g
I would link that as an issue here https://github.com/supabase/pg_net/issues so devs for sure see it. You could also spin up an edge function with some logging and call it quickly to rule out cloud flare possibly. I would do that myself as a test but traveling next few days.
j
Thanks again for the suggestion. I've done more troubleshooting and confirmed it's not an issue with Supabase. I've updated the discussion.