OPNsense and HardenedBSD are parting ways
10 by zdw | 5 comments on Hacker News.
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?
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
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
Wednesday, April 21, 2021
Subscribe to:
Comments (Atom)
Pages - Menu
About Me
Blog Archive
- 
        ▼ 
      
2022
(46)
- 
        ▼ 
      
January
(46)
- New top story on Hacker News: Modeling Uncertainty...
- New top story on Hacker News: Study: 1960 ramjet d...
- New top story on Hacker News: Hollowed-Out, 4k-Yea...
- New top story on Hacker News: Why Fortran is easy ...
- New top story on Hacker News: Antenna Theory
- New top story on Hacker News: Between Frogs and Go...
- New top story on Hacker News: Motion (YC W20) is h...
- New top story on Hacker News: Notes from the End o...
- New top story on Hacker News: The dirty work of cl...
- New top story on Hacker News: The Relativity of Wr...
- New top story on Hacker News: The Cryptography of ...
- New top story on Hacker News: Three ways of handli...
- New top story on Hacker News: The late rloew (Rudo...
- New top story on Hacker News: Keyboard lets people...
- New top story on Hacker News: Farmers facing ferti...
- New top story on Hacker News: Honda Clocks Are Stu...
- New top story on Hacker News: At This Armenian Res...
- New top story on Hacker News: Ideas Want to Be Shared
- New top story on Hacker News: Mozilla Foundation p...
- New top story on Hacker News: Twilio suspended acc...
- New top story on Hacker News: We handle 80TB and 5...
- New top story on Hacker News: Six Julia Frameworks...
- New top story on Hacker News: Why might you run yo...
- New top story on Hacker News: Simple Dungeon Map G...
- New top story on Hacker News: We're two middle sch...
- New top story on Hacker News: NAPI-RS v2
- New top story on Hacker News: Neural Network from ...
- New top story on Hacker News: Project Mouse Tailor
- New top story on Hacker News: Workbench Nostalgia
- New top story on Hacker News: My Writing Finances,...
- New top story on Hacker News: My Personal Note Tak...
- New top story on Hacker News: 1984 – Comrade Dad
- New top story on Hacker News: Inversed Mandelbrot ...
- New top story on Hacker News: Digital real estate ...
- New top story on Hacker News: Viewstamped Replicat...
- New top story on Hacker News: Did a Cuttlefish Wri...
- New top story on Hacker News: I switched my newsle...
- New top story on Hacker News: End of the line fina...
- New top story on Hacker News: How Audio Fingerprin...
- New top story on Hacker News: New RISC-V Svnapot E...
- New top story on Hacker News: Astronomers uncover ...
- New top story on Hacker News: Winnie the Pooh is n...
- New top story on Hacker News: The Interledger Prot...
- New top story on Hacker News: Go Fuzzing
- New top story on Hacker News: All of Wittgenstein ...
- New top story on Hacker News: Living in Expectatio...
 
 
- 
        ▼ 
      
January
(46)
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)
