Order-Preserving Optimization of Twig Queries with Structural Preferences

TitleOrder-Preserving Optimization of Twig Queries with Structural Preferences
Publication TypeConference Paper
Year of Publication2008
AuthorsCho, S. R., and W. - T. Balke
Conference NameInternational Database Engineering & Applications Symposium (IDEAS)
Conference LocationCoimbra, Portugal

Efficient query processing using XPath or XQuery has inspired a lot of research. In contrast to classical exact match retrieval, in today’s systems, specifying preferences rather than simple hard constraints is essential. As the structure of XML documents plays a major part in retrieval, recently approximate query matching on structure has received attention. However, query processing of structural user preferences has not yet been considered. In this paper we enable users to express structural preferences and consider the problem of optimizing XML twig queries while preserving the ordering induced on the result set by such user preferences. Evaluating such queries generally needs a rewriting into a set of queries, where each leaf node can be expanded by combinations of structural elements derived from the preference information. Since such structure expansions typically contain redundancies and the efficiency of query evaluation strongly depends on the size of the set of rewritten queries, it is important to identify and simplify necessary expansions. We give a detailed analysis of this process and present an optimization algorithm that determines a minimal set of queries, which in turn are minimal in their expanded nodes, while maintaining the ordering induced by the preference structure. Finally, we provide a comprehensive practical evaluation of our optimization against the XMark benchmark dataset.

IDEAS08.pdf559.96 KB