SlideShare a Scribd company logo
A PRESENTATION ON
FILE ORGANIZATION
SS2 DATA PROCESSING
FILE
ORGANIZATION
OBJECTIVES
By the end of this lesson, the students should
be able to;
• Define file organization
• State the types of file organization
• Sate the efficiency of file organization
• Sate the significance of choosing of an
appropriate file organization for your data
FILE
• A file is a collection of data stored on
a storage media, that is treated as a
single unit on a peripheral device.
Types of Data Files
• There are numerous types of files used for
storing data needed for processing, reference
or back up.
• The main common types of processing files
include
 Master File
 Transaction (movement or activity) file
 Reference file
 Backup file
 Report file
Types of Data Files
• Master File
It contains record of permanent data types.
They are created when you install your
business.
• Transaction (movement or activity) file
A transaction file is used to hold data during
transaction processing. The file is later used
to update the master file and audit daily,
weekly or monthly transactions.
Types of Data Files
• Reference file
A reference file is mainly used for reference or look-
up purposes. Look-up information is that
information that is stored in a separate file but is
required during processing.
• Backup file
A backup files is used to hold copies (backups) of
data or information from the computers fixed
storage (hard disk
STORAGE DEVICES
CHARACTERISTICS
• The major storage media
are;
• Tape (Magnetic technology)
• Hard Disk (Optical Technology)
• Solid State Drive (Flash memory/Solid
state memory)
TERMINOLOGIES
• Seek Time is defined as the time required by the
read/write head to move from one track to another.
• Rotational latency (sometimes called rotational
delay or just latency) is the delay waiting for the
rotation of the disk to bring the required disk sector
under the read-write head.
• Access time is total time it takes a computer to
request data, and then that request to be met
• The access time, therefore, depends on the seek
time and the latency time.
TERMINOLOGIES
• Fixed-length records - all the records are exactly
the same length. (read the note for more)
• Variable-length records - the length of each record
varies.
TYPES OF FILE ORGANIZATION
FILE ORGANIZATION
File organization refers to the way records
are physically arranged on a storage device
The main types of file organization are;
Sequential
Indexed Sequential
Direct Access /Random
Access/Hash/Relative
TYPES OF FILE ORGANIZATION
Other types are;
• Heap File Organization
• Cluster File Organization
• B+ Tree File Organization
Sequential File Organization
Here each file/records are stored one after the
other in a sequential manner, that is, in the
order in which they are created. This can be
achieved in two ways:
pile or serial file method
sorted file method
Sequential File Organization
Pile or Serial method
Records are stored one after the other as they
are inserted into the tables, they are unordered.
When a new record is inserted, it is placed at the
end of the file. In the case of any modification or
deletion of record, the record will be searched in
the memory blocks. Once it is found, it will be
marked for deleting
Cannot be used as master
Used as temporary transaction file
Sequential File Organization
Sorted method
A collection of records
Stored in key sequence
Adding/deleting record requires making new
file
Used as master files
Advantages
Simple file design
Very efficient when most of the records must
be processed e.g. Payroll
Very efficient if the data has a natural order
Can be stored on inexpensive devices like
magnetic tape.
Disadvantages
For the sorted method, entire file must be
processed even if a single record is to be
searched, hence time consuming.
Overall processing is slow
Random enquiries not possible to handle
Examples of media in Sequential
orgnization
Tape
Video Cassettes
Music cassettes
Direct (Random) File Organization
Records are read directly from or written on
to the file.
The records are stored at known address.
Address is calculated by applying a
mathematical function (hashing
function) to the key field.
Records can be accessed both
randomly and sequentialy
Direct (Random) File Organization
A random file would have to be stored on a
direct access backing storage medium e.g.
magnetic disc, CD, DVD, flash drive, Blu-
ray disk.
Example : Any information retrieval system.
Eg Train timetable system.
Advantages
Any record can be directly accessed.
Speed of record processing is very fast.
Up-to-date file because of online updating.
Concurrent processing is possible.
Disadvantages
More complex than sequential
Does not fully use memory locations
More security and backup problems
(backup facility needed)
Indexed sequential file
Each record of a file has a key field which
uniquely identifies that record.
An index consists of keys and addresses.
An indexed sequential file is a sequential
file (i.e. sorted into order of a key field) which
has an index.
A full index to a file is one in which there is
an entry for every record.
Indexed sequential file
Indexed sequential file
Indexed sequential files are important for
applications where data needs to be
accessed.....
–
–
sequentially
randomly using the index.
Indexed sequential file
An indexed sequential file can only be stored
on a random access device
e.g. magnetic disc, CD.
Advantages
Provides flexibility for users who need both
type of accesses with the same file
Faster than sequential
Disadvantages
Extra storage space for the index is
required
• Less efficient in storage
Factors to consider when choosing
a file organization method.
• Frequency of update: A file that needs to be
updated every now and then needs an
organization method that will allow easy retrieval
of information and ease of updating, example of
such a file is the transaction file.
• File activity: Different files have different
activities, example a sort file is used to sort data
in sequential order and therefore sequential
method would be appropriate for such a file.
Factors to consider when choosing
a file organization method.
• File access method: Definitely different files
have different methods of being accessed,
example a reference file is accessed using
random method for easy retrieval of data.
• Nature of the system: Files that are used in a
particular system will depend on the nature of
the system i.e the suitable organization method
for that particular system.
Factors to consider when choosing
a file organization method.
• Master file medium: The master file is the main
file for keeping permanent updates of records
from transaction files and other sources, the
medium by which it is updated will determine
the organization method to be used.

More Related Content

What's hot

Demand paging
Demand pagingDemand paging
Demand paging
Trinity Dwarka
 
Evolutionary process models se.ppt
Evolutionary process models se.pptEvolutionary process models se.ppt
Evolutionary process models se.ppt
bhadjaashvini1
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
sonalikharade3
 
Introduction to UML
Introduction to UMLIntroduction to UML
Software Engineering (Metrics for Process and Projects)
Software Engineering (Metrics for Process and Projects)Software Engineering (Metrics for Process and Projects)
Software Engineering (Metrics for Process and Projects)
ShudipPal
 
Lect2 conventional software management
Lect2 conventional software managementLect2 conventional software management
Lect2 conventional software management
meena466141
 
Software Configuration Management (SCM)
Software Configuration Management (SCM)Software Configuration Management (SCM)
Software Configuration Management (SCM)
Er. Shiva K. Shrestha
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
Ramakant Soni
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation
Anil Kumar Prajapati
 
Advanced topics in software engineering
Advanced topics in software engineeringAdvanced topics in software engineering
Advanced topics in software engineering
Rupesh Vaishnav
 
Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) - Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) -
Shashi Kumar
 
Function Point Analysis
Function Point AnalysisFunction Point Analysis
Function Point Analysis
Araf Karsh Hamid
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Sudarsun Santhiappan
 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashing
arifmollick8578
 
Software Engineering (Risk Management)
Software Engineering (Risk Management)Software Engineering (Risk Management)
Software Engineering (Risk Management)
ShudipPal
 
Datasource in asp.net
Datasource in asp.netDatasource in asp.net
Datasource in asp.net
Sireesh K
 
Operating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / OutputOperating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / Output
Peter Tröger
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler design
Kuppusamy P
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notesSiva Ayyakutti
 
Web Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional SoftwareWeb Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional Software
Nosheen Qamar
 

What's hot (20)

Demand paging
Demand pagingDemand paging
Demand paging
 
Evolutionary process models se.ppt
Evolutionary process models se.pptEvolutionary process models se.ppt
Evolutionary process models se.ppt
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Software Engineering (Metrics for Process and Projects)
Software Engineering (Metrics for Process and Projects)Software Engineering (Metrics for Process and Projects)
Software Engineering (Metrics for Process and Projects)
 
Lect2 conventional software management
Lect2 conventional software managementLect2 conventional software management
Lect2 conventional software management
 
Software Configuration Management (SCM)
Software Configuration Management (SCM)Software Configuration Management (SCM)
Software Configuration Management (SCM)
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Data structure power point presentation
Data structure power point presentation Data structure power point presentation
Data structure power point presentation
 
Advanced topics in software engineering
Advanced topics in software engineeringAdvanced topics in software engineering
Advanced topics in software engineering
 
Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) - Unit 8-risk manaegement (1) -
Unit 8-risk manaegement (1) -
 
Function Point Analysis
Function Point AnalysisFunction Point Analysis
Function Point Analysis
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Allocation of Frames & Thrashing
Allocation of Frames & ThrashingAllocation of Frames & Thrashing
Allocation of Frames & Thrashing
 
Software Engineering (Risk Management)
Software Engineering (Risk Management)Software Engineering (Risk Management)
Software Engineering (Risk Management)
 
Datasource in asp.net
Datasource in asp.netDatasource in asp.net
Datasource in asp.net
 
Operating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / OutputOperating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / Output
 
Code optimization in compiler design
Code optimization in compiler designCode optimization in compiler design
Code optimization in compiler design
 
Software engineering lecture notes
Software engineering lecture notesSoftware engineering lecture notes
Software engineering lecture notes
 
Web Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional SoftwareWeb Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional Software
 

Similar to Wk 1 - File organization.pptx

Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdyMohamed Magdy
 
File Management
File ManagementFile Management
File Management
ramya marichamy
 
File organisation
File organisationFile organisation
File organisation
Samuel Igbanogu
 
FIle Organization.pptx
FIle Organization.pptxFIle Organization.pptx
FIle Organization.pptx
Sreenivas R
 
File organisation in system analysis and design
File organisation in system analysis and designFile organisation in system analysis and design
File organisation in system analysis and design
Mohitgauri
 
File Structure.pptx
File Structure.pptxFile Structure.pptx
File Structure.pptx
zedd15
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptx
NavyaKumar22
 
File Management
File ManagementFile Management
File Management
Ramasubbu .P
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
Lavanya Sharma
 
File Management & Access Control
File Management & Access Control File Management & Access Control
File Management & Access Control
YuvrajWadavale
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptx
Jayendranath3
 
File organization and introduction of DBMS
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMS
VrushaliSolanke
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
FraolUmeta
 
File Systems
File SystemsFile Systems
File Systems
Shipra Swati
 
File organization
File organizationFile organization
File organization
KanchanPatil34
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
SanthiNivas
 

Similar to Wk 1 - File organization.pptx (20)

File organisation
File organisationFile organisation
File organisation
 
Fileorganization AbnMagdy
Fileorganization AbnMagdyFileorganization AbnMagdy
Fileorganization AbnMagdy
 
File organization
File organizationFile organization
File organization
 
File Management
File ManagementFile Management
File Management
 
File organisation
File organisationFile organisation
File organisation
 
FIle Organization.pptx
FIle Organization.pptxFIle Organization.pptx
FIle Organization.pptx
 
File organisation in system analysis and design
File organisation in system analysis and designFile organisation in system analysis and design
File organisation in system analysis and design
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
File Structure.pptx
File Structure.pptxFile Structure.pptx
File Structure.pptx
 
File organization
File organizationFile organization
File organization
 
UNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptxUNIT7-FileMgmt.pptx
UNIT7-FileMgmt.pptx
 
File Management
File ManagementFile Management
File Management
 
File system in operating system e learning
File system in operating system e learningFile system in operating system e learning
File system in operating system e learning
 
File Management & Access Control
File Management & Access Control File Management & Access Control
File Management & Access Control
 
DBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptxDBMS_UNIT 5 Notes.pptx
DBMS_UNIT 5 Notes.pptx
 
File organization and introduction of DBMS
File organization and introduction of DBMSFile organization and introduction of DBMS
File organization and introduction of DBMS
 
fileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdffileorganizationandintroductionofdbms-210313163900.pdf
fileorganizationandintroductionofdbms-210313163900.pdf
 
File Systems
File SystemsFile Systems
File Systems
 
File organization
File organizationFile organization
File organization
 
Introduction to File System
Introduction to File SystemIntroduction to File System
Introduction to File System
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 

Wk 1 - File organization.pptx

  • 1. A PRESENTATION ON FILE ORGANIZATION SS2 DATA PROCESSING
  • 3. OBJECTIVES By the end of this lesson, the students should be able to; • Define file organization • State the types of file organization • Sate the efficiency of file organization • Sate the significance of choosing of an appropriate file organization for your data
  • 4. FILE • A file is a collection of data stored on a storage media, that is treated as a single unit on a peripheral device.
  • 5. Types of Data Files • There are numerous types of files used for storing data needed for processing, reference or back up. • The main common types of processing files include  Master File  Transaction (movement or activity) file  Reference file  Backup file  Report file
  • 6. Types of Data Files • Master File It contains record of permanent data types. They are created when you install your business. • Transaction (movement or activity) file A transaction file is used to hold data during transaction processing. The file is later used to update the master file and audit daily, weekly or monthly transactions.
  • 7. Types of Data Files • Reference file A reference file is mainly used for reference or look- up purposes. Look-up information is that information that is stored in a separate file but is required during processing. • Backup file A backup files is used to hold copies (backups) of data or information from the computers fixed storage (hard disk
  • 8. STORAGE DEVICES CHARACTERISTICS • The major storage media are; • Tape (Magnetic technology) • Hard Disk (Optical Technology) • Solid State Drive (Flash memory/Solid state memory)
  • 9.
  • 10.
  • 11.
  • 12. TERMINOLOGIES • Seek Time is defined as the time required by the read/write head to move from one track to another. • Rotational latency (sometimes called rotational delay or just latency) is the delay waiting for the rotation of the disk to bring the required disk sector under the read-write head. • Access time is total time it takes a computer to request data, and then that request to be met • The access time, therefore, depends on the seek time and the latency time.
  • 13. TERMINOLOGIES • Fixed-length records - all the records are exactly the same length. (read the note for more) • Variable-length records - the length of each record varies.
  • 14. TYPES OF FILE ORGANIZATION FILE ORGANIZATION File organization refers to the way records are physically arranged on a storage device The main types of file organization are; Sequential Indexed Sequential Direct Access /Random Access/Hash/Relative
  • 15. TYPES OF FILE ORGANIZATION Other types are; • Heap File Organization • Cluster File Organization • B+ Tree File Organization
  • 16. Sequential File Organization Here each file/records are stored one after the other in a sequential manner, that is, in the order in which they are created. This can be achieved in two ways: pile or serial file method sorted file method
  • 17. Sequential File Organization Pile or Serial method Records are stored one after the other as they are inserted into the tables, they are unordered. When a new record is inserted, it is placed at the end of the file. In the case of any modification or deletion of record, the record will be searched in the memory blocks. Once it is found, it will be marked for deleting Cannot be used as master Used as temporary transaction file
  • 18.
  • 19. Sequential File Organization Sorted method A collection of records Stored in key sequence Adding/deleting record requires making new file Used as master files
  • 20.
  • 21. Advantages Simple file design Very efficient when most of the records must be processed e.g. Payroll Very efficient if the data has a natural order Can be stored on inexpensive devices like magnetic tape.
  • 22. Disadvantages For the sorted method, entire file must be processed even if a single record is to be searched, hence time consuming. Overall processing is slow Random enquiries not possible to handle
  • 23. Examples of media in Sequential orgnization Tape Video Cassettes Music cassettes
  • 24. Direct (Random) File Organization Records are read directly from or written on to the file. The records are stored at known address. Address is calculated by applying a mathematical function (hashing function) to the key field. Records can be accessed both randomly and sequentialy
  • 25. Direct (Random) File Organization A random file would have to be stored on a direct access backing storage medium e.g. magnetic disc, CD, DVD, flash drive, Blu- ray disk. Example : Any information retrieval system. Eg Train timetable system.
  • 26. Advantages Any record can be directly accessed. Speed of record processing is very fast. Up-to-date file because of online updating. Concurrent processing is possible.
  • 27. Disadvantages More complex than sequential Does not fully use memory locations More security and backup problems (backup facility needed)
  • 28. Indexed sequential file Each record of a file has a key field which uniquely identifies that record. An index consists of keys and addresses. An indexed sequential file is a sequential file (i.e. sorted into order of a key field) which has an index. A full index to a file is one in which there is an entry for every record.
  • 30. Indexed sequential file Indexed sequential files are important for applications where data needs to be accessed..... – – sequentially randomly using the index.
  • 31. Indexed sequential file An indexed sequential file can only be stored on a random access device e.g. magnetic disc, CD.
  • 32. Advantages Provides flexibility for users who need both type of accesses with the same file Faster than sequential
  • 33. Disadvantages Extra storage space for the index is required • Less efficient in storage
  • 34. Factors to consider when choosing a file organization method. • Frequency of update: A file that needs to be updated every now and then needs an organization method that will allow easy retrieval of information and ease of updating, example of such a file is the transaction file. • File activity: Different files have different activities, example a sort file is used to sort data in sequential order and therefore sequential method would be appropriate for such a file.
  • 35. Factors to consider when choosing a file organization method. • File access method: Definitely different files have different methods of being accessed, example a reference file is accessed using random method for easy retrieval of data. • Nature of the system: Files that are used in a particular system will depend on the nature of the system i.e the suitable organization method for that particular system.
  • 36. Factors to consider when choosing a file organization method. • Master file medium: The master file is the main file for keeping permanent updates of records from transaction files and other sources, the medium by which it is updated will determine the organization method to be used.

Editor's Notes

  1. For a fixed head disk, the seek time is 0).
  2. For a fixed head disk, the seek time is 0).