Sequential Storage
Sequential Storage
Sequential Storage
It is one of the simple methods of file
organization.
Here each file/records are stored one after the
other in a sequential manner.
This can be achieved in two ways:
1. Records are stored one after the other as
they are inserted into the tables. This
method is called pile file method. 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 and new
block of record is entered.
2. In the second method, records are sorted
(either ascending or descending) each time
they are inserted into the system. This
method is called sorted file method.
Sorting of records may be based on the
primary key or on any other columns.
Whenever a new record is inserted, it will be
inserted at the end of the file and then it will
sort – ascending or descending based on key
value and placed at the correct position.
Advantages of Sequential Storage