skip to main content
10.1145/1007568.1007661acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
Article

Relaxed currency and consistency: how to say "good enough" in SQL

Published:13 June 2004Publication History

ABSTRACT

Despite the widespread and growing use of asynchronous copies to improve scalability, performance and availability, this practice still lacks a firm semantic foundation. Applications are written with some understanding of which queries can use data that is not entirely current and which copies are "good enough"; however, there are neither explicit requirements nor guarantees. We propose to make this knowledge available to the DBMS through explicit currency and consistency (C&C) constraints in queries and develop techniques so the DBMS can guarantee that the constraints are satisfied. In this paper we describe our model for expressing C&C constraints, define their semantics, and propose SQL syntax. We explain how C&C constraints are enforced in MTCache, our prototype mid-tier database cache, including how constraints and replica update policies are elegantly integrated into the cost-based query optimizer. Consistency constraints are enforced at compile time while currency constraints are enforced at run time by dynamic plans that check the currency of each local replica before use and select sub-plans accordingly. This approach makes optimal use of the cache DBMS while at the same time guaranteeing that applications always get data that is "good enough" for their purpose.

References

  1. {ABG88} R. Alonso, D. Barbará, H. Garcia-Molina, and S. Abad. Quasi-copies: Efficient Data Sharing for Information Retrieval Systems. In EDBT, 1988. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. {ABK+03} M. Altinel, C. Bornhövd, S. Krishnamurthy, C. Mohan, H. Pirahesh, and B. Reinwald. Cache Tables: Paving The Way For An Adaptive Database Cache. In VLDB, 2003.Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. {BAK+03} C. Bornhövd, M. Altinel, S. Krishnamurthy, C. Mohan, H. Pirahesh, and B. Reinwald. DBCache: Middle-Tier Database Caching For Highly Scalable E-Business Architectures. In SIGMOD, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. {BGM92} D. Barbará and H. Garcia-Molina. The Demarcation Protocol: A Technique For Maintaining Linear Arithmetic Constraints In Distributed Database Systems. In EDBT, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. {BR02} L. Bright and L. Raschid. Using Latency-Recency Profiles for Data Delivery on the Web. In Proc. In VLDB, 2002.Google ScholarGoogle ScholarCross RefCross Ref
  6. {CHS99} F. Chu, J. Halpern, and P. Seshadri. Least Expected Cost Query Optimization: An Exercise In Utility. In PODS, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. {DR99} D. Donjerkovic and R. Ramakrishnan. Probabilistic Optimization Of Top N Queries. In VLDB, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. {Gal99} A. Gal. Obsolescent Materialized Views in Query Processing of Enterprise Information Systems. In CIKM, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. {GMW82} H. Garcia-Molina and G. Wiederhold. Read-Only Transactions In A Distributed Database. In TODS, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. {GN95} R. Gallersdörfer and M. Nicola. Improving Performance in Replicated Databases Through Relaxed Coherency. In VLDB, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. {GL01} J. Goldstein and P. Larson. Optimizing Queries Using Materialized Views: A Practical, Scalable Solution. In SIGMOD, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. {HSW94} Y. Huang, R. Solan, and O. Wolfson. Divergence Caching in Client Server Architectures. In PDIS, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. {KKST98} A. Kermarrec, I. Kuz, M. Steen, and A. Tanenbaum. A Framework For Consistent, Replicated Web Objects. In ICDCS, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. {LC02} S. Weissman L. and P. Chrysanthis. Personalizing Information Gathering For Mobile Database Clients. In SAC, 2002.Google ScholarGoogle Scholar
  15. {LGZ04} P. Larson, J. Goldstein, and J. Zhou. MTCache: Transparent Mid-Tier Database Caching In Sql Server. In ICDE, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. {LR03} A. Labrinidis and N. Roussopoulos. Balancing Performance And Data Freshness In Web Database Servers. In VLDB, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. {OLW01} C. Olston, B. Loo, and J. Widom. Adaptive Precision Setting for Cached Approximate Values. In SIGMOD, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. {OW00} C. Olston and J. Widom. Offering A Precision-Performance Tradeoff For Aggregation Queries Over Replicated Data. In VLDB, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. {PL91} C. Pu and A. Leff. Replica Control In Distributed Systems: An Asynchronous Approach. In SIGMOD, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. {RBSS02} U. Röhm, K. Böhm, H. Schek, and H. Schuldt. FAS - a Freshness-Sensitive Coordination Middleware for a Cluster of OLAP Components. In VLDB, 2002. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. {SF90} A. Segev and W. Fang. Currency-based Updates To Distributed Materialized Views. In ICDE, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. {SK97} L. Seligman and L. Kerschberg. A Mediator For Approximate Consistency: Supporting "Good Enough" Materialized Views. In JIIS, 8(3):203--225, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. {SR90} A. Sheth and M. Rusinkiewicz. Management Of Interdependent Data: Specifying Dependency And Consistency Requirements. In Workshop on the Management of ReplicatedData, pages 133--136, 1990.Google ScholarGoogle Scholar
  24. {WQ87} G. Wiederhold and X. Qian. Modeling Asynchrony In Distributed Databases. In ICDE, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. {WXCJ98} O. Wolfson, B. Xu, S. Chamberlain, and L. Jiang. Moving Objects Databases: Issues And Solutions. In Statistical And Scientific Database Management, pages 111--122, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. {YV00} H. Yu and A. Vahdat. Efficient Numerical Error Bounding For Replicated Network Services. In VLDB, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  1. Relaxed currency and consistency: how to say "good enough" in SQL

      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
      • Published in

        cover image ACM Conferences
        SIGMOD '04: Proceedings of the 2004 ACM SIGMOD international conference on Management of data
        June 2004
        988 pages
        ISBN:1581138598
        DOI:10.1145/1007568

        Copyright © 2004 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: 13 June 2004

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate785of4,003submissions,20%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader