perf: parallel exists() + single bulk INSERT in wire_push_confirm
Replace N sequential backend.exists() calls with asyncio.gather bounded by Semaphore(64), and N individual pg_insert statements with one bulk INSERT INTO musehub_objects VALUES (...) ON CONFLICT DO NOTHING.
TDD: 5 tests (P1–P5) covering call count, concurrency proof, single- statement assertion, wall-clock threshold, and mixed present/absent batch.
sha256:eb00c0a94f83584a7da747f32ee8ef7bbcbc0a8bfcb7f33ae99a8ffcf05d665c
sha
+16
~1
symbols
sha256:0df8cff6ee0e0ccdc2ae61664bc7130bd7da342b459c9adc3f99acacf949806a
snapshot
+16
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
17 symbols
+
test_p1_exists_called_once_per_object
function
async_function test_p1_exists_called_once_per_object L63–87
+
test_p2_exists_calls_are_concurrent
function
async_function test_p2_exists_calls_are_concurrent L95–124
+
test_p3_bulk_insert_single_statement
function
async_function test_p3_bulk_insert_single_statement L132–162
+
test_p4_wall_clock_under_threshold
function
async_function test_p4_wall_clock_under_threshold L170–202
+
test_p5_mixed_batch_absent_skipped
function
async_function test_p5_mixed_batch_absent_skipped L210–232
Older
fix: rewrite presigned URL hostnames via R2_PUBLIC_ENDPOINT
sha256:bba0cbfe5297dcff248ddc92ed451e63b3239e4e8ace4f904567e7caee1e05ce
All commits
Newer
perf: eliminate MinIO ghost-check from push/stream hot path
sha256:ca1ebb9cb6e4673fa0b75a7c53bab235ef61adaa7ae38885f591b5ad23c66378
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:eb00c0a94f83584a7da747f32ee8ef7bbcbc0a8bfcb7f33ae99a8ffcf05d665c --body "your comment"
No comments yet. Be the first to start the discussion.