Methods of File Access
Methods of File Access
the physical arrangement of data in a file into records and pages on secondary storage
Data is stored in Chronological order o (i.e. as written to disk 1st entry at start to Last entry at end) A pointer is used to find the position in a file. New data appended to end of file.
Records are stored in key value order A Binary search is done for retrieval of data by using the key value
Indexed Sequential File Access Records stored in indexed key value order
y
y y
If the index too large then multi-level index used Specialised data structures that facilitate search are used for indexes
Sequential file organisation (in key value order) supports high hit-rate applications.
Index allows fast retrieval of individual records Supports low hit-rate applications.