ADBMS unit 4: distributed database design (DDD) Flashcards

1
Q

Explain what are distributed database in short

A

A distributed System is a collection of autonomous computer systems that are physically separated but are connected by a centralized computer network that is equipped with distributed system software.

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

whare are distributed databases used

A

These are used in numerous applications, such as online gaming, web applications, and cloud computing.

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

Design issues intro

A

However, creating a distributed system is not simple, and there are a number of design considerations to take into account. The following are some of the major design issues of distributed systems.

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

explain design issues in distributed databases

A

scalability

reliability

availability

consistency

latency

load balancing

security

architectural design patterns

communication issues

data management

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

explain challenges in scalability

A

handling increases load: as no. of users or requests increases, the system must scale accordingly without performance degradation

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

explain geographic distribution

A

ensuring performance across geographically dispersed locations

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

strategies to achieve scalability

A

horizontal scaling

vertical scaling

sharding

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

explain horizontal scaling

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

explain vertical scaling

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

explain sharding

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

explain reliability

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

what is fault tolerance in reliability

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

explain redundancy and replication

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

explain availability

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

explain consistency

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

explain latency

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

explain load balancing

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

explain security

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

explain architectural design patterns

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

explain communication issues

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

explain data management

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

what is fragmentation

A

breaking a global relation R into smaller relations called framgents R1, R2, ….. Rn such that these smaller relations contain enough information to reconstruct the global relation R

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

types of fragmentation

A
  1. horizontal
    primary
    derived
  2. vertical
  3. hybrid
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

explain horizontal fragmentation

A

breaking a global relation R horizontally ( with respect to data stored ) into two or more sub-relations without disturbing the structure of the relation is called Horizontal fragmentation.

Schema(R) = Schema(R1) = Schema(R2) = Schema(Rn)

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

example of Horizontal fragmentation
Student table / relation

with columns
reg_no
name
gender
address
contact
campus

divide this table using campus property

A

if there are three types of values in campus column then we can divide this table into three horizontally fragments

27
Q

what do we divide in horizontal frag. rows or column

A

in horizontal fragmentation we divide columns only not rows

28
Q

what operation we called it when we perform horizontal fragmentation

A

horizontal fragmentation is just a SELECTION operation performed on the global relation R with appropriate selection conditions P

29
Q
A
30
Q

what are correctness rules of fragmentation

A

when we divide global relation R into numerous fragments, to check whether this fragments are correct or not we have some rules which are known as correctness rules

31
Q

explain completeness, first rule of correctness of fragmentation

A

breaking of relation R into sub-relations R1, R2, … Rn is said to be complete if and only if each data item (record) present in R can also be found in some Ri

32
Q

what is rule for horizontal to completness

A

for horizontal and vertical fragmentation
R1, R2, … , Rn belongs to R

33
Q

explain completeness in simple words

A

when we add all fragments, we should get original table

34
Q

explain reconstruction

A

if a global relation R is broken into fragments R1, R2, … Rn. then there should be a way to reconstruct R from these fragments without loosing data.

35
Q

For horizontal fragmentation, how does reconstruction works

A

R1 union R2 union Rn = R

36
Q

for vertical fragmentation what operation we perform to get original table back

A

R1 inner_join R2 inner_join R3 inner_join Rn = R

37
Q

in horizontal fragmentation what operation we perform to get original table / relation back

A

union operation

38
Q

for vertical fragmentation which operation we perform to get original table / relation back

A

natural join

39
Q

explain disjointness rule of correctness of fragmentation

A

if a global relation R is broken into fragments R1, R2 and Rn, a record (row) that is found in one fragment must not present in any other fragments.

That is,

R1 ∩ R2 ∩ … R3 = NULL

===

Fragmented record must not found into other fragments

No records must be common in more than one fragment

40
Q

what are two types of horizontal gragmentation

A

primary
secondary

41
Q

explain primary horizontal fragmentation.
1. What is it?
2. What do we require?
3. How to find the simple conditions?

A
  1. It is about fragmenting single table horizontally with set of simple conditions
  2. The procedure to find the simple conditions that are required to fragments the table.
  3. Simple predicates
    Min-term predicates
42
Q

what do we require to achieve primary horizontal fragmentation

A
43
Q

how to find simple conditions, for primary horizontal fragmentation

A

simple predicates
min-term predicates

before that we need to know, application or set of applications that are going to access these fragments differently

44
Q

what are simple predicates

A

Given a relation R with set of n attributes, a simple predicate P is a condition of the form as follows:
attribute i comparison-operator value

here,
1. attribute is any attribute of the relation R
2. comparison operator can be one of =, <, >, >=, <=, !=
3. value is the permitted value for the domain of that attribute

Example:
REG_NO = 119
GENDER = ‘M’
GRADE = 5

45
Q

explain set of simple predicates

A

a relation usually fragmented using multiple simple predicates collectively

Example:

Employee(Emp_id, Ename, Department, Office)
p = {office=’chennai’, department=’design’}

46
Q

what are some desirable properties of simple predicates

A

the set of simple predicates should be complete and minimal

Complete: not missing any data and equal probability of access by every application

Minimal: If all the predicates of a set P are relevant, then P is minimal. That is, there should be at least one application that accesses fragments f1 and f2 differently

47
Q

what are min-term predicates

A

Time: 18:45

https://www.youtube.com/watch?v=W0BSpV4bM74&t=29s

48
Q

can we use simple predicates for fragmentation directly

A

no

49
Q

what is min-term predicate

A
50
Q

formal definition of min-term predicate

A
51
Q

What is Derived horizontal framgentation

A

The process of creating horizontal fragments of a table in question based on the already created horizontal fragments of another relation (for example, base table) is called Derived Horizontal Fragmentation

PK = owner relation
FP = member relation

52
Q

what is semi-join

A

semi-join is a join operation that results in a structure and records of one table that match with the records of the other table

53
Q
A
54
Q
A
55
Q
A
56
Q
A
57
Q
A
58
Q
A
59
Q

resource: derived horizontal fragmentation

A

https://www.youtube.com/watch?v=CF9gXrOXAxI&t=250s

60
Q

resources

A

https://www.ques10.com/p/17566/explain-design-issue-of-distributed-database-1/

61
Q

data allocation

A

https://www.ques10.com/p/17566/explain-design-issue-of-distributed-database-1/

62
Q
A
63
Q
A