Repository navigation
perf(runtime): bound created-at reservation listing (v0.1.25.54) - #242
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
created_at_msreservation ZSET, atomically dual-written by every reserve0.1.25.54release bumpWhy
Sorted reservation pages previously scanned and hydrated the global reservation keyspace, then sorted every matching row in memory. At 10,000 rows that made the default
limit=20request O(total reservations) on every page. The index is used only when its completeness proof is valid; reservation hashes remain authoritative and any uncertainty returns to the existing full-SCAN behavior.Impact
Same-host three-trial medians improved from 22.5 ms to 10.7 ms at 1,000 rows and from 164.9 ms to 11.1 ms at 10,000 rows. Reserve p50/p99 and 32-thread lifecycle throughput remained within the 25% regression gate. The application and both production Compose files default the read/backfill switch off; operators explicitly enable it only after every writer runs the index-aware release.
Validation
mvn -B -f cycles-protocol-service/pom.xml clean verify -Pintegration-testsgit diff --checkCloses #240