Steno: Automatic Optimization of Declarative Queries

被引:0
|
作者
Murray, Derek G. [1 ]
Isard, Michael [1 ]
Yu, Yuan [1 ]
机构
[1] Univ Cambridge, Comp Lab, Cambridge CB2 1TN, England
关键词
query optimization; abstract machines;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Declarative queries enable programmers to write data manipulation code without being aware of the underlying data structure implementation. By increasing the level of abstraction over imperative code, they improve program readability and, crucially, create opportunities for automatic parallelization and optimization. For example, the Language Integrated Query (LINQ) extensions to C# allow the same declarative query to process in-memory collections, and datasets that are distributed across a compute cluster. However, our experiments show that the serial performance of declarative code is several times slower than the equivalent hand-optimized code, because it is implemented using run-time abstractions-such as iterators-that incur overhead due to virtual function calls and superfluous instructions. To address this problem, we have developed Steno, which uses a combination of novel and well-known techniques to generate code for declarative queries that is almost as efficient as hand-optimized code. Steno translates a declarative LINQ query into type-specialized, inlined and loop-based imperative code. It eliminates chains of iterators from query execution, and optimizes nested queries. We have implemented Steno for uniprocessor, multiprocessor and distributed computing platforms, and show that, for a real-world distributed job, it can almost double the speed of end-to-end execution.
引用
收藏
页码:121 / 131
页数:11
相关论文
共 50 条
  • [11] Databases as Graphs: Predictive Queries for Declarative Machine Learning
    Leskovec, Jure
    PROCEEDINGS OF THE 42ND ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, PODS 2023, 2023, : 1 - 1
  • [12] A step towards genuine declarative language-integrated queries
    Institute of Applied Computer Science, Lodz University of Technology, ul. Stefanowskiego 18/22, Lodz
    90-924, Poland
    Proc. Fed. Conf. Comput. Sci. Inf. Syst., FedCSIS, (935-946):
  • [13] Coordinating declarative queries with a direct manipulation data exploration environment
    Derthick, M
    Roth, SF
    Kolojejchick, J
    IEEE SYMPOSIUM ON INFORMATION VISUALIZATION, PROCEEDINGS, 1997, : 65 - 72
  • [14] KDDLog:Performance and Scalability in Knowledge Discovery by Declarative Queries with Aggregates
    Li, Youfu
    Wang, Jin
    Li, Mingda
    Das, Ariyam
    Gu, Jiaqi
    Zaniolo, Carlo
    2021 IEEE 37TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2021), 2021, : 1260 - 1271
  • [15] Entangled Queries: Enabling Declarative Data-Driven Coordination
    Gupta, Nitin
    Kot, Lucja
    Roy, Sudip
    Bender, Gabriel
    Gehrke, Johannes
    Koch, Christoph
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2012, 37 (03):
  • [16] A step towards genuine declarative language-integrated queries
    Adamus, Radoslaw
    Kowalski, Tomasz Marek
    Wislicki, Jacek
    PROCEEDINGS OF THE 2015 FEDERATED CONFERENCE ON COMPUTER SCIENCE AND INFORMATION SYSTEMS, 2015, 5 : 935 - 946
  • [17] Declarative PTIME queries for relational databases using quantifier elimination
    Doherty, P
    Lukaszewicz, W
    Szalas, A
    JOURNAL OF LOGIC AND COMPUTATION, 1999, 9 (05) : 737 - 758
  • [18] Declarative camera control for automatic cinematography
    Christianson, DB
    Anderson, SE
    He, LW
    Salesin, DH
    Weld, DS
    Cohen, MF
    PROCEEDINGS OF THE THIRTEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND THE EIGHTH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE, VOLS 1 AND 2, 1996, : 148 - 155
  • [19] Declarative modeling and efficient optimization
    Geske, Ulrich
    Wolf, Armin
    INFORMATIK 2010 - Service Science - Neue Perspektiven fur die Informatik, Beitrage der 40. Jahrestagung der Gesellschaft fur Informatik e.V. (GI), 2010, 2 : 691 - 692
  • [20] A declarative framework for analysis and optimization
    Falconer, Henry
    Kelly, Paul H. J.
    Ingram, David M.
    Mellor, Michael R.
    Field, Tony
    Beckmann, Olav
    COMPILER CONSTRUCTION, PROCEEDINGS, 2007, 4420 : 218 - +