• DocumentCode
    1478468
  • Title

    Projective Distribution of XQuery with Updates

  • Author

    Zhang, Ying ; Tang, Nan ; Boncz, Peter

  • Author_Institution
    Centrum Wiskunde & Inf. (CWI), Amsterdam, Netherlands
  • Volume
    22
  • Issue
    8
  • fYear
    2010
  • Firstpage
    1059
  • Lastpage
    1076
  • Abstract
    We investigate techniques to automatically decompose any XQuery query-including updating queries specified by the XQuery Update Facility (XQUF)-into subqueries, that can be executed near their data sources, i.e., function-shipping. The main challenge addressed here is to ensure that the decomposed queries properly respect XML node identity and preserve structural properties, when (parts of) XML nodes are sent over the network, effectively copying them. We start by precisely characterizing the conditions, under which pass-by-value parameter passing causes semantic differences between remote execution of an XQuery expression and its local execution. We then formulate a conservative strategy that effectively avoids decomposition in such cases. To broaden the possibilities of query distribution, we extend the pass-by-value semantics to a pass-by-fragment semantics, which keeps better track of node identities and structural properties. The pass-by-fragment semantics is subsequently refined to a pass-by-projection semantics by means of a novel runtime XML projection technique, which safely eliminates most semantic differences between the local and remote execution of an XQuery expression, and strongly reduces message sizes. Finally, we discuss how these techniques can be used for updating queries, both under the standard W3C XQUF specification, as well as under an extended semantics that allows to update remote documents. The proposed techniques are implemented in XRPC, a simple yet efficient XQuery extension that enables function-shipping by adding a Remote Procedure Call mechanism to XQuery. Experiments on MonetDB/XQuery establish the performance potential of our XQuery decomposition techniques.
  • Keywords
    XML; distributed databases; formal specification; query processing; W3C XQUF specification; XML node; XML projection technique; XQuery decomposition techniques; XQuery distribution; XQuery expression; XQuery extension; XQuery update facility; pass-by-fragment semantics; pass-by-projection semantics; pass-by-value parameter; projective distribution; remote procedure call mechanism; Distributed databases; XQuery decomposition.;
  • fLanguage
    English
  • Journal_Title
    Knowledge and Data Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    1041-4347
  • Type

    jour

  • DOI
    10.1109/TKDE.2010.62
  • Filename
    5453373