Closed mitar closed 5 years ago
This has been fixed by moving away from using a materialized view and making a refresh a diff query against a temporary table with cache of previous results. Now we also do not use LISTEN/NOTIFY to communicate changes, but changes are directly results of the diff query.
See results here. It also varies a lot and has some very high spikes.
In comparison, pg-live-select has very predictable under 500 ms responses.