Unrolling SQL: 1999 Recursive Queries

被引:0
|
作者
Boniewicz, Aleksandra [1 ]
Stencel, Krzystof [1 ]
Wisniewski, Piotr [1 ]
机构
[1] Nicholas Copernicus Univ, Fac Math & Comp Sci, Torun, Poland
关键词
DATABASES;
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Hierarchical and graph data structures are common in practical application development. In order to query such data, one can use SQL:1999 recursive queries based on Common Table Expressions. Nowadays, numerous relational database management systems implement them. However, some popular systems, e.g. MySQL, still lack this useful feature. In this paper we show three methods to circumvent this situation: (1) the direct loop, (2) horizontal unrolling and (3) vertical unrolling. We analyze them and present a report on tests of their efficiency. We also describe our implementation of these methods as a prototype extension to Hibernate, a major object-relational mapping system. This extension allows running SQL:1999 recursive queries directly from an application code, even when the underlying DBMS does not support them.
引用
收藏
页码:345 / 354
页数:10
相关论文
共 50 条
  • [41] BEAS: Bounded Evaluation of SQL Queries
    Cao, Yang
    Fan, Wenfei
    Wang, Yanghao
    Yuan, Tengfei
    Li, Yanchao
    Chen, Laura Yu
    SIGMOD'17: PROCEEDINGS OF THE 2017 ACM INTERNATIONAL CONFERENCE ON MANAGEMENT OF DATA, 2017, : 1667 - 1670
  • [42] Edit Based Grading of SQL Queries
    Chandra, Bikash
    Banerjee, Ananyo
    Hazra, Udbhas
    Joseph, Mathew
    Sudarshan, S.
    CODS-COMAD 2021: PROCEEDINGS OF THE 3RD ACM INDIA JOINT INTERNATIONAL CONFERENCE ON DATA SCIENCE & MANAGEMENT OF DATA (8TH ACM IKDD CODS & 26TH COMAD), 2021, : 56 - 64
  • [43] NESTED RELATIONS AND RECURSIVE QUERIES
    LINNEMANN, V
    LECTURE NOTES IN COMPUTER SCIENCE, 1989, 361 : 205 - 216
  • [44] Inherent complexity of recursive queries
    Cosmadakis, Stavros
    Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 1999, : 148 - 154
  • [45] Decidable containment of recursive queries
    Calvanese, D
    De Giacomo, G
    Vardi, MY
    THEORETICAL COMPUTER SCIENCE, 2005, 336 (01) : 33 - 56
  • [46] Inherent complexity of recursive queries
    Cosmadakis, S
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2002, 64 (03) : 466 - 495
  • [47] LexEQUAL: Supporting multilexical queries in SQL
    Kumaran, A
    Haritsa, JR
    20TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2004, : 845 - 845
  • [48] Observing SQL Queries in their Natural Habitat
    Grust, Torsten
    Rittinger, Jan
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2013, 38 (01):
  • [50] ACL-SQL: Generating SQL Queries from Natural Language
    Kaoshik, Ronak
    Patil, Rohit
    Prakash, R.
    Agarawal, Shaurya
    Jain, Naman
    Singh, Mayank
    CODS-COMAD 2021: PROCEEDINGS OF THE 3RD ACM INDIA JOINT INTERNATIONAL CONFERENCE ON DATA SCIENCE & MANAGEMENT OF DATA (8TH ACM IKDD CODS & 26TH COMAD), 2021, : 423 - 423