Presentation is loading. Please wait.

Presentation is loading. Please wait.

DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance.

Similar presentations


Presentation on theme: "DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance."— Presentation transcript:

1 DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance

2 File Organization Physical arrangement of the records of a file on secondary storage devices Sequential Linked List Indexed Hashed

3 Sequential File Sequential file sorted in alphabetical order. Sequential files are usually sorted in ID sequence order to facilitate batch processing.

4 Sequential File Processing Transaction Old Master New Master Process Sequential files must be recopied from the point of any insertion or deletion to the end of the file. They are commonly used in batch processing where a new master file will be generated each time the file is updated.

5 Linked List Linked list to sort data alphabetically within department. An external reference must point to the start record (05).

6 Linked List File Processing The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record.

7 Indexed File (sequential index) Index to access data by department abbreviation.

8 Indexed File Processing Index Data File When a record is inserted or deleted in a file the data can be added at any location in the data file. Each index must also be updated to reflect the change. For a simple sequential index this may mean rewriting the index for each insertion. Index

9 Segmented Index Index Data Leaf Root Nodes

10 Indexed File Processing (segmented index) Data File Index Data can be inserted or deleted at any location in the data file. The index(es) must be updated for each change, but only the affected segments need to be rewritten.

11 Track

12 Physical Design zVolume and Usage analysis zDistribution Strategy zFile Organizations zIndexes and Access Methods zIntegrity Constraints

13 Physical Design Issues zSize zSpeed of access zSpeed of update zGrowth issues: performance and degradation zSecurity zMaintenance

14 DBMS Organization zRelationships: physical address pointers zLinks generated when data is entered zEfficient but not flexible zAd hoc design zQuery dependent on specific DBMS (may support SQL) zRelationships: logical data references zLinks generated when data is retrieved zFlexible but not efficient zTheoretical base zSQL Structured Relational

15 DBMS Technology CPU Components Operation DASD Technology Organization Data Transfer Access methods

16 Physical Design Data Distribution zCentralized zPartitioned Horizontal Vertical zReplicated zHybrid


Download ppt "DBMS Physical Design Physical design is concerned with the placement of data and selection of access methods for efficiency and ongoing maintenance."

Similar presentations


Ads by Google