Physical Databases Flashcards

1
Q

Define the purpose of the physical database… What aspects do the DDL and DML implement?

A

The PD is the realisation of the designed database. The DDL designs the schemas, the DML implements the application programs and populates the data.

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

What is meant by Physical Database Design?

A

The PDD is the translation of the logical model into a description of a physical model. This should include type,
structures, relationships, DBMS, constraints, security mechanisms etc.

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

What are the pre-requesites for the PDD?

A

Logical model that can be translated. Must be in 3NF.
A chosen DBMS.
Completed transactional analysis (frequent, costly, distribution, critical etc).

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

What are the 6 fundamental parts of the Physical Database Design?

A
  1. Translate the logical model for the DBMS.
  2. File organisations and indexes.
  3. Create views.
  4. Create security mechanisms.
  5. Add data redundancy.
  6. Monitor and tune the operational system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define each of the subcomponents of the ‘Translate Logical Model’ stage…

A
  • Define base relations : Names, attributes, keys etc.
  • Represent derived data : New column, create view, triggers, each time.
  • Create views
  • General constraints on data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define each of the subcomponents of the ‘File Organisations and Indexes’ stage…

A
  • Choose file organisation : Heap (unsorted), Sequential (value sorted), Hash (use hash function).
  • Choose indexes : Clustered (One per table, same as physical ordering of rows); Non-clustered (
    more than one per table, maintains logical ordering).
  • Estimate disk space required.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain how the 3 storage structures of a database interact.

A
  • Primary storage : Holds volatile data blocks that is operated on.
  • Secondary storage : Holds non-volatile data that is being sent to and from the primary storage.
  • Stable storage : Holds backup data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define the reasons to add data redundancy…

A
  • Denormalisation : Improve read speed at cost of write speed.
  • Splitting : Split tables into smaller relations.
  • Creating : Creating new tables and views to hold derived data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly