Database Management COP4540, SCS, FIU Physical Database Design (ch. 16 & ch. 3)

Slides:



Advertisements
Similar presentations
Physical DataBase Design
Advertisements

Chapter 5: Physical Database Design and Performance
Physical Database Design Chapter 5 G. Green 1. Agenda Purpose Activities Fields Records Files 2.
Physical Database Design and Performance Dr. Mohamed Osman Ali Hegazi1.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
9/26/2000SIMS 257: Database Management Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 257:
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
SLIDE 1IS Fall 2002 Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
9/25/2001SIMS 257: Database Management Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 257:
© 2007 by Prentice Hall 1 Chapter 6: Physical Database Design and Performance Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Physical Database Monitoring and Tuning the Operational System.
SLIDE 1IS 257 – Spring 2004 Physical Database Design University of California, Berkeley School of Information Management and Systems SIMS 257:
© 2005 by Prentice Hall 1 Chapter 6: Physical Database Design and Performance Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Modern Systems Analysis and Design Third Edition
PARTITIONING “ A de-normalization practice in which relations are split instead of merger ”
8-1 Outline  Overview of Physical Database Design  File Structures  Query Optimization  Index Selection  Additional Choices in Physical Database Design.
Chapter 8 Physical Database Design. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Overview of Physical Database.
© 2005 by Prentice Hall 1 Chapter 6: Physical Database Design and Performance Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 6: Physical Database Design and Performance
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
IT The Relational DBMS Section 06. Relational Database Theory Physical Database Design.
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
MBA 664 Database Management Systems
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Lecture 12 Designing Databases 12.1 COSC4406: Software Engineering.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 © Prentice Hall, 2002 Chapter 6: Physical Database Design and Performance Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
Object Persistence (Data Base) Design Chapter 13.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 10 Designing the Files and Databases. SAD/CHAPTER 102 Learning Objectives Discuss the conversion from a logical data model to a physical database.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 6: Physical Database Design and Performance Modern Database Management 9 th Edition.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 5: Physical Database Design and Performance Modern Database Management 9 th Edition Jeffrey.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Chapter 8 Physical Database Design. Outline Overview of Physical Database Design Inputs of Physical Database Design File Structures Query Optimization.
Chapter 5 Index and Clustering
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 9 Designing Databases.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
9-1 © Prentice Hall, 2007 Topic 9: Physical Database Design Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
Physical Database Design DeSiaMorePowered by DeSiaMore 1.
11-1 © Prentice Hall, 2004 Chapter 11: Physical Database Design Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 12 Designing.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Lecture 6: Physical Database Design and Performance Modern Database Management 9 th Edition.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 5: PHYSICAL DATABASE.
IT 5433 LM4 Physical Design. Learning Objectives: Describe the physical database design process Explain how attributes transpose from the logical to physical.
Converting ER/EER to logical schema; physical design issues 1.
Module 11: File Structure
Indexing Structures for Files and Physical Database Design
Record Storage, File Organization, and Indexes
Physical Database Design
Physical Database Design and Performance
ITD1312 Database Principles Chapter 5: Physical Database Design
Modern Systems Analysis and Design Third Edition
What is Database Administration
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Chapter 9 Designing Databases
Physical Database Design
Chapter 12 Designing Databases
Chapter 6: Physical Database Design and Performance
The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited)
Presentation transcript:

Database Management COP4540, SCS, FIU Physical Database Design (ch. 16 & ch. 3)

Database Management COP4540, SCS, FIU Introduction The purpose of physical database design is to translate the logical description of data into the technical specifications for storing and retrieving data. The goal is to create a design for storing data that will provide adequate performance and insure database integrity, security and recoverability.

Database Management COP4540, SCS, FIU Inputs to Physical Design Normalized relations. Volume estimates. Attribute definitions. Data usage: entered, retrieved, deleted, updated. Response time requirements. Requirements for security, backup, recovery, retention, integrity. DBMS characteristics.

Database Management COP4540, SCS, FIU Physical Design Decisions Specifying attribute data types. Modifying the logical design. Specifying the file organization. Choosing indexes.

Database Management COP4540, SCS, FIU Data Volumes and Query Frequencies Data volumes: estimation of number of data records in each entity Query frequencies: estimation of number of queries per hour towards each entity These two types of information are useful for determining the storage requirements and performance requirements, which are needed to make physical design decisions.

Database Management COP4540, SCS, FIU An Example PART 1000 o MANUFACTURED PART 400 PURCHASED PART 700 ( ( 40%70% SUPLLIER 50 SUPLLY 2500 M N Quotation 70 40

Database Management COP4540, SCS, FIU Designing Fields Choosing data type -- Char(8), Date, etc. Coding, compression, encryption. Controlling data integrity. –Default value. –Range control. –Null value control. –Referential integrity.

Database Management COP4540, SCS, FIU An example of code look-up table PRODUCT File FINISH Look-up Table Coding is a way to achieve compression

Database Management COP4540, SCS, FIU Designing Fields Handling missing data. –Substitute an estimate of the missing value. –Trigger a report listing missing values. –In programs, ignore missing data unless the value is significant.

Database Management COP4540, SCS, FIU Physical Records Physical Record: A group of fields stored in adjacent memory locations and retrieved together as a unit. Page: The amount of data read or written in one I/O operation. A page contains usually a number of physical records. Blocking Factor: The number of physical records per page.

Database Management COP4540, SCS, FIU Designing Physical Files Physical File: A file as stored on the disk. Constructs to link two pieces of data: –Sequential storage. –Pointers. File Organization: How the files are arranged on the disk. Access Method: How the data can be retrieved based on the file organization.

Database Management COP4540, SCS, FIU Sequential File Organization Records of the file are stored in sequence by the primary key field values. Start of file Scan

Database Management COP4540, SCS, FIU Indexed File Organizations Index: an auxiliary file to improve access efficiency of the main data file. B-tree or B + -tree index. Bitmap index –Ideal for attributes that have even a few possible values –Often requires less storage space –Can be used for multiple keys

Database Management COP4540, SCS, FIU Bitmap Index on Product Price attribute Product 3 and 5 have Price $100 Product 1 has Price $200 Product 2, 7, and 10 have Price 300 Product 4, 6, 8, and 0 have Price $400

Database Management COP4540, SCS, FIU Hashed File Organization Hashing Algorithm: Converts a primary key value into a record address. Division-remainder method: –Given 1000 pages to store employee records –Choose the prime number closest to 1000, i.e., 997 –The bucket number of each record is equal to the remainder of employee ID divided by 997 –Finding the location of any employee record needs only a computation.

Database Management COP4540, SCS, FIU Comparison of File Organizations Sequential: –No waste space –Fast sequential retrieval –no random retrieval –update requires reorganization and slow

Database Management COP4540, SCS, FIU Comparison of File Organizations Indexed –require additional space for index –support random retrieval –deletion, addition, and update of records require modification of indexes

Database Management COP4540, SCS, FIU Comparison of File Organizations Hashed –May require overflow pages –sequential retrieval is impractical –random retrieval on primary key is very fast since it does not need to access index –deletion, addition, and modification of records are relatively easy

Database Management COP4540, SCS, FIU Denormalization The reversal of normalization in order to increase query processing efficiency. During physical database design, denormalization is done if performance consideration dominates the issue of operational anomalies.

Database Management COP4540, SCS, FIU An example Two entities with a one-to-one relationship STUDET SIDAddress SCHOLARSHIP APPLICATION Submit Application_ Date Qualifications 1 1 AID STUDENT(SID, Address) APPLICATION(AID, Application_date, Qualification, SID) Denormalized relation: STUDENT(SID, Address, AID, Application_Date, Qualification)

Database Management COP4540, SCS, FIU Partitioning Horizontal Partitioning: Distributing the rows of a table into several separate files. Vertical Partitioning: Distributing the columns of a table into several separate files. –The primary key must be repeated in each file.

Database Management COP4540, SCS, FIU Partitioning Advantages of Partitioning: –Records used together are grouped together. –Each partition can be optimized for performance. –Security, recovery. –Partitions stored on different disks. –Take advantage of parallel processing capability. Disadvantages of Partitioning: –Slow retrievals across partitions. –Complexity.