1. Trang chủ
  2. » Công Nghệ Thông Tin

slide cơ sở dữ liệu tiếng anh chương (18) methodology – monitoring and tuning the operational system transparencies

24 335 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 24
Dung lượng 1,96 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Step 7 Consider the Introduction of Controlled Redundancy To determine whether introducing redundancy in a controlled manner by relaxing normalization rules will improve the performan

Trang 1

Chapter 18

Methodology – Monitoring and Tuning the Operational System

Transparencies

Trang 2

How to measure efficiency.

How system resources affect performance.

Trang 3

Step 7 Consider the Introduction of

Controlled Redundancy

To determine whether introducing redundancy in

a controlled manner by relaxing normalization

rules will improve the performance of the system

Trang 4

Step 7 Consider the Introduction of

May be necessary to accept loss of some

benefits of a fully normalized design in

favor of performance

Trang 5

Step 7 Consider the Introduction of

Controlled Redundancy

Also consider that denormalization:

– makes implementation more complex; – often sacrifices flexibility;

– may speed up retrievals but it slows

down updates.

Trang 6

Step 7 Consider the Introduction of

Controlled Redundancy

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

Trang 7

Step 7 Consider the Introduction of

Controlled Redundancy

Consider denormalization in following situations, specifically to speed up frequent or critical transactions:

– Step 7.1 Combining 1:1 relationships

– Step 7.2 Duplicating non-key attributes

in 1:* relationships to reduce joins

– Step 7.3 Duplicating foreign key attributes in 1:* relationships to reduce joins

Trang 8

Step 7 Consider the Introduction of

Controlled Redundancy

– Step 7.4 Duplicating attributes in *:*

relationships to reduce joins

– Step 7.5 Introducing repeating groups

– Step 7.6 Creating extract tables

– Step 7.7 Partitioning relations.

Trang 9

Sample Relation Diagram

Trang 10

Sample Relations

Trang 11

Step 7.1 Combining 1:1 relationships

Trang 12

Step 7.2 Duplicating non-key attributes in 1:* relationships to reduce joins

Trang 13

Step 7.2 Duplicating non-key attributes in 1:* relationships: Lookup Table

Trang 14

Step 7.2 Duplicating non-key attributes in 1:* relationships: Lookup Table

Trang 15

Step 7.3 Duplicating FK attributes in 1:*

relationship to reduce joins

Trang 16

Step 7.4 Duplicating attributes in *:*

relationships to reduce joins

Trang 17

Step 7.5 Introducing repeating groups

Trang 18

Step 7.6 Creating extract tables

Reports can access derived data and perform relation joins on same set of base relations However, data the report is based on may be relatively static

multi-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

Trang 19

Step 7.7 Partitioning relations

Rather than combining relations together, alternative approach is to decompose them into a number of smaller and more

mannageable partitions

Two main types of partitioning: horizontal and vertical.

Trang 20

Step 7.7 Partitioning relations

Trang 21

Advantages and disadvantages of

denormalization

Trang 22

Step 8 Monitor & Tune Operational System

To monitor operational system and improve

performance of system to correct inappropriate design decisions or reflect changing requirements.

Trang 23

Step 8 Monitor & Tune Operational System

Number of factors may be used to measure

efficiency:

processed in giv en time interv al.

- Response time: elapsed time for completion of a

single transaction

- Disk storage: amount of disk space required to

store database files

No one factor is always correct Have to trade each off against another to achieve reasonable balance

Trang 24

Step 8 Monitor & Tune Operational System

DreamHome wish to hold pictures of

properties, and comments that describe main features of property.

Ngày đăng: 22/10/2014, 10:10

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm