A bottom-up strategy for query decomposition

被引:0
|
作者
Thuy, Le Thi Thu [1 ]
Duong, Doan Dai [1 ]
Bhavsar, Virendrakumar C. [1 ]
Boley, Harold [2 ]
机构
[1] Univ New Brunswick, Fac Comp Sci, Fredericton, NB E3B 5A3, Canada
[2] Natl Res Council Canada, Inst Informat Technol e Business, Fredericton, NB E3B 5A3, Canada
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In order to access data from various different data repositories, in Global-As-View approaches an input query is decomposed into several subqueries. Normally, this decomposition is based on a set of mappings, which describe the correspondence of data elements between a global schema and local ones. However, building mappings is a difficult task, especially when the number of participating local schemas is large. In our approach, an input query is automatically decomposed into subqueries without using mappings. An algorithm is proposed to transform a global path expression (e.g., an XPath query) into local path expressions (e.g., XPath queries) executable in local schemas. This algorithm transforms parts of a path expression from right to left. This transformation is applied from the bottom to the top of a tree and depends on structures of local schemas. Compared to top-down approaches as by Lausen and Marron (LM), our bottom-up approach can be more efficient. Even in the worst case, the time complexity of our algorithm can be n times better than that of LM, where n is the number of parts in a global query. In the best case, for a k-ary tree of height h, the time complexity of our algorithm is T(n,k,h)= min(n,h), whereas that of LM we have found is T(n,k,h)=n*(k(h+1)-1)/(k-1) This can reduce to a large extent the time for forming subqueries for local (e.g., XML) schemas.
引用
收藏
页码:215 / +
页数:3
相关论文
共 50 条