DocumentCode :
1059805
Title :
Path signatures: a way to speed up recursion in relational databases
Author :
Teuhola, Jukka
Author_Institution :
Dept. of Comput. Sci., Turku Univ., Finland
Volume :
8
Issue :
3
fYear :
1996
fDate :
6/1/1996 12:00:00 AM
Firstpage :
446
Lastpage :
454
Abstract :
Composite objects often involve recursive relationships, so-called bills-of-materials, which are cumbersome to handle in relational database systems. The relationships constitute a directed graph, where the successors of a node represent its components, recursively. Instead of the whole transitive closure (all ancestor-descendant pairs), the task is to retrieve the descendants of any given node. A simple relational solution is suggested, which packs information of the ancestor path of each node into a fixed-length code, called the signature. The code is nonunique, and its purpose is to define a relatively small superset of the descendants, as well as to establish a basis for clustering. It supports effective retrieval of the descendants, in terms of both disk accesses and DBMS calls. The method performs best for tree-structured graphs, where the processing time typically decreases by a factor of more than 10, compared to a simple loop of joins. Also, general directed graphs, both acyclic and cyclic, can be processed more effectively. The method is implemented on top of a relational system, but advantages can be gained on other platforms, too
Keywords :
database theory; directed graphs; relational databases; tree data structures; DBMS calls; ancestor path; bills-of-materials; clustering; composite objects; descendants superset; directed graph; disk accesses; fixed-length code; node successors; nonunique code; path encoding; path signatures; processing time; recursive relationships; relational databases; transitive closure; tree-structured graphs; CADCAM; Computer aided manufacturing; Computer aided software engineering; Concurrent computing; Data models; Helium; Object oriented modeling; Relational databases; Spatial databases; Transaction databases;
fLanguage :
English
Journal_Title :
Knowledge and Data Engineering, IEEE Transactions on
Publisher :
ieee
ISSN :
1041-4347
Type :
jour
DOI :
10.1109/69.506711
Filename :
506711
Link To Document :
بازگشت