mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-23 21:22:04 -05:00
The max(id) self-join let the query planner pick a nested-loop plan when it misjudged a season's row count (e.g. a freshly started season whose stats are dwarfed by older seasons), making the query take ~12s on the current season. The window-function form references Skill once and is plan-stable regardless of stats. Output is identical. |
||
|---|---|---|
| .. | ||
| findCurrentSkillByUserId.server.ts | ||
| findCurrentTeamSkillByIdentifier.server.ts | ||
| findSeedingSkill.server.ts | ||
| orderedMMRBySeason.server.ts | ||