Skip to main content
Log in

On-the-fly, incremental, consistent reading of entire databases

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

We describe an algorithm to read entire databases with locking concurrency control allowing multiple readersor an exclusive writer. The algorithm runs concurrently with the normal transaction processing (on-the-fly), and locks the entities in the database one by one (incremental). We prove that the algorithm produces consistent pictures of the database. We also show that conflicts between the algorithm and some updates, although necessary, can be resolved.

Reading entire databases consistently, on-the-fly, incremental algorithms can avoid the database downtime trade-off between frequent checkpoints and crash recovery delay, thus improving system availability and reliability. Our algorithm reads the database once and writes only to sequential output, lowering its implementation and execution costs. A simple extension runs in parallel on several processors and produces consistent pictures of entire distributed databases.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. R. Attar, P. A. Bernstein, and N. Goodman, Site initialization, recovery, and back-up in a distributed database system,IEEE Trans. Software Engrg,10 (1984), 645–650.

    Article  Google Scholar 

  2. R. Bayer, H. Heller, and A. Reiser, Parallelism and recovery in database systems,ACM Trans. Database Systems, 5 (1980), 139–156.

    Article  MATH  Google Scholar 

  3. K. P. Eswaran, J. N. Gray, R. A. Lorie, and I. L. Traiger, The notions of consistency and predicate locks in a database system,Comm. ACM,19 (1976), 624–633.

    Article  MATH  MathSciNet  Google Scholar 

  4. M. J. Fischer, N. D. Griffeth, and N. A. Lynch, Global states of a distributed system,Proceedings of a Symposium on Reliability in Distributed Software and Database Systems, 1981.

  5. H. Garcia-Molina and G. Wiederhold, Read-only transactions in a distributed database,ACM Trans. Database Systems, 7 (1982), 209–234.

    Article  MATH  Google Scholar 

  6. J. Gray, P. McJones, M. Blasgen, B. Lindsay, R. Lorie, T. Price, F. Putzolu, and I. Traiger, The recovery manager of the System R database manager,ACM Comput. Surveys,13 (1981), 223–242.

    Article  Google Scholar 

  7. J. N. Gray, Notes on data base operating systems, InOperating Systems—An Advanced Course, Springer-Verlag, New York, 1978. Also IBM Research Report RJ2188, February 1978.

    Google Scholar 

  8. Won Kim, Highly available systems for database applications,ACM Comput. Surveys,16 (1984), 71–98.

    Article  Google Scholar 

  9. C. M. Krishna, K. G. Shin, and Y. H. Lee, Optimization criteria for checkpoint placement,Comm. ACM, 27 (1984), 1008–1012.

    Article  Google Scholar 

  10. G. M. Lohman and J. A. Muckstadt, Optimal policy for batch operations: backup, checkpointing, reorganization and updating,ACM Trans. Database Systems, 2 (1977), 209–222.

    Article  Google Scholar 

  11. R. A. Lorie, Physical integrity in a large segmented database,ACM Trans. Database Systems, 2 (1977), 91–104.

    Article  Google Scholar 

  12. D. J. Rosenkrantz, Dynamic database dumping,Proceedings of the ACMSIGMOD Conference on Management of Data, 1978, pp. 3–8.

  13. A. N. Tantawi and M. Ruschitzka, Performance analysis of checkpointing strategies,ACM Trans. Comput. Systems, 2 (1984), 123–144.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Additional information

Communicated by Dale Skeen.

This work was partially supported by the National Science Foundation under Grant No. MCS-8004111.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Pu, C. On-the-fly, incremental, consistent reading of entire databases. Algorithmica 1, 271–287 (1986). https://doi.org/10.1007/BF01840448

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01840448

Key words

Navigation