Compensation-based query processing in on-line transaction processing systems

  • Øystein Grøvlen
  • Øystein Torbjørnsen
  • Svein-Olaf Hvasshovd
Transaction Processing
Part of the Lecture Notes in Computer Science book series (LNCS, volume 1271)


One of the problems associated with running ad-hoc queries in an OLTP system is lock contention. Compensation-based query processing has been proposed as a solution to this problem. In this paper, undo/no-redo compensation is used to bring inconsistent copies of the base relations into a transaction-consistent state. Queries process the database internal log to obtain information on updates made by concurrent transactions. A performance analysis of the algorithm shows that it can be executed efficiently in an OLTP system with low to medium system utilization.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    P. M. Bober. Towards Practical Multiversion Locking Techniques for On-Line Query Processing. PhD thesis, University of Wisconsin — Madison, 1993.Google Scholar
  2. 2.
    P. M. Bober and M. J. Carey. On mixing queries and transactions via multiversion locking. In Proc. Int. Conf. Data. Eng., pages 535–545, Tempe, AZ, Feb. 1992.Google Scholar
  3. 3.
    D. DeWitt and J. Gray. Parallel database systems: The future of high performance database systems. Commun. ACM, 35(6):85–98, June 1992.Google Scholar
  4. 4.
    K. P. Eswaran, J. N. Gray, R. A. Lorie, and I. L. Traiger. The notions of consistency and predicate locks in a database system. Commun. ACM, 19(11):624–633, Nov. 1976.Google Scholar
  5. 5.
    J. Gray and A. Reuter. Transaction Processing: Concepts and Techniques. Morgan Kaufmann, San Mateo, CA, 1993.Google Scholar
  6. 6.
    Ø. Grøvlen, S.-O. Hvasshovd, and Ø. Torbjørnsen. On-line query processing through undo/no-redo compensation. In Proc. Int. Workshop on Advanced Transaction Models and Architectures, Goa, India, Sept. 1996. Available at Scholar
  7. 7.
    S.-O. Hvasshovd. Recovery in Parallel Database Systems. VieWeg, Wiesbaden, Germany, 1996.Google Scholar
  8. 8.
    S.-O. Hvasshovd, Ø. Torbjørnsen, S. E. Bratsberg, and P. Holager. The ClustRa telecom database: High availability, high throughput, and real-time response. In Proc. Int. Conf. VLDB, pages 469–477, Zurich, Switzerland, Sept. 1995.Google Scholar
  9. 9.
    P. Mishra and M. H. Eich. Join processing in relational databases. ACM Comput. Surv., 24(1):63–113, Mar. 1992.Google Scholar
  10. 10.
    C. Mohan, H. Pirahesh, and R. Lorie. Efficient and flexible methods for transient versioning of records to avoid locking by read-only transactions. In Proc. ACM SIGMOD, pages 124–133, San Diego, CA, June 1992.Google Scholar
  11. 11.
    D. Quass and J. Widom. On-line warehouse view maintenace. In Proc. ACM SIGMOD, Tucson, AZ, May 1997.Google Scholar
  12. 12.
    V. Srinivasan and M. J. Carey. Compensation-based on-line query processing. In Proc. ACM SIGMOD, pages 331–340, San Diego, CA, June 1992.Google Scholar
  13. 13.
    K.-L. Wu, P. S. Yu, and M.-S. Chen. Dynamic finite versioning: An effective versioning approach to concurrent transaction and query processing. In Proc. Int. Conf. Data. Eng., pages 577–586, Vienna, Austria, Apr. 1993.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1997

Authors and Affiliations

  • Øystein Grøvlen
    • 1
  • Øystein Torbjørnsen
    • 2
  • Svein-Olaf Hvasshovd
    • 2
  1. 1.Department of Computer and Information SciencesNorwegian University of Science and TechnologyTrondheimNorway
  2. 2.Telenor R&DTrondheimNorway

Personalised recommendations