Advertisement

Efficient XQuery Evaluation of Grouping Conditions with Duplicate Removals

  • Norman May
  • Guido Moerkotte
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4704)

Abstract

Currently, grouping in XQuery must be expressed implicitly with nested FLWOR expressions. With XQuery 1.1, an explicit group by clause will be part of this query language. As users integrate this new construct into their applications, it becomes important to have efficient evaluation techniques available to process even complex grouping conditions. Among them, the removal of distinct values or distinct nodes in the partitions defined by the group by clause is not well-supported yet. The evaluation technique proposed in this paper is able to handle duplicate removal in the partitions efficiently. Experiments show the superiority of our solution compared to state-of-the-art query processing.

Keywords

Query Processing Aggregate Function Partial Plan Aggregation Variable Query Execution Time 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 1.
    Beyer, K., Chamberlin, D., Colby, L., Özcan, F., Pirahesh, H., Xu, Y.: Extending XQuery for analytics. In: SIGMOD (2005)Google Scholar
  2. 2.
    Boag, S., Chamberlin, D., Fernández, M.F., Florescu, D., Robie, J., Siméon, J.: XQuery 1.0: An XML Query Language. W3C (2007)Google Scholar
  3. 3.
    Borkar, V., Carey, M.: Extending XQuery for grouping, duplicate elimination, and outer joins. In: XML 2004 (2004)Google Scholar
  4. 4.
    Charikar, M., Chaudhuri, S., Motwani, R., Narasayya, V.: Towards estimation error guarantees for distinct values. In: Proc. of the ACM PODS (2000)Google Scholar
  5. 5.
    Chaudhuri, S., Shim, K.: Including group-by in query optimization. In: Proc. VLDB (1994)Google Scholar
  6. 6.
    Engovatov, D.: XML Query 1.1 Requirements. W3C Working Draft (2007)Google Scholar
  7. 7.
    Fiebig, T., Helmer, S., Kanne, C-C., Moerkotte, G., Neumann, J., Schiele, R., Westmann, T.: Anatomy of a native XML base management system. j-VLDB-J 11(4) (2002)Google Scholar
  8. 8.
    Fiebig, T., Moerkotte, G.: Algebraic XML construction and its optimization in Natix. WWW Journal 4(3) (2001)Google Scholar
  9. 9.
    Gokhale, C., Gupta, N., Kumar, P., Lakshmanan, L., Ng, R., Prakash, B.A.: Complex group-by queries for XML. In: Proc. ICDE (2007)Google Scholar
  10. 10.
    Graefe, G.: Query evaluation techniques for large databases. ACM Computing Surveys 25(2) (1993)Google Scholar
  11. 11.
    Gupta, A., Harinarayan, V., Quass, D.: Aggregate-query processing in data warehousing environments. In: Proc. VLDB (1995)Google Scholar
  12. 12.
    Kay, M.: Positional grouping in XQuery. In: <XIME-P/> (2006)Google Scholar
  13. 13.
    May, N., Helmer, S., Moerkotte, G.: Strategies for query unnesting in XML databases. ACM TODS 31(3) (2006)Google Scholar
  14. 14.
    May, N., Moerkotte, G.: Main memory implementations for binary grouping. In: XSym (2005)Google Scholar
  15. 15.
    Paparizos, S., Al-Khalifa, S., Jagadish, H.V., Lakshmanan, L., Nierman, A., Srivastava, D., Wu, Y.: Grouping in XML. In: EDBT workshops (2002)Google Scholar
  16. 16.
    Re, C., Siméon, J., Fernández, M.F.: A complete and efficient algebraic compiler for XQuery. In: ICDE (2006)Google Scholar
  17. 17.
    Wiwatwattana, N., Jagadish, H.V., Lakshmanan, L., Srivastava, D.: X3: A cube operator for XML OLAP. In: Proc. ICDE (2007)Google Scholar
  18. 18.
    Yan, W.P., Larson, P.-Å.: Performing group-by before join. In: Proc. ICDE (1994)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2007

Authors and Affiliations

  • Norman May
    • 1
  • Guido Moerkotte
    • 1
  1. 1.University of Mannheim, B6, 29, 68131 MannheimGermany

Personalised recommendations