Chapter 5 Flashcards
Physical Database Design
Physical design involves enhancing and/or modifying a logical database design to improve the performance of the run-time environment
Designing Table Columns–Default values
– assumed values if no explicit values
–e.g., value ‘FL’ for State column
Designing Table Columns–Check rules
limitations on allowable values
e.g., value >=0 AND <=100 for TestScore column
Designing Table Columns–Null values
allowing/prohibiting empty columns
e.g., prohibit leaving DateOfBirth column blank
Designing Table Columns–Referential integrity
FK to PK match-ups
e.g., restrict valid values for PartNo column in the Order table to the contents of this column in the Part table
Designing Table Columns-Coding
E.g., T(ampa), (St.)P(etersburg), S(arasota), L(akeland) for the four USF branch campuses
Implement by creating a look-up table
–Coding saves space, but costs an additional table lookup (join) to obtain the actual value, so performance can actually be slower
Business Environment Requirements–Response time
The delay from the time a request is made to execute a query until the result appears on screen
Response time requirements depend on:
- -How application is used
- -Response expected by users
Business Environment Requirements–Throughput:
-Measure of how many queries from simultaneous users can be satisfied in a given period of time
- Throughput requirements depend on:
- -Number of users needing access at the same time
Data volatility:
This is how often stored data is updated
Impacts:
- -Throughput and response time (the greater the need for updates, the greater throughput required)
- -Extent of normalization (the greater the need for updates, the more important normalization becomes)
Operational Requirements
Ongoing activities relating to protecting data and data availability
Data security
Protecting sensitive data from unauthorized users
Protecting against theft and malicious destruction
Includes determining the location of, and the access to, the physical computer that is hosting the database
Data backup and recovery
Recovering data from corrupted tables or databases due to hardware or software failures
Recovering from system loss after natural disaster
GUI (Graphical User Interface) management utility
Graphical environment that provides visual cues for entering properties and options
SQL command utility
Text-based utility run from command prompt
Management Studio.
The GUI management utility supplied with Microsoft SQL Server