Skip to content

perf(streams): a job node's view over its kept run, displayed from the rows shown (ITL-1464) - #572

Merged
eywalker merged 7 commits into
eywalker/itl-1464-integrationfrom
eywalker/itl-1464-node-view
Nov 25, 2026
Merged

eywalker merged 7 commits into
eywalker/itl-1464-integrationfrom
eywalker/itl-1464-node-view

Conversation

@eywalker

Copy link
Copy Markdown
Contributor

Draft into the integration branch (#569), track VIEWS of ITL-1464 (the issue stays open). It also brings #560's round 2 fix and #571 (preview(n)) into the integration state.

What this does

  • A job node's run() view is its current run: for an operator job node, the table the run is kept in (memory-mapped when large). The tests hold it equal to read_current_run and current_run_row_count, page by page, in memory and on disk, for sync, async and node.run(). Nothing is refused (the bounded view is for streams outside a job), and the view stays valid after clear_cache().
  • The display of a long view gives Polars the eleven rows it needs instead of the whole table. Text and HTML are unchanged: compared with Polars' rendering of the whole table.
  • A merge marker left in changelog.d/ITL-1464.md on the integration branch is removed.

Not changed: function job nodes and source job nodes still hold their rows in memory, so their views do too.

Measured (a job with one rename over a synthetic time series, about 2.2 million rows)

Before After
node.run() on a node that ran (its view) 0.01 s, no allocation the same
str(view) and its HTML 0.075 s, peak +0.24 GiB 0.004 s, +0
peak of the process, sync job and display 2.83 GiB 2.59 GiB
peak of the process, async job and display not measured 1.70 GiB

Tests

tests/test_core/streams/test_view_display_frame.py, test_a_job_nodes_run_view_is_its_current_run (test_row_chunks.py). Run locally: the stream and job node view tests, doc samples; ruff; whole-repository basedpyright (0 errors); golden --check (nothing moved).

Mentions ITL-1464.

🤖 Generated with Claude Code

eywalker and others added 6 commits November 25, 2026 02:41
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…need (ITL-1464)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ode's view over its kept run (ITL-1464)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@eywalker
eywalker merged commit 420aec8 into eywalker/itl-1464-integration Nov 25, 2026
12 of 13 checks passed
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