Storage and File Management
Storage and File Management
1
• The tables are stored as database files inside
secondary storage
• The data transfer between disk and memory
takes place in units of block.
• Block size is 2KB, 4KB, 8KB, 16KB, 32KB
2
• File organization determines various access
methods for
– storing and
– retrieving records from database file.
3
Different file organization
4
Heap files
6
Sorted file
7
8
Hash file
10
Static hashing
11
Primary index
Index based on
an ordering key
column is called
primary index.
12
Secondary index
Index based on
any non-ordering
column is called
secondary index.
13
Dense index
If there does not exists index record for every distinct value
of the indexing field then the index is called sparse index.
15
16