- Schema defines a set of rules for relations or tables in relational database.
It is not equivalent to relations.
- Global Schema: a set of global relations as if the database is non-distributed.
- Fragmentation Schema: split global schema into several nonoverlapping portions.
R --> (R1, ..., Rm) 1:m
- Allocation schema: defines at which site(s) a physical image of fragment is located.
- Local mapping schema: map physical images to objects manipulated by local DBMS (site-dependent)
- Transparency
- Fragmentation Transparency (on global schema)
- Location Transparency (on fragmentation schema)
- Local mapping transparency (on allocation/local mapping schema)
- Replication Transparency (on fragmentation schema)
Awareness:
- Grouping of relevant data
- Determine optimal allocation schema
- Data Redundancy at fragments level by examining the allocation schema
Unawareness:
- local DBMS structures
- User unaware of replication of fragments
- Rules for defining Fragments
- Completeness: all data of global relation must be mapped into the fragments
- Reconstruction: it must be possible to reconstruct each global relation from its fragments
- Disjointness: disjoint fragments imply replication of data can be controlled explicitly at the allocation level
- Types of Fragmentation
- Horizontal Fragmentation: partition the relation in tuple level (selection)
- Vertical Fragmentation: partition the relation in attribute level (projection)
- Derived Horizontal Fragmentation: selection with matched attribute values from two relations (semi-join)
- Mixed Fragmentation: Apply VF and HF on same relation
- Application (Read-only & Update)
- Read Only: Level 1. Refer to global relations 2. aware of fragments
3. Specify sites
- Update: retrieve any one copy but update all copies, more complex in derived fragmentations (cross update to different fragments)
-