Comment

Comment by erikpukinskis

I would love to see more databases support something like this. “Live queries” kind of thing.

“Modern” app development today usually presumes some element of “live updates” or “multiplayer” functionality. It’s usually handled only partially, in the app layer, with a good amount of spaghetti.

But the database to me seems like the place where this should happen. I should be able to

    SELECT * FROM projects
    WHERE owner_id=x
    ORDER BY name desc
    LIMIT 20
    OFFSET 60;
and then I should be able to subscribe to any changes to that query.

I should be able to have thousands of these subscriptions open at a time.

And ideally I should be able to get an efficient diff rather than a new result. Although a new result would be a great start.

I’m not sure why this isn’t seen as table stakes for databases in 2022. It seems like such a fundamental challenge of distributed application development.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton