Distributed databases Flashcards

1
Q

Distributed database vs distributed processing

A

Dp, Shares the database’s logical processing among two or more physically independent sites while DD, Stores a logically related database. The sites are
connected by a computer network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Database Fragments

A

database is composed of several parts know as database fragments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In DD, do the user need to know the location and the name of each database fragments ? YES or NO

A

No, they dont have to, because it’s transparent to the user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Do distributed processing requires distributed database ? Does the data need to be reside where the processing is stored ? YES or NO

A

No, that’s optional. The data can reside in the same space but it’s not necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Does a distributed database requires distributed processing ? YES or NO

A

Yes, but not the other way around.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Distributed Database Management System (DDMS) advantages

A
  • data can be stored at ‘greatest demand’ site that improved Performance
  • Improved Reliability – data replication
  • Growth facilitation
  • Reduced operating costs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DDMS Disadvantage

A
  • Cost
  • Complexity
  • Database design more complex
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is DDMS ?

A

Governs the storage and processing of a single logically related database OVER INTERCONNECTED COMPUTER SYSTEMS in which both data and processing functions are distributed among several sites.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What’re the things to consider when you design the distributed database ?

A
  • How to partition the database into fragments
  • Which fragments to replicate
  • Where to locate those fragments and replicas
    (More frequently used fragments should be stored locally Fragments used by all users should be stored centrally)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is data fragmentation ?

A
  • Allows a single object to be broken into two or more segments or fragments
  • Data fragmentation information is stored in the distributed data catalog (DDC), from which it is accessed by the TP to process user requests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Different types of fragmentation

A
  1. Horizontal
  2. Vertical
  3. Mixed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain horizontal fragmentation

A
  • The division of a relation into tuples (rows)

* Each tuple has the same attributes (columns) but the rows are fragmented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain vertical fragmentation

A
  • The division of a relation into subsets by attributes (column)
  • Each subset is stored at a different node, and each fragment has unique columns – with the exception of the key column, which is common to all fragments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Vertical fragmentation’s disadvantage

A

Transaction issues here because same record may need to be inserted into two tables (part of record into 1 table and other part into another table). If only 1 insert is successful; end up with inconsistent data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data replication

A

Storage of data copies at multiple sites served by a computer network
Fragment copies can be stored at several sites to serve specific information requirements
* Can enhance data availability and response time
* Can help to reduce communication and total query costs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Types of data replications

A
  1. Fully replicated db - Impossible because of overhead, to store multiple copies of entire database
  2. Partially replicated - Stores multiple copies of some database fragments at multiple sites
  3. Un-replicated - Stores each database fragment at a single site and no duplicates