A Relational Matrix Algebra and its Implementation in a Column Store
Oksana Dolmatova, Nikolaus Augsten, Michael H. Böhlen
Abstract
Analytical queries often require a mixture of relational and linear algebra operations applied to the same data. This poses a challenge to analytic systems that must bridge the gap between relations and matrices. Previous work has mainly strived to fix the problem at the implementation level. This paper proposes a principled solution at the logical level. We introduce the relational matrix algebra (RMA), which seamlessly integrates linear algebra operations into the relational model and eliminates the dichotomy between matrices and relations. RMA is closed: All our relational matrix operations are performed on relations and result in relations; no additional data structure is required. Our implementation in MonetDB shows the feasibility of our approach, and empirical evaluations suggest that in-database analytics performs well for mixed workloads.
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 5275293a-9ee3-49ec-aa1b-908c3d0dfc41Cited by top-tier papers4
- Tensor Relational Algebra for Distributed Machine Learning System DesignBinhang Yuan, Dimitrije Jankov, Jia Zou, Yuxin Tang et al.VLDB 2021 · 33 citations
- TCUDB: Accelerating Database with Tensor ProcessorsYu-Ching Hu, Yuliang Li, Hung-Wei TsengSIGMOD 2022 · 32 citations
- Serving Deep Learning Models with Deduplication from Relational DatabasesLixi Zhou, Jiaqing Chen, Amitabh Das, Hong Min et al.VLDB 2022 · 30 citations
- Givens QR Decomposition over Relational DatabasesDan Olteanu, Nils Vortmeier, Dorde ZivanovicSIGMOD 2022 · 3 citations
Related papers
- HADAD: A Lightweight Approach for Optimizing Hybrid Complex Analytics QueriesRana Alotaibi, Bogdan Cautis, Alin Deutsch, Ioana ManolescuSIGMOD 2021 · 4 citations
- TiQuE: Improving the Transactional Performance of Analytical Systems for True Hybrid WorkloadsNuno Faria, José Pereira, Ana Nunes Alonso, Ricardo Vilaça et al.VLDB 2023 · 6 citations
- Functional collection programming with semi-ring dictionariesAmir Shaikhha, Mathieu Huot, Jaclyn Smith, Dan OlteanuOOPSLA 2022 · 31 citations
- Auto-Differentiation of Relational Computations for Very Large Scale Machine LearningYuxin Tang, Zhimin Ding, Dimitrije Jankov, Binhang Yuan et al.ICML 2023 · 7 citations
- Rethink Query Optimization in HTAP DatabasesHaoze Song, Wenchao Zhou, Feifei Li, Xiang Peng et al.SIGMOD 2024 · 7 citations
