DataBase

📌 다양한 Evaluation Plan 대안 중, 가장 낮은 Cost의 것을 선택하는 것

Selection

# All Blocks

Index (인덱스) Scan

  1. Primary Index: ⏰ h + 1, ⏰ h + # Blocks
  2. Secondary Index: ⏰ h + 1, h + # Records
  3. Primary Index + Comparison
    • < 조건: 인덱스 없이 맨 앞에서부터 보면 됨
    • > 조건: ⏰ h + # Blocks
  4. Secondary Index + Comparison:h + # Records

Sorting

Algorithm

  • DB는 대용량 ➡ Internal Sorting 불가