e14625ed

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Let SQLite assign media IDs (#232)

CreateMediaItem now relies on SQLite's INTEGER PRIMARY KEY allocation instead of computing MAX(id) + 1 in application code. Lower the media ID minimum to 1 so SQLite's first generated row ID is valid, and update TinyBeans import tests to start from the shared minimum.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/232

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 0s 9s 9s 9s 0s
Eval 8s 45s 45s 54s 0s
Build 13s 1m22s 21s 35s 0s
Suite 0s 2m16s 53s 54s 0s

Timeline

0s10s20s30s40s50s