Relaxed currency and consistency
- 13 June 2004
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 815-826
- https://doi.org/10.1145/1007568.1007661
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.Keywords
This publication has 10 references indexed in Scilit:
- DBCachePublished by Association for Computing Machinery (ACM) ,2003
- Moving objects databases: issues and solutionsPublished by Institute of Electrical and Electronics Engineers (IEEE) ,2002
- Using Latency-Recency Profiles for Data Delivery on the WebPublished by Elsevier ,2002
- Adaptive precision setting for cached approximate valuesPublished by Association for Computing Machinery (ACM) ,2001
- Optimizing queries using materialized viewsPublished by Association for Computing Machinery (ACM) ,2001
- Obsolescent materialized views in query processing of enterprise information systemsPublished by Association for Computing Machinery (ACM) ,1999
- Least expected cost query optimizationPublished by Association for Computing Machinery (ACM) ,1999
- A Mediator for Approximate Consistency: Supporting “Good Enough” Materialized ViewsJournal of Intelligent Information Systems, 1997
- Replica control in distributed systemsPublished by Association for Computing Machinery (ACM) ,1991
- Read-only transactions in a distributed databaseACM Transactions on Database Systems, 1982