Abstract
We present a new approach to optimization of query languages using cached results of previously evaluated queries. It is based on the stack-based approach (SBA) and object-oriented query language SBQL, which assume description of semantics in the form of abstract implementation of query/ programming language constructs. Pragmatic universality of SBQL and its precise, formal operational semantics make it possible to investigate various crucial issues related to this kind of optimization, in particular, organization of the cache enabling fast retrieval of cached queries, decomposition of complex queries into smaller ones and query normalization enabling higher reuse of cached queries, development of fast method to recognize consistency of queries after database updates and development of methods of incremental altering of cached query results after database updates. This paper is focused on the issues concerning optimal and fast utilization of the result cache and on the elimination method devoted to detecting cached queries that become inconsistent after a database update.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Ali, M.A., Fernandes, A.A.A., Paton, N.W.: MOVIE: An Incremental Maintenance System for Materialized Object Views. In: Proc. of Data & Knowledge Engineering, vol. 47, pp. 131–166 (2003)
Blakeley, J.A., Larson, P., Tompa, W.M.: Efficiently Updating Materialized Views. In: Proc. of ACM SIGMOD, pp. 61–71 (1986)
Chaudhuri, S., Krishnamurthy, R., Potamianos, S., Shim, K.: Optimizing Queries with Materialized Views. In: Proc. of Intl. Conf. on Data Engineering, pp. 190–200 (1995)
Chen, C.M., Roussopoulos, N.: The Implementation and Performance Evaluation of the ADMS Query Optimizer: Integrating Query Result Caching and Matching. In: Jarke, M., Bubenko, J., Jeffery, K. (eds.) EDBT 1994. LNCS, vol. 779. Springer, Heidelberg (1994)
Chen, L., Rundensteiner, E.A.: ACE-XQ: A CachE-ware XQuery Answering System. In: Proc. of WebDB, pp. 31–36 (2002)
Comer, D.: The Ubiquitous B-Tree. Computing Surveys 11(2), 121–137 (1979)
Cybula, P., Kozankiewicz, H., Stencel, K., Subieta, K.: Optimization of Distributed Queries in Grid via Caching. In: Meersman, R., Tari, Z., Herrero, P. (eds.) OTM-WS 2005. LNCS, vol. 3762, pp. 387–396. Springer, Heidelberg (2005)
Cybula, P., Subieta, K.: Cached Queries in the Stack-Based Approach. Institute of Computer Science, Polish Academy of Sciences, Report 985, Warsaw (2005)
Helmer, S., Moerkotte, G.: A Study of Four Index Structures for Set-Valued Attributes of Low Cardinality. Technical Report 2/99, Universität Mannheim (1999)
IBM DB2 Universal Database SQL Reference, 2, Version 8 (2002); Faster Federated Queries with MQTs, DB2 Magazine 8(3) (2003)
Kemper, A., Moerkotte, G.: Access Support in Object Bases. In: Proc. of ACM SIGMOD, pp. 364–376 (1990)
Larson, P., Yang, H.: Computing Queries from Derived Relations. In: Proc. of VLDB, pp. 259–269 (1985)
Litwin, W.: Linear Hashing: A New Tool for File and Table Addressing. In: Proc. of 6th VLDB, pp. 212–223 (1980)
MySQL 5.4 Reference Manual, Ch. 7.5.5: The MySQL Query Cache (2009)
ODRA (Object Database for Rapid Application Development), Description and Programmer Manual, http://sbql.pl/various/ODRA/ODRA_manual.html
Oracle 9i Materialized Views, An Oracle White Paper (May 2001); On Oracle Database 11g, Oracle Magazine, vol. XXI(5)(2007)
Rzeczkowski, W., Subieta, K.: Stored Queries – a Data Organization for Query Optimization. In: Proc. of Data & Knowledge Engineering, vol. 3, pp. 29–48 (1988)
EL-Sayed, M., Wang, L., Ding, L., Rundensteiner, E.A.: An Algebraic Approach for Incremental Maintenance of Materialized XQuery Views. In: Proc. of WIDM (2002)
Subieta, K.: Theory and Practice of Object Query Languages. Polish-Japanese Institute of Information Technology (2004) (in Polish)
Subieta, K., Beeri, C., Matthes, F., Schmidt, J.W.: A Stack Based Approach to Query Languages. In: Proc. of 2nd Springer Workshops in Computing (1995)
Subieta, K., Rzeczkowski, W.: Query Optimization by Stored Queries. In: Proc. of VLDB, pp. 369–380 (1987)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2010 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Cybula, P., Subieta, K. (2010). Query Optimization through Cached Queries for Object-Oriented Query Language SBQL. In: van Leeuwen, J., Muscholl, A., Peleg, D., Pokorný, J., Rumpe, B. (eds) SOFSEM 2010: Theory and Practice of Computer Science. SOFSEM 2010. Lecture Notes in Computer Science, vol 5901. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-11266-9_26
Download citation
DOI: https://doi.org/10.1007/978-3-642-11266-9_26
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-11265-2
Online ISBN: 978-3-642-11266-9
eBook Packages: Computer ScienceComputer Science (R0)