Physical Changes That Don’t Change the Logical Design

Slides:



Advertisements
Similar presentations
Technology Guide 3 Data and Database T3-1. IT for Management Prof. Efraim Turban T3-2 File Management Hierarchy of data for a computer-based file Record.
Advertisements

Chapter 15 Creating Database Forms and Reports Introduction Forms Reports.
Chapter 5: Database Forms and Reports
© Copyright 2011 John Wiley & Sons, Inc.
ACCOUNTING INFORMATION SYSTEMS
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Chapter 14 Organizing and Manipulating the Data in Databases
Chapter 5 The Relational Database Model: Introduction
Chapter 3: Data Modeling
Introduction to Databases
Chapter 7 Logical Database Design
Chapter 6 The Relational Database Model: Additional Concepts
Introduction to Databases Chapter 1: Introducing Data and Data Management.
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
4-1 Coding Complete COBOL Programs: The PROCEDURE DIVISION Chapter 4.
4-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
10-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
4-1 COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Introduction to Databases Chapter 7: Data Access and Manipulation.
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
Chapter 8 Physical Database Design
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
3 - 1 Chapter 3: Basic Excel Skills Management Science: The Art of Modeling With Spreadsheets, 2e PowerPoint Slides Prepared By: Alan Olinsky Bryant University.
Chapter 4: Organizing and Manipulating the Data in Databases
Today’s Agenda  Any questions about the assignment (due Mon)?  Quiz  Quiz review  Homework for Friday:  Watch the two videos on the Coursera db website.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
7 - 1 Chapter 7: Data Analysis for Modeling PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Systems.
Chapter 8 Physical Database Design
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Slide 3-1 Chapter 3 Terms Electronic Commerce and Internet Technologies Introduction to Information Systems Judith C. Simon.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
Slide 1-1 Chapter 1 Terms Information Systems Overview Introduction to Information Systems Judith C. Simon.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: S. Bhattacharya, Ph.D. Florida Atlantic.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Copyright 2004 John Wiley & Sons, Inc Information Technology: Strategic Decision Making For Managers Henry C. Lucas Jr. John Wiley & Sons, Inc Dinesh.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Slide 6-1 Chapter 6 System Software Considerations Introduction to Information Systems Judith C. Simon.
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 9: Moving on to Design.
Chapter 5-1. Chapter 5-2 Chapter 5: Organizing and Manipulating the Data in Databases Introduction Normalization Validating the Data in Databases Extracting.
A- 1. A- 2 Appendix B Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
K-1. K-2 Appendix K Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
Introduction to Information Technology, 2 nd Edition Turban, Rainer & Potter © 2003 John Wiley & Sons, Inc 2-1 Introduction to Information Technology 2.
Slide 11-1 Chapter 11 Terms Information Resource Management Strategies Introduction to Information Systems Judith C. Simon.
Introduction to Business Information Systems by Mark Huber, Craig Piercy, Patrick McKeown, and James Norrie Tech Guide D: The Details of SQL, Data Modelling,
I-1. I-2 I ACCOUNTING FOR SOLE PROPRIETORSHIPS Accounting, Fifth Edition.
Slide 6-1 Chapter 6 Terms System Software Considerations Introduction to Information Systems Judith C. Simon.
SQL IMPLEMENTATION & ADMINISTRATION Indexing & Views.
Chapter 3: Basic Excel Skills
Chapter 4 PowerPoint Spreadsheet Analysis.
Lesson 22: Configuring System Recovery
Systems Analysis and Design
Systems Analysis and Design
Systems Analysis and Design
Physical Database Design and Performance
Introduction to Information Technology
Systems Analysis and Design
Appendix Sample Innovation Plan
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Systems Analysis and Design 5th Edition Chapter 8. Architecture Design
Transportation and Transshipment Models
Physical Database Design
More about Databases.
Data Management: Data, Databases and Warehousing
Systems Analysis and Design
ACCOUNTING INFORMATION SYSTEMS
The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited)
Data Management: Data, Databases and Warehousing
ACCOUNTING INFORMATION SYSTEMS
Presentation transcript:

Physical Changes That Don’t Change the Logical Design CGS2540C Database Management This video discusses physical changes in the DB design that don’t change the logical design. Most importantly this means there is no introduction of data redundancy.

Physical Database Design Techniques Adding External Features Adding Indexes Adding Views Reorganizing Stored Data Clustering Files Splitting a Table into Multiple Tables Horizontal Partitioning Vertical Partitioning Splitting-Off Large Text Attributes Adding indexes and views are usually the first strategies used when creating the physical database design. First, they do not change the logical design which is a big benefit. Second they generally will have a large positive impact on the operational database. Clustering files and partitioning are less frequently used. These require the relational DB software have the capability to implement these strategies. Many small relational database software applications targeted for creating department databases do not. For example, MS Access can’t cluster or partition data. We will look at each of these options in more detail.

Adding Indexes Which attributes or combinations of attributes should you consider indexing in order to have the greatest positive impact on the application environment? Attributes that are likely to be prominent in direct searches Primary keys Search attributes Attributes that are likely to be major players in operations, such as joins, SQL SELECT ORDER BY clauses and SQL SELECT GROUP BY clauses. Most people have used the index of a book.  We recognize that it provides a quick way to scan for a topic, find a location (page number), and then proceed directly to that page to find the topic.  We would need to scan the entire book, page by page, front to back for a topic if there was no index.  Likewise, a database table must be scanned row by row when an index doesn't exist.  

Adding Indexes It is appropriate to create an index under the following conditions. A column contains a wide range of values. A column contains a large number of NULL values. One or more columns are frequently used together in a WHERE clause or a join condition. The table is large and most queries will return less than 2-4%  of the rows.

Adding Indexes What potential problems can be caused by building too many indexes? Indexes are wonderful for direct searches. But when the data in a table is updated, the system must take the time to update the table’s indexes, too. As mentioned in the textbook, there are diminishing returns as you add indexes for a table.  Each index incurs overhead as the underlying data is added, deleted, and changed. Not only must the data be changed but each index must also be updated. The book index looses some of its value if every word in the book is in the index.  Likewise, a database index looses some of its value (efficiency) if every or column or many columns are indexed.

Adding Views Doesn’t change the logical design. No data is physically duplicated. An important device in protecting the security and privacy of data. A view is a logical or virtual table.  It is based on one or more other views or physical tables in the database.  The view doesn't contain data in the same way a true table does.  Rather it represents another way to look at existing data.  You can think of a view as a stored query. Views are an excellent tool to tailor the presentation of data to fit the needs of the end user and/or the organization.  A view can also be used to limit access to sensitive data.  Consider a simple employees table that contains salary information.  You could create a view that extracts all the columns for each employee except those related to salary. A view can be used just as a table is used.  The end user need never know they are accessing a view and not a table. A view allows a database administrator (or anyone who has the proper rights) to "pre-select" data based on a complicated set of requirements and make that data available as a table.  The end user accesses only the end result and can see the data by using simple SELECT statements.

Reorganizing Stored Data Doesn’t change the logical design. No data is physically duplicated. Clustering Files Houses related records together on a disk. Another strategy to improve database performance is to change the way the data is physically stored. This doesn’t change the logical design and no data is physically duplicated. The most common way to reorganize the data is to use clustering. Clustered files store related rows together on the disk.

Reorganizing Stored Data: Clustering Files Here is an example of clustering. The salesperson record for salesperson 137, Baker, (click) is followed on the disk by the customer records for customers 0121, 0933, 1047, and 1826. (click) This arrangement would be quite beneficial anytime you needed to retrieve Salesperson data with his or her associated customers. Unfortunately, the Customer table is now fragmented and it is less efficient to retrieve all the rows in this table.

Splitting a Table Into Multiple Tables Horizontal Partitioning Vertical Partitioning Splitting-Off Large Text Attributes Another design strategy is to split a table into multiple tables. This can be accomplished by horizontal partitioning, vertical partitioning, or splitting-off large text attributes.

Horizontal Partitioning The Customer Employee table is horizontally partitioned in this example. The business rules have indicated it is common to retrieve information on customer employees who are sales managers. The rows of a table are divided into groups, and the groups are stored separately on different areas of a disk or on different disks. In this case, the rows are those for any employee who is a sales manager. This strategy is useful in managing the different groups of records separately for speed of access, security or backup and recovery purposes. A disadvantage of this strategy is that retrieval of records from more than one partition can be more complex and slower. For example, if you needed to retrieve all the employees for customer 1525, some of these would be in one partition and some would be in the other. Keep in mind in horizontal partitioning each partition has every column found in the table but only some of the rows. In this example, both partitions have the Customer Number, Employee Number, Employee Name, and Title columns.

Vertical Partitioning The Salesperson table is vertically partitioned in this example. The separate groups, each made up of different columns of a table, are created because different users or applications require different columns. In this example, the business rules have indicated it is common to retrieve the commission percentage (click) for a Salesperson. This column is therefore extracted and put in it is own table. In vertical partitioning it is necessary to add the primary key field or fields to the new partition (click) . In vertical partitioning, each partition has all the rows but only some of the columns of the complete table. The drawback to this approach is that retrieving a complete row is now less efficient.

Splitting Off Large Text Attributes A variation on vertical partitioning involves splitting off large text attributes into separate partitions. Each partition must have a copy of the primary key. A table may contain large text attributes like descriptions or comments. These may be rarely accessed and therefore it becomes more efficient to store these in a separate table. This is also true of certain objects like images, audio, or video that can be stored in a database.

This ends the video! “Copyright 2004 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information contained herein.”