Re:Show HN: ElectricSQL, Postgres to SQLite active-active sy...
by prepor on Thursday September 21, 2023 @11:45AM
(#37599395)
https://github.com/electric-sql/electric/blob/main/clients/t...
// Once we have electric, we then establish the data change
// notification subscription, comparing the tablenames used by the
// query with the changed tablenames in the data change notification
// to determine whether to re-query or not.
//
// If we do need to re-query, then we use the saved function to reuse the query
So it re-runs queries on all updates in tables from the query.
How do you decide what queries are relevant?