Given some integrity constraints over a distributed database, we consider the problem of incrementally checking global consistency in response to updates made to the base relations but without accessing all these base relations. In many application areas such as collaborative design, mobile computing and enterprise information systems, total data availability cannot be assumed. Even if all the base data is available, some of it may incur such a high cost that its use should only be considered as a last resort. Without looking at all the relations that participate in the constraint, how can one meaningfully check a constraint for violation? When the constraint is known to be satisfied prior to the update, the state of the relations that are available (aka local) can in principle be used to infer something about the relations that are not available (aka remote). This observation is the basis for the existence of tests that guarantee that global consistency is preserved under a given update, without looking at all the base data. In order to make consistency maintenance practical, the challenge is to find those tests that are most general (we call Complete Local Tests) and that are efficient to generate and execute. This paper addresses the problem of finding efficient complete local tests for an important class of constraints that are very common in practice: constraints expressible as conjunctive queries with negated subgoals. For constraints where the predicates for the remote relations do not occur more than once, we present complete local tests under insertions and deletions to the local relations. These tests can be expressed as safe, nonrecursive Datalog ¬ queries against the local relations. These results also apply to other constraints with negation that are not conjunctive.
[1]
Frank Wm. Tompa,et al.
Maintaining materialized views without accessing base data
,
1988,
Inf. Syst..
[2]
Nam Huyn.
Efficient View Self-Maintenance
,
1996,
VIEWS.
[3]
Ashish Gupta,et al.
Using Partial Information to Update Materialized Views
,
1995,
Inf. Syst..
[4]
Ashish Gupta,et al.
Partial information based on integrity constraint checking
,
1995
.
[5]
Sanjai Tiwari,et al.
Constraint Management in Distributed AEC Databases
,
1993
.
[6]
Alon Y. Halevy,et al.
Queries Independent of Updates
,
1993,
VLDB.
[7]
Jennifer Widom,et al.
Constraint checking with partial information
,
1994,
PODS.
[8]
N. Huyn.
Testing CQC^\neg constraints under limited data access.
,
1996
.
[9]
N. Huyn.
Testing Cqc : Constraints under Limited Data Access
,
2022
.
[10]
Jeffrey D. Ullman,et al.
Principles of Database and Knowledge-Base Systems, Volume II
,
1988,
Principles of computer science series.
[11]
Jeffrey D. Ullman,et al.
Principles Of Database And Knowledge-Base Systems
,
1979
.
[12]
Jeffrey D. Uuman.
Principles of database and knowledge- base systems
,
1989
.
[13]
Jennifer Widom,et al.
Local verification of global integrity constraints in distributed databases
,
1993,
SIGMOD '93.
[14]
Nam Huyn.
Efficient Complete Local Tests for Conjunctive Query Constraints with Negation
,
1997,
ICDT.