Variable Length Records, Record Modifications and Indexes




CS157b

Chris Pollett

Feb 10, 2020

Outline

Introduction

Records with Variable Length Fields

Records with Repeating Fields

Variable Format Records

Records that do not fit in Blocks

Blobs

Quiz

Which of the following statements is true?

  1. In RAID level 4, `n` data disks and `1` parity disk is used.
  2. When storing a table on disk, we typically only use headers at the start of a block, not at the start of a record.
  3. Pointer swizzling and record pinning are the same thing.

Record Insertion

Record Insertion Sorted case

Records within a block and offsets

Record Deletion

Record Update

Speeding Queries and Indexes

Indexes

Types of Indexes

Sequential Files

Illustration of block structure of a Sequential File

Dense Indexes

Illustration of block structure of a dense index

More on Dense Indexes

Dense Index Example

Sparse Indexes

Illustration of block structure of a sparse index

Sparse Index Example

Multi-Level Indexes