Physical Databases Flashcards
Define the purpose of the physical database… What aspects do the DDL and DML implement?
The PD is the realisation of the designed database. The DDL designs the schemas, the DML implements the application programs and populates the data.
What is meant by Physical Database Design?
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.
What are the pre-requesites for the PDD?
Logical model that can be translated. Must be in 3NF.
A chosen DBMS.
Completed transactional analysis (frequent, costly, distribution, critical etc).
What are the 6 fundamental parts of the Physical Database Design?
- Translate the logical model for the DBMS.
- File organisations and indexes.
- Create views.
- Create security mechanisms.
- Add data redundancy.
- Monitor and tune the operational system
Define each of the subcomponents of the ‘Translate Logical Model’ stage…
- Define base relations : Names, attributes, keys etc.
- Represent derived data : New column, create view, triggers, each time.
- Create views
- General constraints on data
Define each of the subcomponents of the ‘File Organisations and Indexes’ stage…
- 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.
Explain how the 3 storage structures of a database interact.
- 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.
Define the reasons to add data redundancy…
- 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.