Introduction
In modern distributed systems and multi-agent environments, information is rarely centralized. Data often originates from multiple, potentially conflicting sources. While fields like Knowledge Representation have long explored "belief merging" and Social Choice Theory has refined voting mechanisms for collective decision-making, the formal aggregation of relational databases has remained relatively under-explored. This paper establishes a theoretical foundation for "database aggregation," investigating how to merge multiple databases into a single collective structure while maintaining integrity and ensuring query consistency.
Problem Statement
When multiple agents submit distinct relational databases, conflicts are inevitable. The challenge lies in defining a merging process that is both fair (representing the agents' inputs) and rational (preserving the structural rules of the database). Specifically, if all individual databases obey a set of integrity constraints—such as primary keys or foreign keys—how can we guarantee that the aggregated database does not violate these same rules? Furthermore, the paper investigates the property of commutativity: whether querying the merged database yields the same result as merging the answers from individual database queries.
Methodological Framework
The authors model databases as finite first-order relational structures and define several Aggregation Procedures inspired by social choice theory:
- Set-Theoretic Rules: Union (accepting a tuple if any agent provides it) and Intersection (accepting only if all agents provide it).
- Quota Rules: Accepting a tuple if it appears in at least $k$ databases (e.g., a simple majority).
- Distance-based Functions: Identifying a compromise database that minimizes the symmetric distance to all input databases, effectively finding a "median" structure.
To evaluate these procedures, the authors employ the Axiomatic Method. They test rules against properties such as Independence (the decision on a specific tuple depends only on the agents' views of that specific tuple), Anonymity (all agents are treated equally), and Monotonicity (additional support for a tuple should not lead to its rejection).
Key Insights and Theoretical Results
The Database Discursive Paradox
A central finding is the "Database Discursive Paradox." Similar to the doctrinal paradox in legal theory, merging databases that individually satisfy a rule can result in a collective database that breaks it. For instance, if two databases satisfy the constraint "Every employee must have a department," a simple majority merge might result in an employee being included without their corresponding department record, thus violating the integrity constraint.
Axiomatic Characterization
The authors prove that any aggregation rule that is anonymous, independent, and monotonic must necessarily be a Quota rule. Furthermore, they demonstrate that in scenarios with an odd number of agents and no integrity constraints, calculating a computationally intensive distance-based compromise is mathematically equivalent to performing a simple majority vote on every tuple.
Preservation of Integrity Constraints
The paper analyzes Collective Rationality, or the ability of a rule to "lift" constraints from the individual to the collective level:
- Functional Dependencies: Quota rules preserve functional dependencies (like primary keys) only if the quota is strictly greater than half the agents ($> n/2$). While the Intersection rule preserves all functional dependencies, the Union rule preserves none.
- Referential Constraints: For foreign keys to be maintained, the quota for the referenced table must be exactly 1. This ensures that if any agent claims a referenced record exists, it is included to prevent orphaned keys.
Query Commutativity
A critical practical concern is whether the system can avoid building a massive master database by simply querying individual sources and aggregating the results. The authors prove that the Union aggregator perfectly commutes with queries written in the "positive existential fragment" of first-order logic (queries using only AND, OR, and EXISTS, without negations or universal quantifiers).
Conclusion and Future Directions
This research provides a rigorous logical framework for merging structured data. While the current model is limited to relational databases without function symbols, it identifies the specific syntactic boundaries where distributed query answering is mathematically sound. Future work suggests applying these results to optimize distributed architectures, where it may be computationally cheaper to aggregate query answers rather than maintaining a single, massive aggregated database. Understanding which query languages allow for this shortcut without sacrificing accuracy remains a vital direction for database engineering.
Summary updated