Towards Compiling Graph Queries in Relational Engines

被引:2
|
作者
Tahboub, Ruby Y. [1 ]
Wu, Xilun [1 ]
Essertel, Gregory M. [1 ]
Rompf, Tiark [1 ]
机构
[1] Purdue Univ, W Lafayette, IN 47907 USA
基金
美国国家科学基金会;
关键词
Query Compilation; Graph Query Engines; Futamura Projections; PERFORMANCE; FRAMEWORK;
D O I
10.1145/3315507.3330200
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The increasing demand for graph query processing has prompted the addition of support for graph workloads on top of standard relational database management systems (RDBMS). Although this appears like a good idea - after all, graphs are just relations - performance is typically suboptimal since graph workloads are naturally iterative and rely extensively on efficient traversal of adjacency structures that are not typically implemented in an RDBMS. Adding such specialized adjacency structures is not at all straightforward due to the complexity of typical RDBMS implementations. The iterative nature of graph queries also practically requires a form of runtime compilation and native code generation which adds another dimension of complexity to the RDBMS implementation and any potential extensions. In this paper, we demonstrate how the idea of the first Futamura projection, which links interpreted query engines and compilers through specialization, can be applied to compile graph workloads in an efficient way that simplifies the construction of relational engines which also support graph workloads. We extend the LB2 main-memory query compiler with graph adjacency structures and operators. We implement a subset of the Datalog logical query language evaluation to enable processing graph and recursive queries efficiently. The graph extension matches, and sometimes outperforms, best-of-breed low-level graph engines.
引用
收藏
页码:30 / 41
页数:12
相关论文
共 50 条
  • [1] Efficient Relational Techniques for Processing Graph Queries
    Sherif Sakr
    Ghazi Al-Naymat
    [J]. Journal of Computer Science and Technology, 2010, 25 : 1237 - 1255
  • [2] Relational and graph queries over a transition system
    Boudaoud, Siham Rim
    Es-Salhi, Khaoula
    Ribaud, Vincent
    Teodorov, Ciprian
    [J]. IEEE EUROCON 2015 - INTERNATIONAL CONFERENCE ON COMPUTER AS A TOOL (EUROCON), 2015, : 243 - 248
  • [3] Efficient Relational Techniques for Processing Graph Queries
    Sherif Sakr
    Ghazi Al-Naymat
    [J]. Journal of Computer Science & Technology, 2010, 25 (06) : 1237 - 1255
  • [4] Formalising openCypher Graph Queries in Relational Algebra
    Marton, Jozsef
    Szarnyas, Gabor
    Varro, Daniel
    [J]. ADVANCES IN DATABASES AND INFORMATION SYSTEMS, ADBIS 2017, 2017, 10509 : 182 - 196
  • [5] Efficient Relational Techniques for Processing Graph Queries
    Sakr, Sherif
    Al-Naymat, Ghazi
    [J]. JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2010, 25 (06) : 1237 - 1255
  • [6] Performance of Graph and Relational Databases in Complex Queries
    Kotiranta, Petri
    Junkkari, Marko
    Nummenmaa, Jyrki
    [J]. APPLIED SCIENCES-BASEL, 2022, 12 (13):
  • [7] Compiling Path Queries
    Narayana, Srinivas
    Arashloo, Mina Tashmasbi
    Rexford, Jennifer
    Walker, David
    [J]. 13TH USENIX SYMPOSIUM ON NETWORKED SYSTEMS DESIGN AND IMPLEMENTATION (NSDI '16), 2016, : 207 - 222
  • [8] Towards the Formalization of Fuzzy Relational Database Queries
    Perovkic, Aleksandar
    Takaci, Aleksandar
    Skrbic, Srdjan
    [J]. ACTA POLYTECHNICA HUNGARICA, 2009, 6 (01) : 185 - 193
  • [9] GraphFrames: An Integrated API for Mixing Graph and Relational Queries
    Dave, Ankur
    Jindal, Alekh
    Li, Li Erran
    Xin, Reynold
    Gonzalez, Joseph
    Zaharia, Matei
    [J]. FOURTH INTERNATIONAL WORKSHOP ON GRAPH DATA MANAGEMENT EXPERIENCES AND SYSTEMS (GRADES2016), 2016,
  • [10] A comparison of statistical relational learning and graph neural networks for aggregate graph queries
    Embar, Varun
    Srinivasan, Sriram
    Getoor, Lise
    [J]. MACHINE LEARNING, 2021, 110 (07) : 1847 - 1866