-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database Webhooks get fired >1s after record inserted #175
Comments
Hi there, The firing happens 1 second after you make a call to insert? Or it is 1 second after the insert has happened? Is the insert a single record, or multiple? Are there any indexes or other constraints on the table? Does the time decrease once the function has been called a few times (i.e. is it the startup time of the functions causing this or is it the delay from the trigger) |
|
@encima @Hallidayo let me know if I can provide any additional details! |
@davidfant - I'll try this out and come back to you. |
Bug report
Describe the bug
When a record is inserted I have a database webhook trigger that points at a Supabase function. There is always a delay of slightly over 1s between when a record is inserted (record.created_at) and when the trigger is fired. I'm running this locally, so there should be minimal networking overhead
For example:
To Reproduce
console.log
both record.created_at andnew Date()
to see the timesExpected behavior
Webhooks should be fired ~immediately
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
If it's not related to an actual issue in Supabase, please let me know anything I can do to cut down on the latency
The text was updated successfully, but these errors were encountered: