Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
haolez
· 6y ago · 0 comments
What's the advantage of this over triggers in a relational database? Or even notify/listen in PostgreSQL? (assuming these triggers are connected to the API, of course).
I guess it's probably a matter of scale, but I really don't know.
Comments
[–]
typingmonkey
6y ago
It runs fully on the client and is offline first. A listener to PostgreSQL will not work when the device goes offline.
[–]
snthpy
6y ago
Fair enough, so what about triggers on a sqlite db on the client?
[–]
typingmonkey
6y ago
There is a big difference between having a changestream of writes to the database, and observing results of multiple queries.