rescoreRides runs in one request #146

Open
opened 2026-11-08 18:15:47 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-08 18:15:47 +00:00 (Migrated from github.com)

(session 28) rescoreRides decodes every file-backed ride from the entry's date in one request (about 1 ms a ride-hour to score, plus decode). Fine for one athlete's season; a years-back entry on a long history may want a background job.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

(session 28) `rescoreRides` decodes every file-backed ride from the entry's date in one request (about 1 ms a ride-hour to score, plus decode). Fine for one athlete's season; a years-back entry on a long history may want a background job. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:08:42 +00:00 (Migrated from github.com)

What this is about. Adding or deleting a dated threshold rescores every ride from that date. rescoreRides (src/server/rescore-store.ts) does it inside one request: it decodes each ride file and scores it (about 1 ms per ride-hour plus decoding).

Status (checked 2026-11-08): unchanged.

When it matters: a threshold dated years back on a long history could push one request toward the function time limit. Then move it to a background job (waitUntil, as feedback does). Not needed today.

**What this is about.** Adding or deleting a dated threshold rescores every ride from that date. `rescoreRides` (`src/server/rescore-store.ts`) does it inside one request: it decodes each ride file and scores it (about 1 ms per ride-hour plus decoding). **Status (checked 2026-11-08):** unchanged. **When it matters:** a threshold dated years back on a long history could push one request toward the function time limit. Then move it to a background job (`waitUntil`, as feedback does). Not needed today.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#146
No description provided.