Sekolah Tinggi Ilmu Statistik (STIS). Main Topics Denormalizing and introducing controlled redundancy  Meaning of denormalization.  When to denormalize.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Advertisements

Chapter 18 Methodology – Monitoring and Tuning the Operational System Transparencies © Pearson Education Limited 1995, 2005.
Topic Denormalisation S McKeever Advanced Databases 1.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Physical Database Monitoring and Tuning the Operational System.
1 Methodology : Conceptual Databases Design © Pearson Education Limited 1995, 2005.
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
PARTITIONING “ A de-normalization practice in which relations are split instead of merger ”
Chapter 5 Normalization of Database Tables
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Methodology Conceptual Database Design
Chapter 17 Methodology – Physical Database Design for Relational Databases Transparencies © Pearson Education Limited 1995, 2005.
Team Dosen UMN Physical DB Design Connolly Book Chapter 18.
Logical Database Design Nazife Dimililer. II - Logical Database Design Two stages –Building and validating local logical model –Building and validating.
Introduction to Databases. Case Example: File based Processing Real Estate Agent’s office Property for sale or rent Potential Buyer/renter Staff/employees.
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
Chapters 17 & 18 Physical Database Design Methodology.
Practical Database Design and Tuning. Outline  Practical Database Design and Tuning Physical Database Design in Relational Databases An Overview of Database.
CSC271 Database Systems Lecture # 30.
1 © Prentice Hall, 2002 Physical Database Design Dr. Bijoy Bordoloi.
Lecture 9 Methodology – Physical Database Design for Relational Databases.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
© Pearson Education Limited, Chapter 16 Physical Database Design – Step 7 (Monitor and Tune the Operational System) Transparencies.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Chapter 16 Methodology – Physical Database Design for Relational Databases.
Database Systems: Design, Implementation, and Management Tenth Edition
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
Physical Database Design
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Methodology: Conceptual Databases Design
DATABASE MGMT SYSTEM (BCS 1423) Chapter 5: Methodology – Conceptual Database Design.
© Pearson Education Limited, Chapter 15 Physical Database Design – Step 7 (Consider Introduction of Controlled Redundancy) Transparencies.
Chapter 16 Practical Database Design and Tuning Copyright © 2004 Pearson Education, Inc.
Object Persistence (Data Base) Design Chapter 13.
10/10/2012ISC239 Isabelle Bichindaritz1 Physical Database Design.
Physical Database Design Transparencies. ©Pearson Education 2009 Chapter 11 - Objectives Purpose of physical database design. How to map the logical database.
Advanced Database Systems
IMS 4212: Database Implementation 1 Dr. Lawrence West, Management Dept., University of Central Florida Physical Database Implementation—Topics.
Sekolah Tinggi Ilmu Statistik (STIS) 1 Dr. Said Mirza Pahlevi, M.Eng.
Methodology – Physical Database Design for Relational Databases.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Methodology – Monitoring and Tuning the Operational System.
In this session, you will learn to: Describe data redundancy Describe the first, second, and third normal forms Describe the Boyce-Codd Normal Form Appreciate.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
Lec 7 Practical Database Design and Tuning Copyright © 2004 Pearson Education, Inc.
B. Information Technology (Hons.) CMPB245: Database Design Physical Design.
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Distributed Database Design Bayu Adhi Tama, MTI Fasilkom-Unsri Adapted from Connolly, et al., Database Systems 4 th Edition, Pearson Education Limited,
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
Converting ER/EER to logical schema; physical design issues 1.
Practical Database Design and Tuning
ITD1312 Database Principles Chapter 5: Physical Database Design
Methodology – Physical Database Design for Relational Databases
Methodology – Monitoring and Tuning the Operational System
Physical Database Design for Relational Databases Step 3 – Step 8
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
國立臺北科技大學 課程:資料庫系統 fall Chapter 18
Physical Database Design
Practical Database Design and Tuning
Relational Database Model
The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited)
Methodology – Monitoring and Tuning the Operational System
Presentation transcript:

Sekolah Tinggi Ilmu Statistik (STIS)

Main Topics Denormalizing and introducing controlled redundancy  Meaning of denormalization.  When to denormalize to improve performance. Monitoring the system to improve performance  Importance of monitoring and tuning the operational system.  How to measure efficiency.  How system resources affect performance. 2 Dr. Said Mirza Pahlevi, M.Eng.

First Topic 3 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Introduction of Controlled Redundancy To determine whether introducing redundancy in a controlled manner by relaxing normalization rules will improve the performance of the system. 4 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Introduction of Controlled Redundancy Sometimes a normalized database does not provide maximum processing efficiency. We may accept loss of some benefits of a fully normalized design in favor of performance. To determine whether introducing redundancy in a controlled manner by relaxing normalization rules will improve the performance of the system. Result of normalization is a design that is structurally consistent with minimal redundancy. 5 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Effect of Denormalization Makes implementation more complex; Often sacrifices flexibility; May speed up retrievals but it slows down updates. 6 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 7 Example: Data Redundancy Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) What is Denormalization? Refers to a refinement to relational schema such that the degree of normalization for a modified relation is less than the degree of at least one of the original relations. Also use term more loosely to refer to situations where two relations are combined into one new relation, which is still normalized but contains more nulls than original relations. 8 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Denormalization Situation Consider denormalization to speed up frequent or critical transactions: 1.Combining 1:1 relationships 2.Duplicating non-key attributes in 1:* relationships to reduce joins 3.Duplicating foreign key attributes in 1:* relationships to reduce joins 4.Duplicating attributes in *:* relationships to reduce joins 5.Introducing repeating groups 6.Creating extract tables 9 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 10 Sample Relation Diagram Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Sample Relations 11 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 1. Combining 1:1 relationships 12 When Client and Interview tables are frequently referenced together and infrequently referenced separately Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 2. Duplicating non-key attributes in 1:* relationships to reduce joins When PropertyForRent table is accessed, it is very common for the owner’s name to be accessed at the same time.  SELECT p.*, o.lName FROM PropertyForRent p, PrivateOwner o WHERE p.ownerNo=o.ownerNo AND branchNo=‘B003’ SQL after denormalization (no name will be change)  SELECT p.* FROM PropertyForRent p WHERE branchNo=‘B003’ 13 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Duplicating non-key attributes in 1:* relationships: Lookup Table 14 If lookup table is used frequent or critical queries, and the description is unlikely to change. Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) After Duplicating non-key attributes 15 Note: the lookup table can still be used to validate user input Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 3. Duplicating FK attributes in 1:* relationship to reduce joins 16 When frequent query is to list all private prop. owners at a branch SELECT o.lName FROM PropertyForRent p, PrivateOwner o WHERE p.ownerNo= o.OwnerNo AND branchNo=‘B003’ After duplicating FK. SELECT o.lName FROM PrivateOwner o WHERE branchNo=‘B003’ When frequent query is to list all private prop. owners at a branch SELECT o.lName FROM PropertyForRent p, PrivateOwner o WHERE p.ownerNo= o.OwnerNo AND branchNo=‘B003’ After duplicating FK. SELECT o.lName FROM PrivateOwner o WHERE branchNo=‘B003’ Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 4. Duplicating attributes in *:* relationships to reduce joins 17 Sales staff should contact clients without comment on the properties and he needs only street of the property.  SELECT p.street, c.*, v.viewDate FROM Client c, Viewing v, PropertyForRent p WHERE v.propertyNo=p.propertyNo AND c.clientNo=v.clientNo AND comment IS NULL After duplicating the attributes.  SELECT v.street, c.*, v.viewDate FROM Client c, Viewing v WHERE c.clientNo=v.clientNo AND comment IS NULL Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 5. Introducing repeating groups 18 When access to tel. no is important and frequent. Use this when:  The absolute number of items in the group is known  The number is static  The number is not very large (less than 10) Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) 6. Creating extract tables Reports can access derived data and perform multi-relation joins on same set of base relations. However, data the report is based on may be relatively static or may not have to be current. Possible to create a single, highly denormalized extract table based on relations required by reports, and allow users to access extract table directly instead of base relations. 19 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Advantages and disadvantages of denormalization 20 Dr. Said Mirza Pahlevi, M.Eng.

Second Topic 21 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Monitor & Tune Operational System To monitor operational system and improve performance of system to correct inappropriate design decisions or reflect changing requirements. 22 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Monitor & Tune Operational System Number of factors may be used to measure efficiency:  Transaction throughput: number of transactions processed in given time interval.  Response time: elapsed time for completion of a single transaction.  Disk storage: amount of disk space required to store database files. Have to trade each off against another to achieve reasonable balance. Need to understand how the various hardware components interact and affect database performance. 23 Dr. Said Mirza Pahlevi, M.Eng.

Sekolah Tinggi Ilmu Statistik (STIS) Consideration Points It is sensible always to have a minimum of 5% of main memory available. It is necessary to understand the typical workload through 24 hour period to ensure sufficient resources are available Storage should evently distributed to reduce disk contention  Separate OS, main database files, index files and recovery log files. 24 Dr. Said Mirza Pahlevi, M.Eng.