perf(sqlite-native): reuse read cache for partial writes#4632
Conversation
Review:
|
| Area | Assessment |
|---|---|
| Correctness | The inconsistent guard (ctx.read_cache_enabled instead of state.read_cache.as_ref()) diverges from all other cache sites. Not a bug today, but fragile. |
| Performance | The optimization is valid — cache hits on partial-write chunks eliminate a full KV round-trip per affected chunk. |
| Cache coherence | Write-after-read and rollback-on-failure are handled correctly. |
| Style | Use the state.read_cache.as_ref() pattern used everywhere else rather than re-checking the boolean flag. |
The core idea is correct and the implementation is nearly there. The main ask is aligning the guard style with the rest of the file before merging.
87e4122 to
8c30d87
Compare
d81f1b5 to
18d65ab
Compare
8c30d87 to
86fec2b
Compare
349925c to
c7ac8f9
Compare
86fec2b to
79dfb24
Compare
e98814b to
abbbf3d
Compare
7e3d3e1 to
00a76a4
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: