Docsity

Physical Database Design - Database Management - Lecture Slides, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Physical Database Design - Database Management - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Physical Database Design

Docsity.com

Objectives

  • Describe the concept of physical database design.
  • List and describe the inputs to the physical database design process.
  • Perform physical database design and improve database performance using a variety of techniques ranging from adding indexes to denormalization.

Physical Database Design

  • The process of modifying a database structure to improve the performance of the run-time environment.
  • We are going to modify the third normal form tables produced by the logical database design techniques to make the applications that will use them run faster.

Inputs to Physical

Database Design

  • Physical database design starts where logical database design ends.
  • The well structured relational tables produced by the conversion from ERDs or by the data normalization process form the starting point for physical database design.

The Tables Produced by the Logical

Database Design Process

  • Form the starting point of the physical database design process.
  • Reflect all of the data in the business environment.
  • Are likely to be unacceptable from a performance point of view and must be modified in physical database design.

Business Environment Requirements

  • Response Time Requirements
  • Throughput Requirements

Business Environment Requirements:

Throughput Requirements

  • Throughput is the measure of how many queries from simultaneous users must be satisfied in a given period of time by the application set and the database that supports it.

Data Characteristics

  • Data Volume Assessment
    • How much data will be in the database?
    • Roughly how many records is each table expected to have?
  • Data Volatility
    • Refers to how often stored data is updated.

Application Characteristics

  • Application Data Requirements
  • Application Priorities

Application Characteristics: Data

Requirements

  • Which database tables does each application require for its processing?
  • Do the applications require that tables be joined?
  • How many applications and which specific applications will share particular database tables?
  • Are the applications that use a particular table run frequently or infrequently?

Operational Requirements: Data

Security, Backup and Recovery

  • Data Security
    • Protecting data from theft or malicious destruction and making sure that sensitive data is accessible only to those employees of the company who have a “need to know.”
  • Backup and Recovery
    • Being able to recover a table or a database that has been corrupted or lost due to hardware or software failure to the recovery of an entire information system after a natural disaster.

Hardware and Software Characteristics

  • DBMS Characteristics
    • For example, exact nature of indexes, attribute data type options, and SQL query features, which must be known and taken into account during physical database design.
  • Hardware Characteristics
    • Processor speeds and disk data transfer rates.

Physical Database Design Techniques

Physical Design Categories and Techniques That DO Change the Logical Design

  • Changing Attributes in a Table
    • Substituting Foreign Keys
  • Adding Attributes to a Table
    • Creating New Primary Keys
    • Storing Derived Data
  • Combining Tables
    • Combine Tables in One-to-One relationships
    • Alternative for Repeating Groups
    • Denormalization
  • Adding New Tables
    • Duplicating Tables
    • Adding Subset Tables

Adding External Features

  • Doesn’t change the logical design at all.
  • There is no introduction of data redundancy.