Towards an Exhaustive Set of Rewriting Rules for XQuery Optimization: BizQuery Experience.
Today it is wildly recognized that optimization based on rewriting leads to faster query execution. The role of a query rewriting grows significantly when a query defined in terms of some view is processed. Using views is a good idea for building flexible virtual data integration systems with declarative query support. At present time such systems tend to be based on the XML data model and use XML as the internal data representation for processing query over heterogeneous data. Hence an elaborated algorithm of query rewriting is of great importance for efficient processing of XML declarative queries.
This paper describes the query rewriting techniques for the XQuery language that is implemented as part of the BizQuery virtual data integration system. The goals of XQuery rewriting are stated. An algebra for rewriting is proposed. Besides query rewriting rules for FLWR expressions the rules for XQuery functions and recursive XQuery functions are presented. Also the role of the XML schema in query rewriting is discussed.Full text of the paper in pdf
6th East-European Conference on Advances in Databases and Information Systems (ADBIS) LNCS 2435, 2002, p. 340-345.