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 条
  • [31] Optimization of Declarative Graphics by Parallel Programming
    Balachandran, Meenakshy
    Nagori, Kriti
    Rajan, Aishwarya
    Koolagudi, Shashidhar G.
    Afroz, Fathima
    PROCEEDINGS OF THE 2016 IEEE REGION 10 CONFERENCE (TENCON), 2016, : 1230 - 1235
  • [32] QueryCat: Automatic categorization of MEDLINE queries
    Pratt, W
    Wasserman, H
    JOURNAL OF THE AMERICAN MEDICAL INFORMATICS ASSOCIATION, 2000, : 655 - 659
  • [33] AUTOMATIC PROCESSING OF CURRENT AFFAIRS QUERIES
    SALTON, G
    INFORMATION STORAGE AND RETRIEVAL, 1973, 9 (03): : 165 - 180
  • [34] EQuery: Enable Event-driven Declarative Queries in Programmable Network Measurement
    Ran, Yongyi
    Wu, Xiaoban
    Li, Peilong
    Xu, Chen
    Luo, Yan
    Wang, Liang-min
    NOMS 2018 - 2018 IEEE/IFIP NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM, 2018,
  • [35] Improving Federated Database Queries Using Declarative Rewrite Rules for Quantified Subqueries
    Graham J.L. Kemp
    Peter M.D. Gray
    Andreas R. Sjöstedt
    Journal of Intelligent Information Systems, 2001, 17 : 281 - 299
  • [36] Improving federated database queries using declarative rewrite rules for quantified subqueries
    Kemp, GJL
    Gray, PMD
    Sjöstedt, AR
    JOURNAL OF INTELLIGENT INFORMATION SYSTEMS, 2001, 17 (2-3) : 281 - 299
  • [37] A Declarative Environment for Automatic Performance Evaluation in IaaS Clouds
    Cunha, Matheus
    Mendonca, Nabor
    Sampaio, Americo
    2013 IEEE SIXTH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING (CLOUD 2013), 2013, : 285 - 292
  • [38] OPTIMIZATION OF A SUBCLASS OF CONJUNCTIVE QUERIES
    DUBLISH, P
    BISKUP, J
    SAGIV, Y
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 470 : 455 - 469
  • [39] Partitioned optimization of complex queries
    Chatziantoniou, Damianos
    Ross, Kenneth A.
    INFORMATION SYSTEMS, 2007, 32 (02) : 248 - 282
  • [40] OPTIMIZATION OF QUERIES WITH ADT FUNCTIONS
    ZHANG, XD
    OHBO, N
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 1994, E77D (06) : 660 - 668