Repository navigation
Reduce redundant SDK calls in writable SpiralDB runs #698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eywalker
merged 20 commits into
main
from
eywalker/itl-1502-spiraldb-database-costs-stage-e
Dec 4, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4435570
chore: merge main into SpiralDB cost work
eywalker b7d7355
perf(spiraldb): check the writer lease on its first write
eywalker 1d7af35
perf(spiraldb): index stored side-effect completions once per execution
eywalker eb0be80
perf(spiraldb): reuse the writer lease key index at flush
eywalker 723cbf4
perf(spiraldb): release a claim without scanning its state
eywalker fd3f701
perf(spiraldb): share stale-table discovery across a run
eywalker 4d2b272
perf(spiraldb): mark tables after their first successful append
eywalker 1096bf2
perf(spiraldb): batch function result commits during node runs
eywalker 6aeaf09
perf(spiraldb): use table IDs after name resolution
eywalker b71d942
fix(spiraldb): copy nested Arrow buffers before appending
eywalker 48aa8c8
fix(spiraldb): keep run lookup capabilities independent of database i…
eywalker 1c7e530
fix(spiraldb): keep run-shared state coherent and node batching to Sp…
eywalker cb56f9f
fix(spiraldb): list a table after an ambiguous first append
eywalker 86b7d13
docs(spiraldb): state which accepted rows an ambiguous batch reply le…
eywalker a48cec4
chore: merge origin/main into writable database branch
eywalker 9d8430c
fix(spiraldb): preserve commit dependencies during node writes
eywalker d9ce39b
test(spiraldb): compare batch retries with per-row commits
eywalker 928f25f
chore: merge main into database run optimizations
eywalker f4b893e
fix(spiraldb): guard node batching and scope append retries
eywalker 98c96ae
fix(spiraldb): retry node batches and refresh table bindings
eywalker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ### Changed | ||
|
|
||
| - Writable SpiralDB jobs reuse lease verification, stored-key and completion | ||
| lookups, and stale-table discovery across a run, shared by every connector and | ||
| thread of the run. Connections reuse resolved table IDs within each write scope. | ||
| - A job node's `run()` commits a function node's writes every 100 rows and at its | ||
| end when it has a pipeline database, the pod takes no invocation context, and | ||
| every database the node commits to is a writable SpiralDB database or an | ||
| `InMemoryArrowDatabase`, including at least one writable SpiralDB database. | ||
| Other node runs keep per-row commits. A failed batched result append is retried | ||
| one row at a time in order. Read and validation errors before the append stop the | ||
| run immediately. After a definite append failure, the results and pipeline records | ||
| before the failing row stay stored, as with per-row commits. After an ambiguous | ||
| reply, each row before the first failing row gets its pipeline record, including | ||
| rows the service already accepted. A result the service accepted beyond that prefix | ||
| can stay stored without a pipeline record and be reused by a later run. | ||
| Failed pipeline-record appends also retry one row at a time. An interrupted node | ||
| run withdraws its pending results and pipeline records. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - Writable SpiralDB appends copy Arrow buffers before writing, including slices | ||
| that leave string or binary lists empty. |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.