S/C: Speeding up Data Materialization with Bounded Memory
Zhaoheng Li, Xinyu Pi, Yongjoo Park
Abstract
With data pipeline tools and the expressiveness of SQL, managing interdependent materialized views (MVs) are becoming increasingly easy. These MVs are updated repeatedly upon new data ingestion (e.g., daily), from which database admins can observe performance metrics (e.g., refresh time of each MV, size on disk) in a consistent way for different types of updates (full vs. incremental) and for different systems (single node, distributed, cloud-hosted). One missed opportunity is that existing data systems treat those MV updates as independent SQL statements without fully exploiting their dependency information and performance metrics. However, if we know that the result of a SQL statement will be consumed immediately after for subsequent operations, those subsequent operations do not have to wait until the early results are fully materialized on storage because the results are already readily available in memory. Of course, this may come at a cost because keeping those results in memory (even temporarily) will reduce the amount of available memory; thus, our decision should be careful.
In this paper, we introduce a new system, called S/C, which tackles this problem through efficient creation and update of a set of MVs with acyclic dependencies among them. S/C judiciously uses bounded memory to reduce the end-to-end MV refresh time by short-circuiting expensive reads and writes; S/C's objective function accurately estimates the time savings from keeping intermediate data in memory for particular periods. Our solution jointly optimizes an MV refresh order, what data to keep in memory, and when to release the data from memory. At a high level, S/C still materializes all data exactly as defined in MV definitions; thus, it does not impact any service-level agreements. In our experiments with TPC-DS datasets (up to 1TB), we show that S/C's optimization can speedup end-to-end runtime by 1.04×-5.08× with (only) 1.6GB memory.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0d164faf-cb03-4623-bf15-ccc2e418a7a6Cited by top-tier papers5
- SIEVE: Effective Filtered Vector Search with Collection of IndexesZhaoheng Li, Silu Huang, Wei Ding, Yongjoo Park et al.VLDB 2025 · 17 citations
- ElasticNotebook: Enabling Live Migration for Computational NotebooksZhaoheng Li, Pranav Gor, Rahul Prabhu, Hui Yu et al.VLDB 2024 · 12 citations
- A Step Toward Deep Online AggregationNikhil Sheoran, Supawit Chockchowwat, Arav Chheda, Suwen Wang et al.SIGMOD 2023 · 7 citations
- MojoFrame: Dataframe Library in Mojo LanguageShengya Huang, Zhaoheng Li, Derek Werner, Yongjoo ParkICDE 2026
- Cache-of-Thought: Master-Apprentice Framework for Cost-Effective Vision Language Model ReasoningMingyuan Wu, Jize Jiang, Haozhen Zheng, Meitang Li et al.EMNLP 2025
Builds on6
- IDEBench: A Benchmark for Interactive Data ExplorationPhilipp Eichmann, Emanuel Zgraggen, Carsten Binnig, Tim KraskaSIGMOD 2020 · 57 citations
- Trident: Task Scheduling over Tiered Storage Systems in Big Data PlatformsHerodotos Herodotou, Elena KakoulliVLDB 2021 · 10 citations
- Tempura: A General Cost-Based Optimizer Framework for Incremental Data ProcessingZuozhi Wang, Kai Zeng, Botong Huang, Wei Chen et al.VLDB 2021 · 9 citations
- Approximate Partition Selection for Big-Data Workloads using Summary StatisticsKexin Rong, Yao Lu, Peter Bailis, Srikanth Kandula et al.VLDB 2020 · 8 citations
- A Step Toward Deep Online AggregationNikhil Sheoran, Supawit Chockchowwat, Arav Chheda, Suwen Wang et al.SIGMOD 2023 · 7 citations
Related papers
- Benchmarking the Full Pipeline of Materialized-View-Based Query RewritingXinjie Hu, Zhengjie MiaoVLDB 2026
- Foreign Keys Open the Door for Faster Incremental View MaintenanceChristoforos Svingos, André Hernich, Hinnerk Gildhoff, Yannis Papakonstantinou et al.SIGMOD 2023 · 7 citations
- Storing and Indexing Multiple Tables by Interesting Orderings: For Efficient Joins, Groupings, and Updates in Relational DatabasesWenhui Lyu, Goetz GraefeVLDB 2026
- Shared Arrangements: practical inter-query sharing for streaming dataflowsFrank McSherry, Andrea Lattuada, Malte Schwarzkopf, Timothy RoscoeVLDB 2020 · 25 citations
- Thrifty Query Execution via IncrementabilityDixin Tang, Zechao Shang, Aaron J. Elmore, Sanjay Krishnan et al.SIGMOD 2020 · 9 citations
