feat(sqlite): add cold read benchmarks and simplify optimizations#4857
Conversation
Preview packages published to npmInstall with: npm install rivetkit@pr-4857All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-3a10f72
docker pull rivetdev/engine:full-3a10f72Individual packagesnpm install rivetkit@pr-4857
npm install @rivetkit/react@pr-4857
npm install @rivetkit/rivetkit-napi@pr-4857
npm install @rivetkit/workflow-engine@pr-4857 |
298ede2 to
dc8f1c2
Compare
3412c8f to
b178905
Compare
Code ReviewOverviewThis draft PR adds cold-read benchmarks for the SQLite real-world workload harness and lays the groundwork for a read/write connection pool (per
The connection manager is new infrastructure not yet wired into Bugs
A second concurrent The declared-but-never-assigned
Design / ArchitectureConnection manager not yet integrated
The spec's Read-Only Enforcement section calls for
Code QualityRedundant guard in if kind.is_data_write()
|| kind.is_schema_write()
|| kind.is_temp_schema_write()
|| (kind.is_data_write() && database_name.as_deref() == Some("temp"))
// ^^^ always subsumed by the first armThe last condition is always covered by the first
If a writer continuously increments Lease The Tests
Minor
|
PR Review: feat(sqlite): add cold read benchmarks and simplify optimizations
Blocking Issues1. Five load-bearing VFS invariants removed from CLAUDE.md without being re-homed The following bullet points were removed from CLAUDE.md but do not appear in the updated
The The invariant comment rule was also removed. This removal is premature. The connection manager The reference to 2. Read/write lease Drop does not decrement counters (base branch, When a 3. In Important Issues4. Spec step 12 (
5. A semicolon inside a SQL comment or string literal will false-positive. Flag this as dead code to be removed in the appropriate transplant branch. 6. Values above 2^53 - 1 are silently truncated. Use Benchmark Harness Feedback (
|
| Priority | Issue |
|---|---|
| Blocking | 5 VFS invariants removed from CLAUDE.md not re-homed in docs |
| Blocking | Lease Drop does not decrement counters, manager gets stuck |
| Blocking | closePromise never assigned, concurrent close not serialized |
| Important | default off (spec) vs default on (merge plan) misalignment |
| Important | hasMultipleStatements string inspection (remove per plan) |
| Important | bigint to Number() precision loss for i64 > 2^53 |
| Nice to have | metricValue silent zero on unknown metric names |
| Nice to have | Benchmark JSON diff noise, add linguist-generated attribute |
b178905 to
e5c68c2
Compare
dc8f1c2 to
a46bdef
Compare
e5c68c2 to
9d83f98
Compare
a46bdef to
85e870b
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: