Ask HN: Is there a way to efficiently subscribe to an SQL query for changes?
42 by vaughan | 23 comments on Hacker News.
I know [RethinkDB][1] used to do this with their SQL-like ReQL language, but I looked around a bit and can't find much else about it - and I would have thought it would be more common. I'm more interesting in queries with joins and doing it efficiently, instead of just tracking updates to tables that are modified, and re-rerunning the entire query. If we think about modern frontends using SQL-based backends, essentially every time we render, its ultimately the result of a tree of SQL queries (queries depend on results of other queries) running in the backend. Our frontend app state is just a tree of materialized views of our database which depend on each other. We've got a bunch of state management libraries that deal with trees but they don't fit so well with relational/graph-like data. I came across a Postgres proposal for [Incremental View Maintenance][2] which generates a diff against an existing query with the purpose of updating a materialized view. Oracle also has [`FAST REFRESH`][3] for materialized views. I guess it's relatively easy to do until you start needing joins or traversing graphs/hierarchies - which is why its maybe avoided. EDIT: [Materialize][1] looks interesting in this space: "Execute streaming SQL Joins" but more focused on the event streams rather than general-purpose DML/OLTP. [1]: https://ift.tt/32z6nkG [2]: https://ift.tt/305Xtvu [3]: https://ift.tt/3dFUX51 [4]: https://ift.tt/3g2klkX
Thursday, April 22, 2021
New top story on Hacker News: Ask HN: Is there a way to efficiently subscribe to an SQL query for changes?
Subscribe to:
Post Comments (Atom)
Pages - Menu
About Me
Blog Archive
-
▼
2021
(7588)
-
▼
April
(687)
- New top story on Hacker News: Elementary OS 6 beta
- New top story on Hacker News: India’s second wave ...
- New top story on Hacker News: So I finally sorted ...
- New top story on Hacker News: Redbean/0.4
- New top story on Hacker News: P&G Flocculant/Disin...
- New top story on Hacker News: Florida plans to fin...
- New top story on Hacker News: What Is Constructor ...
- New top story on Hacker News: Disney gets special ...
- New top story on Hacker News: True, False, and Ran...
- New top story on Hacker News: SSD Makers Start War...
- New top story on Hacker News: Legal documents from...
- New top story on Hacker News: OpenBSD Version 6.9
- New top story on Hacker News: Show HN: Serverless ...
- New top story on Hacker News: Researchers Demo Pot...
- New top story on Hacker News: Build a giant live s...
- New post from the NAACP: NAACP Statement on FDA Pl...
- New post from the NAACP: Planned Parenthood, NAACP...
- New post from the NAACP: NAACP to Host Justice and...
- New top story on Hacker News: Spending review: wha...
- New top story on Hacker News: How to Rewrite the L...
- New top story on Hacker News: Djamo (YC W21) is hi...
- New top story on Hacker News: The Maps of Matrakçı...
- New top story on Hacker News: Safari 14.1 is compl...
- New top story on Hacker News: Shipping Containers ...
- New top story on Hacker News: Building a Distribut...
- New top story on Hacker News: Beginner’s Guide to ...
- New top story on Hacker News: Scientists re-evalua...
- New top story on Hacker News: The European System ...
- New top story on Hacker News: Credit Card Ads Targ...
- New top story on Hacker News: Parable of the Banana
- New top story on Hacker News: Sagging Pants and th...
- New top story on Hacker News: What's going on here...
- New top story on Hacker News: On Creative Coding (...
- New top story on Hacker News: Inheritance was inve...
- New top story on Hacker News: Avoiding Leetcode An...
- New top story on Hacker News: GB Studio: A game ma...
- New top story on Hacker News: Habitual coffee drin...
- New top story on Hacker News: The story BCG offere...
- New top story on Hacker News: Milman Parry, who ch...
- New top story on Hacker News: Puncher's Chance
- New top story on Hacker News: DPA blocks facial re...
- New top story on Hacker News: The Challenges of An...
- New top story on Hacker News: MeetAnyway (YC W21) ...
- New top story on Hacker News: China launches first...
- New top story on Hacker News: Leaving No Pixel Beh...
- New top story on Hacker News: History of Techno
- New top story on Hacker News: Fortran Package Mana...
- New top story on Hacker News: Minty-Fresh: Using a...
- New top story on Hacker News: The case of the curi...
- New top story on Hacker News: Who won the Amstel G...
- New top story on Hacker News: Artist faked being a...
- New top story on Hacker News: Leak in AI Dungeon m...
- New top story on Hacker News: Plant UML – open-sou...
- New top story on Hacker News: Chia surpasses 1 exa...
- New top story on Hacker News: Show HN: Minimal 3D ...
- New top story on Hacker News: New Evidence That Br...
- New top story on Hacker News: Truly unified inbox ...
- New top story on Hacker News: The United States Ne...
- New top story on Hacker News: Brazil Rejects the G...
- New top story on Hacker News: Fortnite’s cash cow ...
- New top story on Hacker News: Google is saving $1B...
- New top story on Hacker News: GitHub blocks FLoC a...
- New top story on Hacker News: Iran authorizes use ...
- New top story on Hacker News: A virtual Apple Maci...
- New top story on Hacker News: Film simulations fro...
- New top story on Hacker News: Annotated PyTorch im...
- New top story on Hacker News: So you want to tax t...
- New top story on Hacker News: A Jailbreak Artist
- New top story on Hacker News: Grand jury subpoena ...
- New top story on Hacker News: Raycast (YC W20) Is ...
- New top story on Hacker News: Why AI is harder tha...
- New top story on Hacker News: Show HN: Open-source...
- New top story on Hacker News: Protocol – An ASCII ...
- New top story on Hacker News: Facebook advertisers...
- New top story on Hacker News: Never run Google ads...
- New top story on Hacker News: Rare chunks of Earth...
- New top story on Hacker News: Bronze Disease
- New top story on Hacker News: Better air is the ea...
- New top story on Hacker News: Bill to kill up to 9...
- New top story on Hacker News: Signal's Cellebrite ...
- New top story on Hacker News: Facebook approves al...
- New top story on Hacker News: AMD Reports Q1 2021 ...
- New top story on Hacker News: Dominance of Apple a...
- New top story on Hacker News: Implementing HDB: Th...
- New top story on Hacker News: The Ease of Tracking...
- New top story on Hacker News: Pitching your early ...
- New top story on Hacker News: The clockwork univer...
- New top story on Hacker News: Types of Legal Argument
- New top story on Hacker News: IndieWeb: A people-f...
- New top story on Hacker News: YC founders of over ...
- New top story on Hacker News: My Current HTML Boil...
- New top story on Hacker News: Merge tag 'arm-Apple...
- New top story on Hacker News: A man who stole a hotel
- New top story on Hacker News: The Origins of the W...
- New top story on Hacker News: Daniel Kaminsky, Int...
- New top story on Hacker News: What Will Happen to ...
- New top story on Hacker News: Karmada: Open, Multi...
- New top story on Hacker News: Using a GPU Boosts A...
- New top story on Hacker News: Scripps researchers ...
- New top story on Hacker News: A Pixel Is Not a Lit...
-
▼
April
(687)
Labels
- 'Dedication 5' (1)
- "Miley Cyrus (1)
- Ander Herrera (1)
- Bundesliga (1)
- Catherine Zeta Jones (1)
- CFL (1)
- Chennai Express (1)
- Chris Brown (2)
- Eid Mubarak Wishes (1)
- Electric Zoo (1)
- Hacker News (7613)
- James Spader (1)
- kim jong un pochonbo electronic ensemble kenji fujimoto hyon song-wol pictures (2)
- Lamar Odom (1)
- Lavabit (2)
- Lukaku (1)
- Michael Girgenti (1)
- michael jackson games michael jackson songs michael jackson pictures michael jackson videos michael jackson (1)
- NAACP (21)
- Nexus 4 Price Drop Available to Some Past Buyers (1)
- Nintendo 2DS (1)
- Powerball winner: 'I don't want to work ... for the rest of my life' (1)
- Pretty Little Liars (1)
- Ribery (1)
- Riley Cooper (1)
- Satyagraha (1)
- Seamus Heaney (2)
- Sylvie van der Vaart (1)
- Taste of the Danforth (1)
- UEFA (1)
- US PGA (1)
- Yasin Bhatkal (1)
No comments:
Post a Comment