gabriel / musehub public
perf patch unpack-bundle dev
AI Agent gabriel · 39 days ago · May 11, 2026 · Diff

perf(unpack-bundle): bulk INSERT snapshots and commits instead of N individual round-trips

Root cause of push hanging: 1021 snapshots + 1027 commits were each inserted in a separate session.execute() — 2048 sequential DB round-trips.

Fix: build row dicts first, then INSERT in batches of 200 (same pattern as the 500-row object batches). Snapshot and commit writes now each make ceil(N/200) round-trips instead of N.

Also adds granular [unpack-bundle] timing logs at every sub-step so the breakdown is visible in Docker logs.

sha256:2e30ea23d8eccaddcb50095a9e3472e137b0637ff903a3ac69ac77e56ee34142 sha
sha256:53b31595deb4f541d739edc891d4904a7e231a002ad5653d86ee73aa43d67514 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:2e30ea23d8eccaddcb50095a9e3472e137b0637ff903a3ac69ac77e56ee34142 --body "your comment"