Back to Decisions
Store performance scores as weighted average vs. raw scores
AcceptedYuki Tanaka2024-03-10
data-modelperformancebackend
Context
Why this decision needed to be made
Performance reviews have multiple dimensions (goals, values, skills) each with their own score. We need to decide whether to persist a single computed weighted average or store all raw dimension scores and compute on the fly.
Options Considered
Comparison of available options
| Option | Pros | Cons | Chosen |
|---|---|---|---|
Store weighted average only |
|
| — |
Store both raw scores and computed averageSelected |
|
|
Outcome
What was decided
Store both raw dimension scores and a computed weighted average
Rationale
Why this option was chosen
Storing raw scores allows us to reweight dimensions in future without migrating data. The computed average is cached for display performance but always recalculated on save to stay consistent.
Linked Requirements
Requirements affected by this decision
Referenced Files
Documents related to this decision