114508aa

By: Michael Lynch <git@mtlynch.io>

Make Tinybeans metadata import atomic

Persist users and imported metadata only after every entry succeeds, so a failed import leaves no partial database state. Restore the established timestamp ordering and consolidate SQLite writes through transaction-aware helpers.

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 2s 1m15s 1m15s 1m17s 2s
Eval 1m14s 2m05s 2m05s 3m20s 0s
Build 2m58s 12m03s 3m08s 6m06s 0s
Suite 2s 15m24s 6m04s 6m06s 2s

Timeline

0s1m2m3m4m5m6m