Distributed databases Flashcards
Distributed database vs distributed processing
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.
Database Fragments
database is composed of several parts know as database fragments.
In DD, do the user need to know the location and the name of each database fragments ? YES or NO
No, they dont have to, because it’s transparent to the user
Do distributed processing requires distributed database ? Does the data need to be reside where the processing is stored ? YES or NO
No, that’s optional. The data can reside in the same space but it’s not necessary.
Does a distributed database requires distributed processing ? YES or NO
Yes, but not the other way around.
Distributed Database Management System (DDMS) advantages
- data can be stored at ‘greatest demand’ site that improved Performance
- Improved Reliability – data replication
- Growth facilitation
- Reduced operating costs
DDMS Disadvantage
- Cost
- Complexity
- Database design more complex
What is DDMS ?
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.
What’re the things to consider when you design the distributed database ?
- 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)
What is data fragmentation ?
- 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
Different types of fragmentation
- Horizontal
- Vertical
- Mixed
Explain horizontal fragmentation
- The division of a relation into tuples (rows)
* Each tuple has the same attributes (columns) but the rows are fragmented
Explain vertical fragmentation
- 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
Vertical fragmentation’s disadvantage
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.
Data replication
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