Top Banner
System design : files
22

System design : files. Data Design Concepts Data Structures A file or table contains data about people, places or events that interact with the system.

Dec 13, 2015

Download

Documents

Georgia Pierce
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

System design : files

Page 2: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Data Design Concepts

Data StructuresA file or table contains data about people, places or

events that interact with the systemFile-oriented systemFile processingDatabase system

Page 3: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Data processing

1-Input data 2-process 3-Output data

Page 4: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Physically this data consists of alphanumeric characters grouped into data items or fields: for example, a customer name or address

Related fields are grouped into records A file is an organized collection of related

records

Page 5: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Types of data

Master data is critical to the system and its users.

System Telecom, for example, might hold data about customers, about the company’s own employees, and about call-logging stations.

Page 6: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Types of data

Transaction data is data relating to business activities. such as telephone calls logged.

For example, a new set of records may be created each day and written to file between system start-up and system shut-down.

The next morning, that data will be used to update the master data, and a new transaction file will be created for that day’s transactions.

Page 7: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Types of Data

Transaction files are sometimes known as transaction logs, log files, update files or change files

Output files contain information for output from the system, such as data for printing as a report. They are usually generated by processing master data and transaction data.

Page 8: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Types of Data

Page 9: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Security or dump files contain copies of data held in the computer at a particular moment. Their purpose is to provide a back-up, to

permit recovery in case data is lost or damaged.

Page 10: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Archive files contain archive information for long-term storage. System Telecom might want to archive details of

payments made by customers over past years.

Library files contain library routines such as utility programs and system software. The term can encompass any file containing any

compiled computer program.

Page 11: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Audit files are used by a computer auditor to check that the programs are functioning correctly, and to trace any change to master files. Such a file contains copies of all transactions

that have been applied to the permanent system files.

Page 12: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Data Design Concepts

Overview of File ProcessingCan be more efficient and

cost-effective in certain situations

Potential problems Data redundancy Data integrity Rigid data structure

Page 13: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Data Design Concepts

The Evolution from File Systems to Database SystemsAdvantages

Scalability Better support for client/server systems Economy of scale Flexible data sharing Enterprise-wide application – database administrator

(DBA)

Page 14: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Data Design Concepts

The Evolution from File Systems to Database SystemsAdvantages

Stronger standards Controlled redundancy Better security Increased programmer productivity Data independence

Page 15: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Figure 8-5: Data Structure Hierarchy

15

Page 16: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

File Organization

Serial OrganisationThe main disadvantage of serial organization

is that it does not cater for direct access to records.

If the required record is in the fifteenth position in the file, the first 14 must be read prior to accessing record 15.

Page 17: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

File Organization

Sequential OrganisationThe advantages of sequential organisation

are: It is a simple method of writing data to disk. It is the most efficient organisation if the records

can be processed in the order in which they are read.

It can be used for variable-length records as well as fixed-length records.

Page 18: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

File Organization

Indexed Sequential OrganisationThe main advantage of indexed sequential

organization is its versatility. It combines direct access to a group of records

with rapid sequential scanning of the group to obtain the record required.

What is disadvantage??

Page 19: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Random Organization A mathematical formula is derived that, when applied

to each record key, generates an answer that is used to position the record at a corresponding address.

The main advantages of random organization are: No indexes are required. It permits the fastest access times. It is suitable for volatile data: records can be inserted or

deleted indefinitely without reorganizing the dataset.

Page 20: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

What are disadvantagesGive an example of such mathematical

formula Full Index Organization Chained Data

Page 21: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

reports

Write about Access methodsFactors Influencing File Design

Systems Analysis and Design 2nd EditionBy:

Page 22: System design : files. Data Design Concepts  Data Structures  A file or table contains data about people, places or events that interact with the system.

Questions

What are the main issues to be considered when choosing a file organization?

What circumstances would make an indexed sequential organization appropriate for a master file?