Relation Names

Indexing

Standard Physical Design

Defines the following for each relation name R

  1. Primary index for R materializing its extension as a concrete data structure
  2. Zero or more secondary indices for R materializing projections of the primary index for R as concrete data structures

→ Materialization of a relation adds an additional record identifier (RID) attribute to the relation
→ Secondary Indices usually include the RID attribute of the primary index in their projection of R

Index Scan σφ(index)

Assuming k = Cnum(index) and φ is the condition #i=c then an index scan is equivalent to π#1,...,#k(σ#i=#k+1(index×c))

Primary Indices

Btree index PROF-PRIMARY on pnum
Pasted image 20231213194851.png

Secondary Indices

Btree index PROF-SECONDARY on lname
Pasted image 20231213194923.png