From Relation Algebra to Semi-Join Algebra: An Approach for Graph Query Optimization

被引:4
|
作者
Hellings, Jelle [1 ]
Pilachowski, Catherine L. [2 ]
Van Gucht, Dirk [2 ]
Gyssens, Marc [1 ]
Wu, Yuqing [3 ]
机构
[1] Hasselt Univ, Hasselt, Belgium
[2] Indiana Univ, Bloomington, IN USA
[3] Pomona Coll, Claremont, CA 91711 USA
关键词
EXPRESSIVE POWER; TRANSITIVE CLOSURE; NAVIGATIONAL XPATH; CALCULUS; COMPLEXITY;
D O I
10.1145/3122831.3122833
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Many graph query languages rely on the composition operator to navigate graphs and select nodes of interests, even though evaluating compositions of relations can be costly. Often, this need for composition can be reduced by rewriting towards queries that use semi-joins instead. In this way, the cost of evaluating queries can be significantly reduced. We study techniques to recognize and apply such rewritings. Concretely, we study the relationship between the expressive power of the relation algebras, that heavily rely on composition, and the semi-join algebras, that replace the composition operator in favor of the semi-join operators. As our main result, we show that each fragment of the relation algebras where intersection and/or difference is only used on edges (and not on complex compositions) is expressively equivalent to a fragment of the semi-join algebras. This expressive equivalence holds for node queries that evaluate to sets of nodes. For practical relevance, we exhibit constructive steps for rewriting relation algebra queries to semi-join algebra queries, and prove that these steps lead to only a well-bounded increase in the number of steps needed to evaluate the rewritten queries. In addition, on node-labeled graphs that are sibling-ordered trees, we establish new relationships among the expressive power of Regular XPath, Conditional XPath, FO-logic, and the semi-join algebra augmented with restricted fixpoint operators.
引用
收藏
页数:10
相关论文
共 50 条
  • [11] A JSON']JSON document algebra for query optimization
    Llano-Rios, Tomas
    Khalefa, Mohamed
    Badia, Antonio
    INFORMATION SYSTEMS, 2025, 132
  • [12] A RECURSIVE ALGEBRA AND QUERY OPTIMIZATION FOR NESTED RELATIONS
    COLBY, LS
    PROCEEDINGS OF THE 1989 ACM SIGMOD INTERNATIONAL CONFERENCE ON THE MANAGEMENT OF DATA, 1989, 18 : 273 - 283
  • [13] An Optimization Method Based on XML Query Algebra
    Zhang, Qiuyu
    Wang, Min
    SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING: THEORY AND PRACTICE, VOL 1, 2012, 114 : 199 - 206
  • [14] Asymptotically Better Query Optimization Using Indexed Algebra
    Fent, Philipp
    Moerkotte, Guido
    Neumann, Thomas
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2023, 16 (11): : 3018 - 3030
  • [15] SQL query optimization through nested relational algebra
    Cao, Bin
    Badia, Antonio
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2007, 32 (03):
  • [16] An Object Algebra Approach to Multidatabase Query Decomposition in Donají
    Juan C. Lavariega
    Susan D. Urban
    Distributed and Parallel Databases, 2002, 12 : 27 - 71
  • [17] An object algebra approach to multidatabase query decomposition in Donaji
    Lavariega, JC
    Urban, SD
    DISTRIBUTED AND PARALLEL DATABASES, 2002, 12 (01) : 27 - 71
  • [18] Graph query algebra and visual proximity rules for biological pathway exploration
    Wu, Keqin
    Sun, Liang
    Schmidt, Carl
    Chen, Jian
    INFORMATION VISUALIZATION, 2017, 16 (03) : 217 - 231
  • [19] A Linear Algebra Approach to Some Problems of Graph Theory
    Kalinina, Elizaveta A.
    Khitrov, Gennady M.
    2017 ELEVENTH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGIES (CSIT), 2017, : 5 - 8
  • [20] Graph-based cyclic multi-join query optimization algorithm
    Yu, H
    Wang, XK
    Zhang, JY
    ADVANCES IN WEB-AGE INFORMATION MANAGEMENT: PROCEEDINGS, 2004, 3129 : 745 - 750