Block and Record Addresses and Variable Length Records




CS157b

Chris Pollett

Feb 5, 2018

Outline

Introduction

Block and Record Addresses

Client-Server Systems

Client Server Systems (cont'd)

There are several ways to represent addresses in the database address space:

Logical Addresses

Structured Addresses

Advantages of this Scheme

Pointer Swizzling

A table show DB address and memory addresses used for swizzling

Pointer Swizzling Example

Records within a block before and after swizzling

Types of Swizzling

Quiz

Which of the following statements is true?

  1. The I/O Model of Computation says the time required to move a block to or from main memory is exactly equal to the time spent manipulating the data in memory.
  2. One way to represent VARCHAR's in database records is to use null-terminated strings.
  3. Raid 4 is also known as mirroring.

Returning Blocks to Disk

Pinned Records and Blocks

Keeping track of which bblocks use a particular swizzling.

Records with Variable Length Fields

Records with Repeating Fields

Variable Format Records

Records that do not fit in Blocks

Blobs