Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1183614.1183706acmconferencesArticle/Chapter ViewAbstractPublication PagescikmConference Proceedingsconference-collections
Article

Query optimization using restructured views

Published: 06 November 2006 Publication History

Abstract

We study optimization of relational queries using materialized views, where views may be regular or restructured. In a restructured view, some data from the base table(s) are represented as metadata - that is, schema information, such as table and attribute names - or vice versa.Using restructured views in query optimization opens up a new spectrum of views that were not previously available, and can result in significant additional savings in query-evaluation costs. These savings can be obtained due to a significantly larger set of views to choose from, and may involve reduced table sizes, elimination of self-joins, clustering produced by restructuring, and horizontal partitioning.In this paper we propose a general query-optimization framework that treats regular and restructured views in a uniform manner and is applicable to SQL select-project-join queries and views with or without aggregation. Within the framework we provide (1) algorithms to determine when a view (regular or restructured) is usable in answering a query, and (2) algorithms to rewrite a query using usable views.Semantic information, such as knowledge of the key of a view, can be used to further optimize a rewritten query. Within our general query-optimization framework, we develop techniques for determining the key of a (regular or restructured) view, and show how this information can be used to further optimize a rewritten query. It is straightforward to integrate all our algorithms and techniques into standard query-optimization algorithms.

References

[1]
F. Afrati and R. Chirkova. Selecting and using views to compute aggregate queries. In Proc. ICDT, 2005.
[2]
Sanjay Agrawal, Surajit Chaudhuri, and Vivek R. Narasayya. Automated selection of materialized views and indexes in SQL databases. In vldb, pages 496--505, 2000.
[3]
R. G. Bello, K. Dias, A. Downing, J. J. Feenan Jr., J. L. Finnerty, W. D. Norcott, H. Sun, A. Witkowski, and M. Ziauddin. Materialized views in Oracle. In VLDB, 1998.
[4]
Ashok K. Chandra and Philip M. Merlin. Optimal implementation of conjunctive queries in relational databases. In stoc, pages 77--90, 1977.
[5]
S. Chaudhuri and U. Dayal. An overview of data warehousing and OLAP technology. SIGMOD Record, 26(1):65--74, 1997.
[6]
S. Chaudhuri and U. Dayal. An overview of data warehousing and OLAP technology. SIGMOD Record, 26(1):65--74, 1997.
[7]
Surajit Chaudhuri, Ravi Krishnamurthy, Spyros Potamianos, and Kyuseok Shim. Optimizing queries with materialized views. In icde, pages 190--200, 1995.
[8]
Sara Cohen, Werner Nutt, and Alexander Serebrenik. Rewriting aggregate queries using views. In pods, pages 155--166, 1999.
[9]
Conor Cunningham, Goetz Graefe, and César A. Galindo-Legaria. PIVOT and UNPIVOT: Optimization and execution strategies in an RDBMS. In vldb, pages 998--1009, 2004.
[10]
Keir B. Davis and Fereidoon Sadri. Optimization of SchemaSQL queries. In ideas, pages 111--116, 2001.
[11]
D. DeHaan, P.-Å. Larson, and J. Zhou. Stacked indexed views in Microsoft SQL server. In Proc. SIGMOD, 2005.
[12]
J. Goldstein and P.-Å. Larson. Optimizing queries using materialized views: A practical, scalable solution. In Proc. SIGMOD, 2001.
[13]
Ashish Gupta, Venky Harinarayan, and Dallan Quass. Aggregate-query processing in data warehousing environments. In Proc. VLDB, pages 358--369, 1995.
[14]
Mark Gyssens, Laks V. S. Lakshmanan, and Iyer N. Subramanian. Tables as a paradigm for querying and restructuring. In pods, pages 93--103, 1996.
[15]
Alon Y. Halevy. Answering queries using views. vldbj, 10(4):270--294, 2001.
[16]
Andreas Koeller and Elke A. Rundensteiner. Incremental maintenance of schema-restructuring views. In edbt, 2002.
[17]
Andreas Koeller and Elke A. Rundensteiner. Incremental maintenance of schema-restructuring views in SchemaSQL. IEEE TKDE, 16(9):1096--1111, 2004.
[18]
Ravi Krishnamurthy, Witold Litwin, and William Kent. Language features for interoperability of databases with schematic discrepancies. In sigmod, pages 40--49, 1991.
[19]
Laks V. S. Lakshmanan, Fereidoon Sadri, and Iyer N. Subramanian. On the logical foundations of schema integration and evolution in heterogeneous database systems. In dood, pages 81--100, 1993.
[20]
Laks V. S. Lakshmanan, Fereidoon Sadri, and Iyer N. Subramanian. SchemaSQL: A language for interoperability in relational multi-database systems. In vldb, pages 239--250, 1996.
[21]
Laks V. S. Lakshmanan, Fereidoon Sadri, and Iyer N. Subramanian. Logic and algebraic languages for interoperability in multidatabase systems. jlp, 33(2):101--149, November 1997.
[22]
Laks V. S. Lakshmanan, Fereidoon Sadri, and Subbu N. Subramanian. On efficiently implementing SchemaSQL on a SQL database system. In vldb, pages 471--482, 1999.
[23]
Laks V. S. Lakshmanan, Fereidoon Sadri, and Subbu N. Subramanian. SchemaSQL - an extension to SQL for multi-database interoperability. tods, 26(4), 2001.
[24]
Werner Nutt, Yehoshua Sagiv, and Sara Shurin. Deciding equivalences among aggregate queries. In pods, pages 214--223, 1998.
[25]
Stephen P. Slocum. Optimizing SQL and SchemaSQL queries by restructuring. Master's thesis, Department of Mathematical Sciences, University of North Carolina at Greensboro, April 2001.
[26]
Divesh Srivastava, Shaul Dar, H. V. Jagadish, and Alon Y. Levy. Answering queries with aggregation using views. In Proc. VLDB, pages 318--329, 1996.
[27]
Subbu N. Subramanian and Shivakumar Venkataraman. Query optimization using restructuring views, 1998. IBM Internal Report.
[28]
Transaction processing performance council: TPC benchmarks. http://www.tpc.org.
[29]
M. Zaharioudakis, R. Cochrane, G. Lapis, H. Pirahesh, and M. Urata. Answering complex SQL queries using automatic summary tables. In Proc. SIGMOD, pages 105--116, 2000.

Cited By

View all

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
CIKM '06: Proceedings of the 15th ACM international conference on Information and knowledge management
November 2006
916 pages
ISBN:1595934332
DOI:10.1145/1183614
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 06 November 2006

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. materialized views
  2. query optimization
  3. restructured views

Qualifiers

  • Article

Conference

CIKM06
CIKM06: Conference on Information and Knowledge Management
November 6 - 11, 2006
Virginia, Arlington, USA

Acceptance Rates

Overall Acceptance Rate 1,861 of 8,427 submissions, 22%

Upcoming Conference

CIKM '25

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)1
Reflects downloads up to 13 Nov 2024

Other Metrics

Citations

Cited By

View all

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media