1.1 Data on External Storage: |
DBMS stores vast quantities of data, and the data must persist across program executions. Therefore, data is stored on external storage devices such as disks and tapes.And fetched into main memory as needed for processing.
Page: |
Def : The unit of information read from or written to disk is a page. |
The size of a page is a DBMS parameter, and typical values are 4KB or 8KB. |
The cost of page I/O (input from disk to main memory and output from memory to disk) dominates the cost of typical database operations, and database systems are carefully optimized to minimize this cost.
Points to remember: |
Disks: |
- Disks are the most important external storage devices.
- Disk allows us to retrieve any page at a (more or less) fixed cost per page. However, if we read several pages in the order that they are stored physically, the cost can be much less than the cost of reading the same pages in a random order.
Tapes: |
|
Record in a file |
It is one data entry stored in file, It has a unique identifier called a record id. |
Buffer manager: |
|
|






No comments:
Post a Comment