Block and Record Addresses and Variable Length Records




CS157b

Chris Pollett

Feb 5, 2020

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

In-Class Exercise

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