File Organization
File Organization
File Organization:
File organization is used to describe the way in which the records are stored in
terms of blocks, and the blocks are placed on the storage medium. Files of fixed
length records are easier to implement than the files of variable length records.
Attributes
Objective of file organization
o It contains an optimal selection of records, i.e., records can be selected as
fast as possible.
o To perform insert, delete or update transaction on the records should be
quick and easy.
o The duplicate records cannot be induced as a result of insert, update or
delete.
o For the minimal cost of storage, records should be stored efficiently.
CIT-503(Database Administration and Management )
When a record has to be received using the hash key columns, then the address is
generated, and the whole record is retrieved using that address. In the same way,
when a new record has to be inserted, then the address is generated using the
hash key and record is directly inserted. The same process is applied in the case of
delete and update. In this method, there is no effort for searching and sorting the
entire file. In this method, each record will be stored randomly in the memory.
Clusters are created when two or more records are saved in the same file. There
will be two or more tables in the same block of data in these files, and key
attributes that are used to link these tables together will only be kept once. This
strategy lowers the cost of searching several files for various records.
When combining tables with the same condition on a regular basis, the cluster file
organization is employed. Only a few records from both tables will be returned by
these joins.