Abstract
In XML query optimization, most algorithms still use the traditional serial mode, so they can hardly take full advantage of multi-core resources. This paper proposes data partition for the XML database so that the new approach reaches load balance between different cores. Each thread processes the sub-regional data independently to reduce synchronization and communication overhead between cores. This paper also discusses the usage of task preemption in multi-core querying. According to experiments, our strategy requires less time consumption and gains better workload balance than both NBP and SBP.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Zuo, W., Chen, Y., Heand, F., Chen, K.: Optimization strategy of top-down join enumeration on modern multi-core CPUs. J. Comp. 6, 2004–2012 (2011)
Chen, S., Ailamaki, A., Gibbons, P.B., Mowry, T.C.: Improving hash join performance through prefetching. ACM Trans. Database Syst. 32, 3–21 (2007)
Lu, W., Chiu, K., Pan, Y.: A parallel approach to XML parsing. In: 7th IEEE/ACM International Conference on Grid Computing, pp. 223–230 (2006)
Feng, J., Liu, L., Li, G., Li, J., Sun, Y.: An efficient parallel pathstack algorithm for processing XML twig queries on multi-core systems. In: 15th International Conference on Database Systems for Advanced Applications, pp. 277–291 (2010)
Kozankiewicz, H., Stencel, K., Subieta, K.: Distributed query optimization in the stack-based approach. In: Yang, L.T., Rana, O.F., Di Martino, B., Dongarra, J. (eds.) HPCC 2005. LNCS, vol. 3726, pp. 904–909. Springer, Heidelberg (2005)
Zhou, L., He, X., Li, K.: An improved approach for materialized view selection based on genetic algorithm. J. Comput. 7, 1591–1598 (2012)
Tok, W.H., Bressan, S., Lee, M.L.: Twig’n join: Progressive query processing of multiple XML streams. In: 13th International Conference on Database Systems for Advanced Applications, pp. 546–553 (2008)
Wang, X., Zhou, A., He, J., Ng, W., Hung, P.: Multi-query evaluation over compressed XML data in daas. In: Service and Application Design Challenges in the Cloud, pp. 185–208 (2011)
Gao, J., Wang, T.J., Yang, D.: MQTree based query rewriting over multiple XML views. In: Wagner, R., Revell, N., Pernul, G. (eds.) DEXA 2007. LNCS, vol. 4653, pp. 562–571. Springer, Heidelberg (2007)
Tang, L., Yu, Y., Wang, G., Yu, G.: Design and implementation of a parallel data partitioning algorithm for XML data. Mini-Micro Syst. 25, 1164–1169 (2004)
Wang, W., Jiang, H., Lu, H., Yu, J.X.: PBiTree coding and efficient processing of containment joins. In: Proceedings of the 19th International Conference on Data Engineering (ICDE03), pp. 391–402 (2003)
Wang, G., Tang, L., Yu, Y., Sun, B., Yu, G.: A data placement strategy for parallel XML databases. J. Softw. 17, 770–781 (2007)
Wang, J., Meng, X., Wang, S.: Structural join of XML based on range partitioning. J. Softw. 15, 720–729 (2004)
Machdi, I., Amagasa, T., Kitagawa, H.: Executing parallel twigstack algorithm on a multi-core system. In: Proceedings of the 11th International Conference on Information Integration and Web-based Applications and Services, pp. 176–184 (2009)
Zhang, C., Naughton, J., DeWitt, D., Luo, Q., Lohman, G.: On supporting containment queries in relational database management systems. In: Proceedings of the 2001 ACM SIGMOD International Conference on Management of Data, pp. 425–436 (2001)
Chen, R., Liao, H., Chen, W.: XML parsing schema based oil parallel sub-tree construction. Comput. Sci. 38, 191–194 (2011)
Acknowledgment
This work was partially supported by a grant from the NSF (Natural Science Foundation) of China under grant number 60803160, 61272110, 61100133 and 61303117, the Key Projects of National Social Science Foundation of China under grant number 11&ZD189. It was also partially supported by NSF of Hubei under grant number 2013CFB334, NSF of educational agency of Hubei Prov. under grant number Q20101110, and the State Key Lab of Software Engineering Open Foundation of Wuhan University under grant number SKLSE2012-09-07.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Tian, P., Luo, D., Li, Y., Gu, J. (2014). XML Multi-core Query Optimization Based on Task Preemption and Data Partition. In: Kim, W., Ding, Y., Kim, HG. (eds) Semantic Technology. JIST 2013. Lecture Notes in Computer Science(), vol 8388. Springer, Cham. https://doi.org/10.1007/978-3-319-06826-8_22
Download citation
DOI: https://doi.org/10.1007/978-3-319-06826-8_22
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-06825-1
Online ISBN: 978-3-319-06826-8
eBook Packages: Computer ScienceComputer Science (R0)