skip to main content
article
Free Access

Online index rebuild

Published:16 May 2000Publication History
Skip Abstract Section

Abstract

In this paper we present an efficient method to do online rebuild of a B+-tree index. This method has been implemented in Sybase Adaptive Server Enterprise (ASE) Version 12.0. It provides high concurrency, does minimal amount of logging, has good performance and does not deadlock with other index operations. It copies the index rows to newly allocated pages in the key order so that good space utilization and clustering are achieved. The old pages are deallocated during the process. Our algorithm differs from the previously published online index rebuild algorithms in two ways. It rebuilds multiple leaf pages and then propagates the changes to higher levels. Also, while propagating the leaf level changes to higher levels, level 11 pages are reorganized, eliminating the need for a separate pass. Our performance study shows that our approach results in significant reduction in logging and CPU time. Also, our approach uses the same concurrency control mechanism as split and shrink operations, which made it attractive for implementation.

References

  1. Com79 Douglas Comer. The Ubiquitous B-Tree. Computing Surveys, Vol. 11, No. 2, June 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. GR93 Jim Gray and Andreas Reuter. Transaction Processing: Concepts and Techniques, Morgan Kaufmann Publishers, Inc., 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. LY81 Lehman, E L., and S. B. Yao. Efficient Locking for Concurrent operations on B-Trees. ACM TODS. Vol. 6, No. 4, pages 650-670, December 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. MF92 C. Mohan and Frank Levine. ARIES/IM: An Efficient and High Concurrency Index Management Method using Write-Ahead Logging. Proc. of ACM SIGMOD Conf, pages 371-380, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. SBC97 Gary H. Sockut, Thomas A. Beavin and Chung-C. Chang: A Method for On-Line Reorganization of a Database. IBM Systems Journal. Vol. 36, No. 3, pages 411-436, 1997. Available at http://www.research.ibm.com/journal/sj/363/s o ckut. html Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Smi90 Gary Smith. Online Reorganization of Key- Sequenced Tables and Files. Tandem Systems Review, October 1990.Google ScholarGoogle Scholar
  7. ZS96 Chendong Zou and Betty Salzberg. On-line Reorganization of Sparsely-populated B+ trees. Proc. ofACM SIG- MOD Conf, pages 115-124, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Online index rebuild

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      • Published in

        cover image ACM SIGMOD Record
        ACM SIGMOD Record  Volume 29, Issue 2
        June 2000
        609 pages
        ISSN:0163-5808
        DOI:10.1145/335191
        Issue’s Table of Contents
        • cover image ACM Conferences
          SIGMOD '00: Proceedings of the 2000 ACM SIGMOD international conference on Management of data
          May 2000
          604 pages
          ISBN:1581132174
          DOI:10.1145/342009

        Copyright © 2000 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 16 May 2000

        Check for updates

        Qualifiers

        • article

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader