JulianWgson Lobsters • Recommends
#noria#materializedviews#dataflow
Thesis: Partial State in Dataflow-Based Materialized Views
111K subscribers • 7 videos on Hallway
- Recommended by 2 people: 1 on Hacker News and 1 on Lobsters.
- Presented by Jon Gjengset, PhD student at MIT
- Linked in the descriptionSlides on jon.thesquareplanet.comSlides on Google Slides
Advanced. Deep dive for people who know the field.
16K views6 years ago2 recommendations
Databases and dataDistributed systemsDatabase internalsKafka and stream processingScaling and large-scale architecture
Jon Gjengset presents his PhD dissertation on using partial state in dataflow-based materialized views to build high-performance database caching systems.
This is my PhD dissertation presentation, which I gave at MIT (virtually) on October 22nd, 2020. It was immediately followed by my thesis defense, which I passed subject to the typical bits and pieces of revisions the committee wanted to see. The person who introduces me in the video is Robert Morris, my thesis advisor. The Q&A has been cut out, as I want to edit it a bit and mix in questions from the public presentation I gave on YouTube the day before. I will link the Q&A video here once it is out. You can find the slides at jon.thesquareplanet.com/slides/thesis.pdf and at docs.google.com/presentation/d/1w2PlmqUIeue8VcNhBqOC0V3GTKQs…. The thesis is available at jon.thesquareplanet.com/papers/phd-thesis.pdf. What follows is the thesis abstract: This thesis proposes a practical database system that lowers latency and increases supported load for read-heavy applications by using incrementally-maintained materialized views to cache query results. As opposed to state-of-the-art materialized view systems, the presented system builds the cache on demand, and evicts cache entries in response to a shifting workload. The enabling technique the thesis introduces is partially stateful materialization, which allows entries in materialized views to be missing. The thesis proposes upqueries as a mechanism to fill such missing state on demand using dataflow, and implements them in the materialized view system Noria. The thesis then discusses additional mechanisms needed to establish eventual consistency for partially stateful dataflow. Noria with partial materialization saves application developers from implementing their own ad hoc caching mechanisms to speed up their database accesses. Instead, the caching is built into the database, and is transparent to the application. Experimental results suggest that the presented system increases supported application load by up to 20x over MySQL and performs similarly to an optimized key-value store cache. Partial state also reduces memory use by up to 2/3 compared to traditional materialized views.Why it's here
2 people recommend thisWhat people say. Recommended as an excellent, deep-dive explanation of the dataflow and partial state concepts behind the Noria database.
Jonhooon Hacker News • Recommends
On “How PlanetScale Boost serves SQL queries faster”
konduon Hacker News • Mentions
On “Differential Dataflow”
dpcxon Hacker News • Mentions
On “Readyset: A MySQL and Postgres wire-compatible caching layer”