Performance study on "Carry-along Sort" vs. recursive commands for building dynamic materialized hierarchy path

  • Authors:
  • Prabhakaran Sethuraman;Lakshmi Rajamani

  • Affiliations:
  • SCSVMV University, Enathur, Kanchipuram, India;Osmania University, Hyderabad, Andhrapradesh, India

  • Venue:
  • Proceedings of the International Conference on Advances in Computing, Communication and Control
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Concept hierarchies are important for generalization across database/data mining applications. Hierarchy structures are widely used in data model and SQL Server implementation for real world entities like manager employee relation, organizational structures, regional structures etc. In order to get all the descendants for a node in the hierarchy, we need to recursively query the children of the node, and the children of the children, and so on until we reach the leaf level. In order to achieve this we proposed a new algorithm called "Carry-along Sort" to build a materialized hierarchy path dynamically. However, the current versions of database provides the new feature called Common Table Expression (CTE) in SQL 2005 and CONNECT BY PRIOR in Oracle 9i, which can be used to solve this request. "Carry-along sort" is the "tricky" method and this method can be efficient from I/O standpoint when compare to CTE and Connect by PRIOR while building materialized hierarchy path dynamically. The performance study can be conducted in terms of reducing the space, I/O cost and increasing the response time of the query (speed). The current study is mainly focused on reducing the I/O cost and brief coverage on increasing the swiftness of the query as well. The complete algorithm was tested in SQL Server 2005.