










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Program 1 on web site: due next Friday
-^
Today: buffer replacement, record and blockformats
-^
Next Time: file organizations, start Chapter 14(indexes)
-^
Office hours change:– Old office hours Mon 10-11, Thur 1:30-2:30– New office hours Mon 10-11, Thur 2-
-^
Opportunity to replace lowest HW (not program)– Create PPT slides of worked examples
When to write dirty pages?– Dirty pages may be kept in buffer pool without being
written to disk immediately but,
transaction
the DBMS
log
(aka
journal
) is forced to disk (see Chapter 17)
How much does OS need to be concerned withhard drive architecture?– I am not certain but I would think not much
-^
Why does pin count for a frame exceed 1?– See email
Query OptimizationRelational Operators Disk Space Management
Buffer Management Files and Access Methods
So far we have reading andwriting whole blocks.Now we will discuss how anRDBMS organizes datawithin a block
file
is a collection of records that (in general)
spans multiple blocks
record 1
record 2
record 3
record 4
record 5
record 6
record N-
record N
block 1 of fileblock 2 of fileblock M of file
file withM blocks
We are primarily concerned with how these organizations
Record format– fixed length Vs variable length
-^
Record organization within a block– Packed, unpacked
-^
Record organization within file– ordered Vs unordered
Fixed length record format Variable length record formats
Variable length fields (most common)
-^
Repeating groups
-^
Optional fields
-^
Mixed record types
Heap Files– Unordered random sequence of records
-^
Ordered Files– Records are ordered by some field (or combination of
fields)
Hashed Files– A hash function used to quickly find records on some
key.
Spanned record organization is a more efficient use of space, butaccessing a record may require multiple I/O operation (may beunavoidable for large records).