Lune

VLDB2022Top-tier venue

Density-optimized Intersection-free Mapping and Matrix Multiplication for Join-Project Operations

Zichun Huang, Shimin Chen

Abstract

A Join-Project operation is a join operation followed by a duplicate eliminating projection operation. It is used in a large variety of applications, including entity matching, set analytics, and graph analytics. Previous work proposes a hybrid design that exploits the classical solution (i.e., join and deduplication), and MM (matrix multiplication) to process the sparse and the dense portions of the input data, respectively. However, we observe three problems in the state-of-the-art solution: 1) The outputs of the sparse and dense portions overlap, requiring an extra deduplication step; 2) Its tableto-matrix transformation makes an over-simplified assumption of the attribute values; and 3) There is a mismatch between the employed MM in BLAS packages and the characteristics of the Join-Project operation. In this paper, we propose DIM 3 , an optimized algorithm for the Join-Project operation. To address 1), we propose an intersection-free partition method to completely remove the final deduplication step. For 2), we develop an optimized design for mapping attribute values to natural numbers. For 3), we propose DenseEC and SparseBMM algorithms to exploit the structure of Join-Project for better efficiency. Moreover, we extend DIM 3 to consider partial result caching and support Join-𝑜𝑝 queries, including Join-Aggregate and MJP (Multi-way Joins with Projection). Experimental results using both real-world and synthetic data sets show that DIM 3 outperforms previous Join-Project solutions by a factor of 2.3×-18×. Compared to RDBMSs, DIM 3 achieves orders of magnitude speedups. Our codes are available at https://github.com/schencoding/JoinProject-DIM3 . and deduplicates using SELECT DISTINCT. The results can be stored by the application for quick user-specific recommendations. The Join-Project operation is used in a large variety of applications [10], including entity matching, set analytics, and graph analytics. The above is an example of entity matching. Similar examples include finding users who have seen the same movies in the MovieLens data set [15] , and discovering co-authors in the DBLP data set [43] . Moreover, if tuple (𝑥,𝑦) represents that set 𝑥 contains element 𝑦, then the Join-Project operation using 𝑦 as the join key obtains all the pairs of sets that intersect with each other. Furthermore, if we interpret tuple (𝑥,𝑦) as an edge between two vertices 𝑥 and 𝑦 in a graph, then the Join-Project operation can be used to compute all pairs of vertices that are indirectly connected. |𝑌 | 𝑘=1 R 𝑥 𝑖 ,𝑦 𝑘 S 𝑦 𝑘 ,𝑧 𝑗 . A non-zero element C 𝑥 𝑖 ,𝑧 𝑗 > 0 in the matrix corresponds to a tuple (𝑥 𝑖 ,𝑧 𝑗 ) in the final output of the Join-Project operation. Compared to the classical solution, MM performs the join and the deduplication together. There are efficient MM implementations in BLAS (Basic Linear Algebra Subprograms) packages with advanced techniques [9, 26, 37]. Moreover, there are sub-cubic MM algorithms in theory. The best known is the Coppersmith-Winograd algorithm with O (𝑛 2.373 ) complexity [12]. Hybrid Solution. Recent studies [1, 10] combine the classical solution and the MM solution based on the observation that the classical

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Computing the Difference of Conjunctive Queries EfficientlyXiao Hu, Qichen WangSIGMOD 2023 · 9 citations

Builds on2

  1. TCUDB: Accelerating Database with Tensor ProcessorsYu-Ching Hu, Yuliang Li, Hung-Wei TsengSIGMOD 2022 · 32 citations
  2. Weighted Distinct Sampling: Cardinality Estimation for SPJ QueriesYuan Qiu, Yilei Wang, Ke Yi, Feifei Li et al.SIGMOD 2021 · 10 citations

Related papers

  1. In-Database Regression in Input Sparsity TimeRajesh Jayaram, Alireza Samadian, David P. Woodruff, Peng YeICML 2021 · 8 citations
  2. DiskJoin: Large-scale Vector Similarity Join with SSDYanqi Chen, Xiao Yan, Alexandra Meliou, Eric LoSIGMOD 2026 · 2 citations
  3. FUDJ: Flexible User-Defined Distributed JoinsAkil Sevim, Ahmed Eldawy, E. Preston Carman, Michael J. Carey et al.ICDE 2024 · 1 citation
  4. Accelerate Distributed Joins with Predicate TransferYifei Yang, Xiangyao YuSIGMOD 2025
  5. Robust Join Processing with Diamond Hardened JoinsAltan Birler, Alfons Kemper, Thomas NeumannVLDB 2024 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines