vilterp / treesql

prototype: a relational database which supports live GraphQL-like queries. Written in Go with BoltDB storage.
37 stars 1 forks source link

very cool #3

Closed ghost closed 6 years ago

ghost commented 6 years ago

This is an awesome prototype. I think there is a huge need for something that brings so many things together like this does.

My first idea when playing around is that maybe you want to add live queries as long term subscriptions later. For example: You register for changes on a table and turn off the wifi on the device. You come back a day later and any changes to those things your subscribed for are sent to you.

This whole thing feeds into of course a discussion about Service workers and caches.

vilterp commented 6 years ago

Thanks @gedw99! The long-term subscriptions idea is interesting. Maybe this could be implemented as an intermediary on the server side which subscribes to a live query and pushes the result out to the client if it's connected, or to a persistent log if it isn't.

And yes, would love to have a nice library to interact with service workers and caches down the line.

ghost commented 6 years ago

:)