You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after 10-30 sec a event is received, prob via fallback realtime sync
createtableuuids(uuid uuid not null default gen_random_uuid());
CREATEFUNCTIONdo_insert_uuid() RETURNS trigger LANGUAGE plpgsql as $$ BEGININSERT INTO uuids(uuid) VALUES (DEFAULT);
END;
$$;
CREATETRIGGERinsertUUID
AFTER INSERT ON uuids FOR EACH ROW
EXECUTE function do_insert_uuid ();
alter publication supabase_realtime
add table uuids;
Expected behavior
Update should happen faster.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
OS: [e.g. macOS, Windows]
Browser (if applies) [e.g. chrome, safari]
Version of supabase-js: [e.g. 6.0.2]
Version of Node.js: [e.g. 10.10.0]
Additional context
Add any other context about the problem here.
Additional performance hits could be mitigated by using a feature flag for the suggested changes.
The text was updated successfully, but these errors were encountered:
A small delay between when you call net.http_get and get a realtime update is expected. The background worker that makes HTTP requests polls with a 1 second interval, the HTTP endpoint could be sluggish, and realtime also polls for changes
The background worker and realtime poller shouldn't account for > 3-5 second though, so if you're seeing 30 seconds thats likely caused by resource contention on the database, a slow response from the HTTP server, or something like that
Could you please take another look at the reproducible example from your first message? pg_net is not referenced
A complete copy/paste reproducible example of the issue you're facing will help us a lot in debugging
create a trigger on net._http_response which insert received data into another table
Is not recommended to do that, the net tables shouldn't be modified. Insertions to the response table should be as fast as possible. (this could change once #62 is done).
#139 also improves speed, I suggest you try again once a new version of pg_net is released.
Bug report
Describe the bug
trigger on net._http_response, which modifies data in another table, does not trigger Realtime update
To Reproduce
Expected behavior
Update should happen faster.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
Additional performance hits could be mitigated by using a feature flag for the suggested changes.
The text was updated successfully, but these errors were encountered: