Abstract
Database queries can be expressed as constraints imposed on the solution set of data items in the database. We propose an approach to incremental partial evaluation of queries in which we treat the index as a hierarchically tiered set of constraints which specify the sets of data items that can be found under subtrees of the index. At any given point in the evaluation, we proceed by propagating the constraints from the index structure into the query. The result is a general framework for making full use of index information in evaluation of queries, even for complex data types, that minimises fetches of blocks from disk for which there is sufficient information in the indices to deduce that they cannot contain data items that participate in the answer. The approach supports complex selections, joins, sorting and other database query operations.
Preview
Unable to display preview. Download preview PDF.
References
J.L. Bentley and H.A. Maurer. Efficient worst-case data structures for range searching. Acta Information, 13(2):155–168, 1980.
Jon L. Bentley. Decomposable searching problems. Information Processing Letters, 8(5):133–136, Jun. 1979.
Jon L. Bentley. Multidimensional binary search trees used for associative searching. CACM, 18(9):509–517, Sep. 1985.
S. Bressan, A. Sexton, and M. Wallace. Implementing index data structures using constraint logic programming. In CP'96 Workshop on Constraints and Databases, Cambridge Massachusetts, USA, Aug. 1996.
D. Comer. The ubiquitous b-tree. Computing Surveys, 11(2):121–137, June 1979.
S. P. Dandamudi and P.G.Sorenson. Algorithms for bd trees. Software — Practice and Experience, 16(2):1077–1096, Dec. 1986.
M. Freeston. The bang file: a new kind of grid file. In Proceedings of the ACM SIGMOD Conference, pages 260–269, San Francisco, May 1987.
Michael Freeston. A general solution of the n-dimensional b-tree problem. In Proceedings of the ACM SIGMOD International Conference on Management of Data, pages 80–91, San Jose, California, May 1986.
M.W. Freeston. Advances in the design of the bang file. In Proceedings of the Third International Conference on Foundations of Data Organization and Algorithms (FODO3), Paris, France, Jun. 1989.
G. Graefe. Query evaluation techniques for large databases. Computing Surveys, 25(2):73–170, June 1993.
Joseph M. Hellerstein, Jeffrey F. Naughton, and Avi Pfeffer. Generalized search trees for database systems. In Proceedings of the 21st VLDB Conference, pages 562–573, Zurich, Switzerland, 1995.
C. A. R. Hoare. Quicksort. Computer Journal, 5(1):10–15, 1962.
P. Kanellakis, G. Kuper, and P. Revesz. Constraint query languages. In Proceedings of the 9th ACM Symposium on Principles of Database Systems, pages 233–243, Nashville, 1990.
David B. Lomet and Betty Salzberg. A robust multi-attribute search structure. In Proceedings of the 5th International Conference on Data Engineering, pages 296–304, 1989.
David B. Lomet and Betty Salzberg. The hB-tree: A multiattribute indexing method with good guaranteed performance. ACM Transactions on Database Systems, 15(4):625–658, Dec. 1990.
G. M. Morton. A computer-oriented geodetic data base and a new technique in file sequencing. IBM Ltd. Ottawa, Canada, 1966.
Thomas A. Mueck and Manfred J. Schauer. Optimizing sort order query execution in balanced and nested grid files. IEEE Transactions on Knowledge and Data Engineering, 7(2):246–260, April 1995.
Y. Ohsawa and M. Sakauchi. The bd-tree — a new n-dimensional data structure with highly efficient dynamic characteristics. In Proceedings of the IFIP Conference, pages 539–544, Paris, France, 1983.
J. Orenstein and T. Merrett. A class of data structures for associative searching. In Proceedings of the ACM Principles of Database Systems Conference, pages 181–190, Waterloo, Canada, 1984.
J. T. Robinson. The K-D-B-tree: A search structure for large multidimensional dynamic indexes. In Proceedings of the ACM SIGMOD Conference, pages 10–18, Ann Arbor, Michigan, Apr. 1981.
B. Salzberg. File Structures: An Analytic Approach. Prentice-Hall, Englewood Cliffs, NJ, 1988.
Alan P. Sexton. Sorting indexed files. In preparation, University of Birmingham, UK, School of Computer Science, 1996.
H. Tropf and H. Herzog. Multidimensional range search in dynamically balanced trees. Angewandte Informatik, 23(2):71–77, Feb. 1981.
Marvin White. N-trees: Large ordered indexes for multi-dimensional space. Technical report, U.S. Bureau of the Census, Application Mathematics Research Staff, Statistical Research Division, Mar. 1982.
D.E. Willard. The super B-tree algorithm. Technical Report TR-22-78, Aiken Computation Lab, Harvard University, 1979.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1996 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Sexton, A.P. (1996). Querying indexed files. In: Gaede, V., Brodsky, A., Günther, O., Srivastava, D., Vianu, V., Wallace, M. (eds) Constraint Databases and Applications. CDB 1997. Lecture Notes in Computer Science, vol 1191. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-62501-1_37
Download citation
DOI: https://doi.org/10.1007/3-540-62501-1_37
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-62501-8
Online ISBN: 978-3-540-68049-9
eBook Packages: Springer Book Archive