Skip to content

perf(core): batch semantic vector prepare transactions - #1131

Merged
phernandez merged 1 commit into
mainfrom
codex-1110-vector-prepare
Jul 21, 2026
Merged

perf(core): batch semantic vector prepare transactions#1131
phernandez merged 1 commit into
mainfrom
codex-1110-vector-prepare

Conversation

@phernandez

Copy link
Copy Markdown
Member

Summary

  • plan every entity in a semantic vector prepare window before opening the shared write scope
  • apply all mutation plans through one session and one commit per window
  • preserve skip-only results and surface the same shared write failure to every mutation-dependent entity

Related issue

Part of #1110

Testing

  • just fast-check
  • 57 focused semantic vector synchronization tests
  • just fast-test (74 passed, 1 skipped)
  • just package-check
  • just doctor

Risk

Low to moderate. The embedding flush size and batching defaults are unchanged; this only consolidates database writes for an already-planned prepare window. Regression tests cover SQLite and Postgres transaction counts, skip-only windows, and shared write failures.

Signed-off-by: phernandez <paul@basicmachines.co>
@phernandez
phernandez merged commit 4de5571 into main Jul 21, 2026
22 checks passed
@phernandez
phernandez deleted the codex-1110-vector-prepare branch July 21, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant