Podcast
Questions and Answers
Which parameter is NOT generally considered when developing DDBMS architectures?
Which parameter is NOT generally considered when developing DDBMS architectures?
- Network bandwidth between sites (correct)
- Distribution of data across sites
- Heterogeneity of data models and databases
- Autonomy of each DBMS constituent
In a DDBMS, 'Distribution' refers to the degree to which each constituent DBMS can operate independently.
In a DDBMS, 'Distribution' refers to the degree to which each constituent DBMS can operate independently.
False (B)
What does 'Autonomy' indicate in the context of Distributed Database Management Systems (DDBMS)?
What does 'Autonomy' indicate in the context of Distributed Database Management Systems (DDBMS)?
Distribution of control of the database system and the degree to which each constituent DBMS can operate independently.
The _ Schema in the Top-Down Classical DDBMS Architecture represents a set of global relations as if the database were not distributed at all.
The _ Schema in the Top-Down Classical DDBMS Architecture represents a set of global relations as if the database were not distributed at all.
Match the schema type with its description in a DDBMS architecture:
Match the schema type with its description in a DDBMS architecture:
Which of the following design alternatives for tables in a DDBMS involves placing different tables at different sites?
Which of the following design alternatives for tables in a DDBMS involves placing different tables at different sites?
A 'fully replicated' DDBMS design is most suitable when a low number of queries are required but many database updates are performed.
A 'fully replicated' DDBMS design is most suitable when a low number of queries are required but many database updates are performed.
In a 'partially replicated' DDBMS, what determines the distribution of tables or portions of tables?
In a 'partially replicated' DDBMS, what determines the distribution of tables or portions of tables?
In a _ DDBMS design, a table is divided into fragments, and each fragment can be stored at different sites.
In a _ DDBMS design, a table is divided into fragments, and each fragment can be stored at different sites.
Which of the following is NOT a fragmentation technique?
Which of the following is NOT a fragmentation technique?
Mixed distribution is a combination of fragmentation and full replication.
Mixed distribution is a combination of fragmentation and full replication.
Name at least one advantage of fragmentation in a distributed database system.
Name at least one advantage of fragmentation in a distributed database system.
Fragmentation aims to reduce the amount of _ data accessed by applications.
Fragmentation aims to reduce the amount of _ data accessed by applications.
Which of the following statements is a rule for data fragmentation?
Which of the following statements is a rule for data fragmentation?
In data fragmentation, it is acceptable to lose data to improve query performance as long as the most important data is retained.
In data fragmentation, it is acceptable to lose data to improve query performance as long as the most important data is retained.
What is the term for the rule that it must always be possible to reconstruct each global relation from its fragments?
What is the term for the rule that it must always be possible to reconstruct each global relation from its fragments?
It is convenient that fragments are _, so that the replication of data can be controlled explicitly at the allocation level.
It is convenient that fragments are _, so that the replication of data can be controlled explicitly at the allocation level.
Which type of data fragmentation uses a select-project query on a relation?
Which type of data fragmentation uses a select-project query on a relation?
In vertical fragmentation, updates always require tuple migration between fragments.
In vertical fragmentation, updates always require tuple migration between fragments.
What operation is used to reconstruct the original relation after applying vertical fragmentation?
What operation is used to reconstruct the original relation after applying vertical fragmentation?
In vertical fragmentation, fragments are obtained by projecting the global relation over each _.
In vertical fragmentation, fragments are obtained by projecting the global relation over each _.
Horizontal fragmentation divides a relation into subsets of...
Horizontal fragmentation divides a relation into subsets of...
Mixed/Hybrid Fragmentation is less complex than horizontal or vertical fragmentation alone.
Mixed/Hybrid Fragmentation is less complex than horizontal or vertical fragmentation alone.
What two operations can be used to obtain the original relation in a mixed/hybrid fragmentation scenario?
What two operations can be used to obtain the original relation in a mixed/hybrid fragmentation scenario?
Horizontal Fragmentation uses _ on a relation (subset of tuples).
Horizontal Fragmentation uses _ on a relation (subset of tuples).
Flashcards
DDBMS Architectures
DDBMS Architectures
These are generally developed depending on three main parameters: Distribution, Autonomy, and Heterogeneity.
Distribution
Distribution
The physical placement of data across different sites.
Autonomy
Autonomy
This indicates the distribution of control and the degree to which each DBMS can operate independently.
Heterogeneity
Heterogeneity
Signup and view all the flashcards
Global Schema
Global Schema
Signup and view all the flashcards
Fragmentation Schema
Fragmentation Schema
Signup and view all the flashcards
Allocation Schema
Allocation Schema
Signup and view all the flashcards
Local Mapping Schema
Local Mapping Schema
Signup and view all the flashcards
Non-replicated & Non-fragmented
Non-replicated & Non-fragmented
Signup and view all the flashcards
Fully Replicated
Fully Replicated
Signup and view all the flashcards
Partially Replicated
Partially Replicated
Signup and view all the flashcards
Fragmented
Fragmented
Signup and view all the flashcards
Mixed Distribution
Mixed Distribution
Signup and view all the flashcards
Fragmentation
Fragmentation
Signup and view all the flashcards
Completeness
Completeness
Signup and view all the flashcards
Reconstruction
Reconstruction
Signup and view all the flashcards
Disjointedness
Disjointedness
Signup and view all the flashcards
Vertical Fragmentation
Vertical Fragmentation
Signup and view all the flashcards
Horizontal Fragmentation
Horizontal Fragmentation
Signup and view all the flashcards
Mixed Fragmentation
Mixed Fragmentation
Signup and view all the flashcards
Vertical Fragmentation Definition
Vertical Fragmentation Definition
Signup and view all the flashcards
Horizontal Fragmentation
Horizontal Fragmentation
Signup and view all the flashcards
Mixed/Hybrid Fragmentation.
Mixed/Hybrid Fragmentation.
Signup and view all the flashcards
Study Notes
Distributed DBMS Architectures
- DDBMS architectures depend on three parameters: distribution, autonomy, and heterogeneity.
- Distribution refers to the physical distribution of data across different sites.
- Autonomy indicates the distribution of control in the database system and the independence of each DBMS.
- Heterogeneity refers to the uniformity or dissimilarity of data models, system components, and databases.
Top-Down Classical DDBMS Architecture
- It contains a Global Schema, Fragmentation Schema, and Allocation Schema.
DDBMS Schemas
- Global Schema is a set of global relations as if the database were not distributed.
- Fragmentation Schema splits a global relation into non-overlapping logical fragments, with a 1:n mapping from relation R to fragments Ri.
- Allocation Schema maps fragments to sites in a 1:1 or 1:n (redundant) manner.
- All fragments corresponding to the same relation R at a site j constitute the physical image Rj.
- A copy of a fragment is denoted by Rji.
- Local Mapping Schema maps physical images to physical objects that local DBMSs manipulate.
Design Alternatives for Tables in a DDBMS
- Non-replicated and non-fragmented
- Fully replicated
- Partially replicated
- Fragmented
- Mixed
Non-replicated & Non-fragmented
- Different tables are placed at different sites.
- Suited to database systems with a low percentage of queries needing to join information in different tables.
- Data is placed in close proximity to the site where it's used most.
- Communication costs can be reduced when an appropriate distribution strategy is adopted.
Fully Replicated
- Each site stores a copy of all database tables.
- Queries are fast, with negligible communication costs.
- Massive redundancy in data incurs high costs during updates.
- It is best suited for systems requiring lots of queries with low DB updates.
Partially Replicated
- Copies of tables or portions are stored at different sites.
- Distributing tables according to the frequency of access accounts for the fact that access frequencies vary across sites.
- The number of copies depends on access query frequency and the site generating the queries.
Fragmented
- A table is divided into fragments or partitions, stored at different sites.
- Useful where all data stored in a table is seldom required at a given site.
- Providing better disaster recovery and increasing parallelism.
- There is only one copy of each fragment, no redundant data.
- The fragmentation techniques are vertical, horizontal, and hybrid.
Mixed Distribution
- Combines fragmentation and partial replication.
- Tables are initially fragmented, horizontal or vertical, and the fragments are partially replicated across sites.
- It occurs according to the frequency of accessing the fragments.
Fragmentation
- It is a design technique that divides a class or single relation into partitions.
- A combination of the partitions provides the original database without any information loss.
- It reduces the amount of irrelevant data accessed, reducing disk accesses.
- Include horizontal, vertical, and hybrid/mixed types.
Rules for Data Fragmentation
- Completeness: All data of the global relation must be mapped into the fragments.
- Reconstruction: It should always be possible to reconstruct each global relation from its fragments.
- Disjointedness: Fragments are disjoint, to explicitly control data replication at the allocation level.
Types of Data Fragmentation
- Vertical Fragmentation: Projection on relation (subset of attributes), reconstruction by join, and no tuple migration for updates.
- Horizontal Fragmentation: Selection on relation (subset of tuples), reconstruction by union, and possible tuple migration for updates.
- Mixed Fragmentation: A fragment is a Select-Project query on relation.
Vertical Fragmentation
- Subdivides a database table vertically into groups; fragments are obtained by projecting the global relation over each group.
- Vertical fragmentation splits a single relation R into sub-relations.
- Relations are in grouping with attributes and frequently accessed by queries
- Projection builds vertical fragments.
- The original relation is reconstructed by joining the fragments.
Horizontal Fragmentation
- It divides a relation (table) horizontally into groups to create subsets of tables.
Mixed/Hybrid Fragmentation
- Combination of horizontal and vertical fragmentations.
- A complex type, as both horizontal and vertical fragmentations occur.
- The original relation is obtained by union or join operations.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.