- A sync re-checks only the owner's smart collections that filter on
owned_on_steam, not every user's collections.
- replace_entries writes an entry only when it changed; MariaDB reads the
timestamp back naive, which made every played game an UPDATE per sync.
- Chunked queries use itertools.batched, and the "prefer a rom with a
file" order moves into SQL.
- Link and unlink return the updated user instead of re-reading it, the
worker check is shared with run_single_task, the store-only path reuses
build_physical_fs_path, and _get_steam_user becomes _get_manageable_user.
- The profile section's link() ends in sync(), the store exposes only what
is read, and the Steam test fixtures move to tests/factories.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4hBCkRF6nyKoFy6MXw