File Access Methods Flashcards
(7 cards)
Serial Access
How it works: Records are stored one after another in the order they are entered.
Access type: Must read from the beginning to find a record.
Best for: Small datasets where search speed is not critical.
Sequential Access
How it works: Records are stored in a specific order (e.g., by name or ID).
Access type: Read records in sequence, but faster than serial due to sorting.
Best for: Batch processing, e.g., payroll.
Direct Access
How it works: Uses a key (like an employee ID) to jump directly to a record.
Access type: Quick access using a lookup method (e.g., hashing).
Best for: Applications needing fast searches.
Random Access
How it works: Records can be accessed at any position without a specific order.
Access type: Truly flexible – jump to any record.
Best for: Multimedia apps, games, or real-time systems.
Archiving
Serial or Sequential
Payroll File
Sequential
Real-Time Systems
Direct or Random