db-physical-design

📁 kentoshimizu/sw-agent-skills 📅 1 day ago
1
总安装量
1
周安装量
#77340
全站排名
安装命令
npx skills add https://github.com/kentoshimizu/sw-agent-skills --skill db-physical-design

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
continue 1
kimi-cli 1

Skill 文档

DB Physical Design

Overview

Use this skill to align storage structures with workload shape, growth patterns, and operational constraints.

Scope Boundaries

  • Data volume or access distribution creates storage and latency pressure.
  • Partitioning or table layout decisions affect manageability.
  • Engine-specific behavior requires deliberate configuration.

Core Judgments

  • Partitioning strategy (range/hash/list/hybrid) and key choice.
  • Hot/cold data tiering and archival layout.
  • Table/index storage parameters by engine characteristics.
  • Maintenance strategy for bloat, vacuum/reorg, and statistics.

Practitioner Heuristics

  • Partition by access and lifecycle behavior, not by calendar habit.
  • Keep partition count operationally manageable.
  • Co-locate frequently joined data only when it materially improves hot paths.
  • Engine tuning must follow measured workload and failure history, not defaults folklore.

Workflow

  1. Profile data growth, access skew, and latency bottlenecks.
  2. Evaluate physical layout options against workload and operations cost.
  3. Select partition and storage strategies with explicit trade-offs.
  4. Define maintenance cadence for statistics and storage health.
  5. Document scaling and re-partitioning triggers.

Common Failure Modes

  • Partition key chosen without considering future rebalance complexity.
  • Excessive small partitions degrade planner and maintenance performance.
  • Storage tuning changes applied without workload baseline.

Failure Conditions

  • Stop when physical layout has no clear workload rationale.
  • Stop when partition strategy cannot support retention/archival requirements.
  • Escalate when operational maintenance burden exceeds team capacity.