Distributed DBMS Architectures

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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.

False (B)

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.

<p>Global</p> Signup and view all the answers

Match the schema type with its description in a DDBMS architecture:

<p>Global Schema = A set of global relations as if the database were not distributed at all Fragmentation Schema = Splits a global relation into non-overlapping logical fragments Allocation Schema = Maps fragments to sites Local Mapping Schema = Maps physical images to physical objects manipulated by local DBMSs</p> Signup and view all the answers

Which of the following design alternatives for tables in a DDBMS involves placing different tables at different sites?

<p>Non-replicated and non-fragmented (D)</p> Signup and view all the answers

A 'fully replicated' DDBMS design is most suitable when a low number of queries are required but many database updates are performed.

<p>False (B)</p> Signup and view all the answers

In a 'partially replicated' DDBMS, what determines the distribution of tables or portions of tables?

<p>Frequency of access</p> Signup and view all the answers

In a _ DDBMS design, a table is divided into fragments, and each fragment can be stored at different sites.

<p>fragmented</p> Signup and view all the answers

Which of the following is NOT a fragmentation technique?

<p>Diagonal fragmentation (B)</p> Signup and view all the answers

Mixed distribution is a combination of fragmentation and full replication.

<p>False (B)</p> Signup and view all the answers

Name at least one advantage of fragmentation in a distributed database system.

<p>Increased parallelism or better disaster recovery</p> Signup and view all the answers

Fragmentation aims to reduce the amount of _ data accessed by applications.

<p>irrelevant</p> Signup and view all the answers

Which of the following statements is a rule for data fragmentation?

<p>All data of the global relation must be mapped into the fragments. (B)</p> Signup and view all the answers

In data fragmentation, it is acceptable to lose data to improve query performance as long as the most important data is retained.

<p>False (B)</p> Signup and view all the answers

What is the term for the rule that it must always be possible to reconstruct each global relation from its fragments?

<p>Reconstruction</p> Signup and view all the answers

It is convenient that fragments are _, so that the replication of data can be controlled explicitly at the allocation level.

<p>disjoint</p> Signup and view all the answers

Which type of data fragmentation uses a select-project query on a relation?

<p>Mixed Fragmentation (B)</p> Signup and view all the answers

In vertical fragmentation, updates always require tuple migration between fragments.

<p>False (B)</p> Signup and view all the answers

What operation is used to reconstruct the original relation after applying vertical fragmentation?

<p>Join</p> Signup and view all the answers

In vertical fragmentation, fragments are obtained by projecting the global relation over each _.

<p>group</p> Signup and view all the answers

Horizontal fragmentation divides a relation into subsets of...

<p>Rows (B)</p> Signup and view all the answers

Mixed/Hybrid Fragmentation is less complex than horizontal or vertical fragmentation alone.

<p>False (B)</p> Signup and view all the answers

What two operations can be used to obtain the original relation in a mixed/hybrid fragmentation scenario?

<p>Join and Union</p> Signup and view all the answers

Horizontal Fragmentation uses _ on a relation (subset of tuples).

<p>Selection</p> Signup and view all the answers

Flashcards

DDBMS Architectures

These are generally developed depending on three main parameters: Distribution, Autonomy, and Heterogeneity.

Distribution

The physical placement of data across different sites.

Autonomy

This indicates the distribution of control and the degree to which each DBMS can operate independently.

Heterogeneity

This refers to the uniformity or dissimilarity of the data models, system components, and databases.

Signup and view all the flashcards

Global Schema

A set of global relations as if the database were not distributed at all.

Signup and view all the flashcards

Fragmentation Schema

A global relation split into non-overlapping logical fragments.

Signup and view all the flashcards

Allocation Schema

This is a 1:1 or 1:n mapping from fragments to sites, where n means redundant.

Signup and view all the flashcards

Local Mapping Schema

Mapping from physical image to physical objects manipulated by local DBMSs.

Signup and view all the flashcards

Non-replicated & Non-fragmented

Different tables are placed at different sites.

Signup and view all the flashcards

Fully Replicated

One copy of all the database tables is stored at each site.

Signup and view all the flashcards

Partially Replicated

Copies of tables or portions of tables are stored at different sites.

Signup and view all the flashcards

Fragmented

A table is divided into two or more pieces (fragments) and stored at different sites.

Signup and view all the flashcards

Mixed Distribution

A combination of fragmentation and partial replication.

Signup and view all the flashcards

Fragmentation

Design technique to divide a database relation into smaller partitions.

Signup and view all the flashcards

Completeness

Ensures all data of the global relation is mapped into the fragments.

Signup and view all the flashcards

Reconstruction

It must always be possible to reconstruct each global relation from its fragments.

Signup and view all the flashcards

Disjointedness

Fragments should not share data, preventing replication.

Signup and view all the flashcards

Vertical Fragmentation

Projection on a relation (subset of attributes), Reconstruction by join.

Signup and view all the flashcards

Horizontal Fragmentation

Selection on relation (subset of tuples), Reconstruction by union.

Signup and view all the flashcards

Mixed Fragmentation

Combination of horizontal and vertical fragmentations.

Signup and view all the flashcards

Vertical Fragmentation Definition

Subdivision of attributes into groups; fragments obtained by projecting the global relation over each group.

Signup and view all the flashcards

Horizontal Fragmentation

Horizontal fragmentation divides a relation (table) horizontally into groups of rows.

Signup and view all the flashcards

Mixed/Hybrid Fragmentation.

The Mixed/Hybrid fragmentation is a combination of horizontal and vertical 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.

Quiz Team

Related Documents

More Like This

Database Management Systems Quiz
10 questions

Database Management Systems Quiz

HonestTropicalIsland4063 avatar
HonestTropicalIsland4063
Database Management Systems (DBMS)
17 questions
Database Concepts: Data, DBMS, and Systems
41 questions
Use Quizgecko on...
Browser
Browser