Complete Yet Practical Search for Minimal Query Reformulations Under Constraints

被引:11
|
作者
Ileana, Ioana [1 ]
Cautis, Bogdan [2 ,3 ]
Deutsch, Alin [4 ]
Katsis, Yannis [4 ]
机构
[1] CNRS LTCI, Inst Mines Telecom, Telecom ParisTech, Paris, France
[2] Univ Paris Sud, Orsay, France
[3] Inria Saclay, Palaiseau, France
[4] Univ Calif San Diego, San Diego, CA 92103 USA
关键词
database views; integrity constraints; query optimization; chase;
D O I
10.1145/2588555.2593683
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We revisit the Chase&Backchase (C&B) algorithm for query reformulation under constraints, which provides a uniform solution to such particular-case problems as view-based rewriting under constraints, semantic query optimization, and physical access path selection in query optimization. For an important class of queries and constraints, C&B has been shown to be complete, i.e. guaranteed to find all (join-)minimal reformulations under constraints. C&B is based on constructing a canonical rewriting candidate called a universal plan, then inspecting its exponentially many sub-queries in search for minimal reformulations, essentially removing redundant joins in all possible ways. This inspection involves chasing the subquery. Because of the resulting exponentially many chases, the conventional wisdom has held that completeness is a concept of mainly theoretical interest. We show that completeness can be preserved at practically relevant cost by introducing Provcs(C&B), a novel reformulation algorithm that instruments the chase to maintain provenance information connecting the joins added during the chase to the universal plan subqueries responsible for adding these joins. This allows it to directly "read off" the minimal reformulations from the result of a single chase of the universal plan, saving exponentially many chases of its subqueries. We exhibit natural scenarios yielding speedups of over two orders of magnitude between the execution of the best view-based rewriting found by a commercial query optimizer and that of the best rewriting found by Prov(C&B) (which the optimizer misses because of limited reasoning about constraints).
引用
收藏
页码:1015 / 1026
页数:12
相关论文
共 50 条
  • [21] How to decide query containment under constraints using a description logic
    Horrocks, I
    Sattler, U
    Tessaris, S
    Tobies, S
    [J]. LOGIC FOR PROGRAMMING AND AUTOMATED REASONING, PROCEEDINGS, 2000, 1955 : 326 - 343
  • [22] Taming the Infinite Chase: Query Answering under Expressive Relational Constraints
    Cali, Andrea
    Gottlob, Georg
    Kifer, Michael
    [J]. JOURNAL OF ARTIFICIAL INTELLIGENCE RESEARCH, 2013, 48 : 115 - 174
  • [23] Finding a minimal tree pattern under neighborhood constraints
    Kimelfeld, Benny
    Sagiv, Yehoshua
    [J]. Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 2011, : 235 - 246
  • [24] On maximality conditions of the minimal eigenvalue under several constraints
    Seiranyan, AP
    [J]. DOKLADY AKADEMII NAUK, 1997, 356 (04) : 458 - 461
  • [25] PERFORMANCE OF DOWNLINK COMP IN LTE UNDER PRACTICAL CONSTRAINTS
    Mondal, Bishwarup
    Visotsky, Eugene
    Thomas, Timothy A.
    Wang, Xiaoyi
    Ghosh, Amitava
    [J]. 2012 IEEE 23RD INTERNATIONAL SYMPOSIUM ON PERSONAL INDOOR AND MOBILE RADIO COMMUNICATIONS (PIMRC), 2012, : 2049 - 2054
  • [26] Minimal Risk Portfolios under SSD efficiency constraints
    Kopa, Milos
    [J]. MATHEMATICAL METHODS IN ECONOMICS (MME 2014), 2014, : 465 - 470
  • [27] MINIMAL PARALLELISM FOR ASSOCIATIVE COMPUTATIONS UNDER TIME CONSTRAINTS
    HELLER, D
    [J]. COMPUTING, 1979, 22 (02) : 101 - 118
  • [28] DETERMINATION OF COMPLETE ODFS UNDER ASSUMPTION OF A MINIMAL VALUE
    WAGNER, F
    HUMBERT, M
    ESLING, C
    MULLER, J
    [J]. TEXTURES AND MICROSTRUCTURES, 1991, 14 : 45 - 51
  • [29] Job search and asset accumulation under borrowing constraints
    Rendon, S
    [J]. INTERNATIONAL ECONOMIC REVIEW, 2006, 47 (01) : 233 - 263
  • [30] Efficient multicast search under delay and bandwidth constraints
    Bar-Noy, Amotz
    Naor, Zohar
    [J]. WIRELESS NETWORKS, 2006, 12 (06) : 747 - 757