Conjunctive Queries with Comparisons

被引:4
|
作者
Wang, Qichen [1 ]
Yi, Ke [2 ]
机构
[1] Hong Kong Baptist Univ, Hong Kong, Peoples R China
[2] HKUST, Hong Kong, Peoples R China
关键词
D O I
10.1145/3514221.3517830
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Conjunctive queries with predicates in the form of comparisons that span multiple relations have regained interest recently, due to their relevance in OLAP queries, spatiotemporal databases, and machine learning over relational data. The standard technique, predicate pushdown, has limited efficacy on such comparisons. A technique by Willard can be used to process short comparisons that are adjacent in the join tree in time linear in the input size plus output size. In this paper, we describe a new algorithm for evaluating conjunctive queries with both short and long comparisons, and identify an acyclic condition under which linear time can be achieved. We have also implemented the new algorithm on top of Spark, and our experimental results demonstrate order-of-magnitude speedups over SparkSQL on a variety of graph patterns and analytical queries.
引用
收藏
页码:54 / 62
页数:9
相关论文
共 50 条
  • [21] OPTIMIZATION OF A SUBCLASS OF CONJUNCTIVE QUERIES
    BISKUP, J
    DUBLISH, P
    SAGIV, Y
    ACTA INFORMATICA, 1995, 32 (01) : 1 - 26
  • [22] PROLOG, CONJUNCTIVE QUERIES AND RULES
    MASSART, DL
    DESMET, M
    TRAC-TRENDS IN ANALYTICAL CHEMISTRY, 1985, 4 (05) : 111 - 112
  • [23] The complexity of acyclic conjunctive queries
    Gottlob, G
    Leone, N
    Scarcello, F
    JOURNAL OF THE ACM, 2001, 48 (03) : 431 - 498
  • [24] ORDERING CONJUNCTIVE QUERIES.
    Smith, David E.
    Genesereth, Michael R.
    1600, (26):
  • [25] On Containment of Conjunctive Queries with Negation
    Felea, Victor
    ADVANCES IN DATABASES AND INFORMATION SYSTEMS, PROCEEDINGS, 2009, 5739 : 206 - 218
  • [26] Conjunctive queries over trees
    Gottlob, Georg
    Koch, Christoph
    Schulz, Klaus U.
    JOURNAL OF THE ACM, 2006, 53 (02) : 238 - 272
  • [27] Learnability of solutions to conjunctive queries
    Chen, Hubie
    Valeriote, Matthew
    Journal of Machine Learning Research, 2019, 20
  • [28] Conjunctive queries over DAGs
    Ronen, Royi
    Shmueli, Oded
    NEXT GENERATION INFORMATION TECHNOLOGIES AND SYSTEMS, PROCEEDINGS, 2006, 4032 : 129 - 140
  • [29] Tractable counting of the answers to conjunctive queries
    Pichler, Reinhard
    Skritek, Sebastian
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2013, 79 (06) : 984 - 1001
  • [30] LINEAR PROGRAMS WITH CONJUNCTIVE DATABASE QUERIES
    Capelli, Florent
    Crosetti, Nicolas
    Niehren, Joachim
    Ramon, Jan
    LOGICAL METHODS IN COMPUTER SCIENCE, 2024, 20 (01) : 1 - 9