Repository navigation
perf(spiraldb): a job reads only the columns its selections keep (ITL-1798) #687
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 14 commits into
main
from
eywalker/itl-1798-spiraldb-source-in-a-job-read-only-the
Dec 1, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a635799
prototype(spiraldb): column projection for a select on the source (IT…
eywalker fbcc065
feat(spiraldb): scan only the columns a selection on the source keeps…
eywalker 1e3e050
test(pipeline): give the hand-written source slot the projected_table…
eywalker b160bd2
chore(spiraldb): merge main into narrow column projection
eywalker 526b771
perf(spiraldb): a job reads only the columns its selections keep (ITL…
eywalker 6e37ae8
fix(pipeline): collect a projected source node's whole output; restor…
eywalker 1464b84
chore(spiraldb): merge main into job-route projection (ITL-1798)
eywalker 48c97e3
fix(spiraldb): probes of a projected output read nothing; its whole r…
eywalker 917970c
fix(spiraldb): a projected output's whole read uses the snapshot pinn…
eywalker b3d9eac
fix(spiraldb): a projected output answers every member as main's and …
eywalker 267a5ed
refactor(spiraldb): collect main's own output classes with a shared w…
eywalker 07579b8
fix(streams): a sorted head(0) of a stream holding its rows takes mai…
eywalker a8aa070
fix(spiraldb): the async projected route streams its batches as main'…
eywalker 96975de
test(spiraldb): measure the async route's peak after a warm-up, lowes…
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
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,21 @@ | ||
| ### Changed | ||
|
|
||
| - In a pipeline job, a `SpiralDBTableSource` node read only by column selections | ||
| (`select_data_columns` or `select_columns` directly on the source, including the | ||
| automatic selection before a function pod) now scans only the columns those | ||
| selections keep: the union, when several selections read it. Every tag column, every | ||
| key column and the columns of a `where` condition are still read. This holds for | ||
| `job.run()`, `job.run_async()`, load-only runs and a node's own `run()`; on | ||
| `job.run_async()` the narrowed rows are read and sent batch by batch, as a whole | ||
| read's are, so the first row reaches the next step before the scan ends and one | ||
| batch is held at a time. Any other | ||
| step directly on the source (a drop, a join, a function pod taking every column) | ||
| means the whole table is read, as before. The job's rows, stored rows, hashes, | ||
| schemas, record ids and stored paths are those of the whole read, and an | ||
| orchestrator's collected output for the source node (`node_outputs`) is the whole | ||
| node's. Reading that collected output whole (its table, its rows, or any column the | ||
| selections left out) reads the source again, whole, on first use, and so transfers | ||
| the columns the selections omit; that read is of the version the run used, as | ||
| before, also after a later check or run has pinned a newer one. Describing the | ||
| collected output (its keys, schemas, hashes, `explain()`, a `head(0)` that asks for no row hash) reads nothing, | ||
| and a step built on it reads only when its own rows are read. On a table with a wide column, a narrow job is several times faster. | ||
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.