• DocumentCode
    2458802
  • Title

    Analyzing Query Optimization Process: Portraits of Join Enumeration Algorithms

  • Author

    Nica, Anisoara ; Charlesworth, Ian ; Panju, Maysum

  • Author_Institution
    Sybase, An SAP Co., Waterloo, ON, Canada
  • fYear
    2012
  • fDate
    1-5 April 2012
  • Firstpage
    1301
  • Lastpage
    1304
  • Abstract
    Search spaces generated by query optimizers during the optimization process encapsulate characteristics of the join enumeration algorithms, the cost models, as well as critical decisions made for pruning and choosing the best plan. We demonstrate the Join Enumeration Viewer which is a tool designed for visualizing, mining, and comparing plan search spaces generated by different join enumeration algorithms when optimizing same SQL statement. We have enhanced Sybase SQL Anywhere relational database management system to log, in a very compact format, its search space during an optimization process. Such optimization log can then be analyzed by the Join Enumeration Viewer which internally builds the logical and physical plan graphs representing complete and partial plans considered during the optimization process. The optimization logs also contain statistics of the resource consumption during the query optimization such as optimization time breakdown, for example, for logical join enumeration versus costing physical plans, and memory allocation for different optimization structures. The SQL Anywhere Optimizer implements a highly adaptable, self-managing, search space generation algorithm by having several join enumeration algorithms to choose from, each enhanced with different ordering and pruning techniques. The emphasis of the demonstration will be on comparing and contrasting these join enumeration algorithms by analyzing their optimization logs. The demonstration scenarios will include optimizing SQL statements under various conditions which will exercise different algorithms, pruning and ordering techniques. These search spaces will then be visualized and compared using the Join Enumeration Viewer.
  • Keywords
    SQL; data mining; data visualisation; graph theory; query processing; relational databases; resource allocation; statistical analysis; storage management; Join Enumeration Viewer tool; SQL Anywhere Optimizer; SQL statement optimization; Sybase SQL Anywhere relational database management system; cost model; costing physical plan; critical decision; highly adaptable algorithm; join enumeration algorithm; logical join enumeration; logical plan graph; memory allocation; optimization log; optimization structure; optimization time breakdown; ordering technique; physical plan graph; pruning technique; query optimization process analysis; resource consumption statistics; search space comparison; search space generation algorithm; search space mining; search space visualization; self-managing algorithm; Algorithm design and analysis; Conferences; Costing; Heuristic algorithms; Optimization; Partitioning algorithms; Visualization;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Data Engineering (ICDE), 2012 IEEE 28th International Conference on
  • Conference_Location
    Washington, DC
  • ISSN
    1063-6382
  • Print_ISBN
    978-1-4673-0042-1
  • Type

    conf

  • DOI
    10.1109/ICDE.2012.132
  • Filename
    6228193