Commit 1e0d2f1
fix(persistence): skip upsert_page archive when source_hash is unchanged
Previously upsert_page always archived the existing PageVersion and
incremented the version counter, even when the source file had not changed.
Now it returns early if existing.source_hash == source_hash, avoiding
unnecessary PageVersion rows and redundant writes during Phase 4 batch
persist after incremental per-page saves in Phase 3.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2ad7b7f commit 1e0d2f1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
242 | 246 | | |
243 | 247 | | |
244 | 248 | | |
| |||
0 commit comments