Repository navigation
Conversation
Signed-off-by: Zefeng Yin <yinzefeng.yzf@alibaba-inc.com>
iaojnh
force-pushed
the
codex/batch-commit
branch
from
October 26, 2026 03:55
ba576b3 to
059fe94
Compare
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
Flushing after every document write can seal the current write block and create a new FLAT index file on the next request, growing storage by roughly 5 MB for each small insert. Add the process-wide
ZVEC_STUDIO_AUTO_FLUSH=falsesetting so consecutive CRUD requests can reuse the current write block. The default remainstruefor compatibility.Explicit flush and collection close still save pending writes, and file imports still flush once at the end. If flushing during close fails, keep the collection registered and propagate the error so saving can be retried. With automatic flushing disabled, users must explicitly save or close the collection before stopping the server; abnormal termination may lose unsaved changes.
The change is limited to backend configuration, the existing write/close paths, documentation, and regression tests. No Zvec SDK changes or frontend changes are required.
Validation
.proximafile with deferred flushing, versus three with the default; saved documents survive close/reopen.git diff --checkpassed.