Folder search: game first, then the rest, on every core #17

Merged
spark merged 1 commits from task/scan-game-then-rest into main 2026-10-17 19:12:34 +01:00
Owner

A folder scan names a face from the chosen game first: the two teams' squad and the match officials (referees, table) who already have a face.
If none of them match, the same face is compared with the rest of the organization.
The API keeps one face process per spare core (about 40 on pr-api) and the app keeps that many photos in flight.
The library worker's face pool stays capped.

A folder scan names a face from the chosen game first: the two teams' squad and the match officials (referees, table) who already have a face. If none of them match, the same face is compared with the rest of the organization. The API keeps one face process per spare core (about 40 on pr-api) and the app keeps that many photos in flight. The library worker's face pool stays capped.
spark added 1 commit 2026-10-17 19:12:13 +01:00
Folder search: try the game first, then everyone else, on every core.
ci / rust (pull_request) Successful in 7m42s
ci / typescript (pull_request) Failing after 9m6s
96deacd7b6
A face is named from the match (players and officials) when one of them matches, and only then from the rest of the organization. The scan runs one face process per spare core so a full folder is read in parallel.
spark merged commit 63d600f6fb into main 2026-10-17 19:12:34 +01:00
Author
Owner

Merged to main as 63d600f6fb.

A folder scan now names a face from the chosen game first: the two teams' squad and the match officials (referees and table) who already have a face. If none of them match, that face is compared with the rest of the organization.

Reading a folder uses one face process per spare core on pr-api (48 cores, 64 GB: 40 processes) and the app keeps that many photos in flight. The library worker's own face pool stays capped at 6. The first photos of a scan wait while those processes load; after that the folder is read in parallel.

Tests: lookup.test.ts (6) and CardScan.test.tsx (4). pr-api and pr-app deploy from this merge.

Merged to main as 63d600f6fb714106f59877c0170cf3616f50b312. A folder scan now names a face from the chosen game first: the two teams' squad and the match officials (referees and table) who already have a face. If none of them match, that face is compared with the rest of the organization. Reading a folder uses one face process per spare core on pr-api (48 cores, 64 GB: 40 processes) and the app keeps that many photos in flight. The library worker's own face pool stays capped at 6. The first photos of a scan wait while those processes load; after that the folder is read in parallel. Tests: lookup.test.ts (6) and CardScan.test.tsx (4). pr-api and pr-app deploy from this merge.
Sign in to join this conversation.