LearnNewsExamplesConnect
Frontmatter
assigneesamritkang165
createdAtNov 14, 2026, 11:25 PM
updatedAtNov 17, 2026, 11:20 AM
githubUrlhttps://github.com/neomjs/neo/issues/20974
authorneo-opus-grace
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[x] 20985 A row batch misses a TreeStore''s collapsed rows and skips its re-sort, [x] 20968 A Turbo Mode store takes a batch of row edits as one change
blocking[]
closedAtNov 17, 2026, 11:20 AM

A container's bulkUpdateRecords writes one store batch

Closed v14.0.0/archive-v14-0-0-chunk-2 enhancementhelp wantedgood first issueaiperformancegrid
neo-opus-grace
neo-opus-grace commented on Nov 14, 2026, 11:25 PM

Please comment to claim before starting; check current assignees and linked PRs.

Starts once #20968 is merged: it adds the store batch this ticket moves onto.

Context

Neo.grid.Container#bulkUpdateRecords(records) (src/grid/Container.mjs:970) and Neo.table.Container#bulkUpdateRecords(records) (src/table/Container.mjs:355) batch record edits for the live-data apps (apps/colors/view/ViewportController.mjs:233, apps/finance/view/ViewportController.mjs:45). #20968 adds Neo.data.Store#updateRows([{key, values}]): Turbo Mode rows are written in place without hydrating them, rows that already are records publish recordChange with isBatch: true, and one rowsChange closes the batch. Neo.grid.Body repaints its mounted rows once on it.

The Problem

The container methods predate the store batch. Each edited row goes through store.get(key)?.set(record), so every row is hydrated into a record, every row fires its own recordChange, and opted-in filters and sorters reapply once per row. body.silentVdomUpdate holds back only the centre body's updates. Two batch paths now exist for one job.

The Architectural Reality

  • Both methods toggle body.silentVdomUpdate, call set() per record, then body.update().
  • Store#updateRows refuses the key field and undeclared fields. bulkUpdateRecords is handed whole records, key included, and record.set() ignores fields the model does not declare.
  • Neo.table.Body follows recordChange per row (src/table/Body.mjs:158, :791) and has no rowsChange handler. Neo.grid.Body#onStoreRowsChange and the isBatch early return in Neo.grid.Body#onStoreRecordChange are the pattern.
  • #7170 (closed): grid cells stayed stale after bulkUpdateRecords with silent VDOM updates. A batch must end in an explicit repaint.

The Fix

  1. Neo.grid.Container#bulkUpdateRecords maps each record to {key: record[keyProperty], values}, keeping the model's declared non-key, non-calculated fields, and calls store.updateRows(). The silentVdomUpdate toggle goes.
  2. Neo.table.Container#bulkUpdateRecords does the same. Neo.table.Body listens to rowsChange, repaints its mounted rows once, and leaves isBatch record repaints to that pass.
  3. The colors and finance apps keep calling bulkUpdateRecords unchanged.

Acceptance Criteria

  • grid.Container#bulkUpdateRecords on a Turbo Mode store hydrates no row that was not a record and fires one rowsChange (unit).
  • table.Container#bulkUpdateRecords does the same, and table.Body repaints its mounted rows once per batch (unit).
  • A passed record's key and undeclared fields are ignored, as before (unit).
  • The colors and finance apps still show their live updates (e2e: the existing colors specs stay green, and one arm reads an updated cell after a tick).

Out of Scope

Removing bulkUpdateRecords or changing its signature; server-side batching; other recordChange consumers.

Related

#20968 · #7170 · #5416

Live latest-open + closed sweep: checked latest 20 open (49 open, orange band; no owning ticket or epic for container batch writes) + closed search ("bulkUpdateRecords": #5416 and #7170 read, both predecessors, nothing excluded) and open search (none) at 2026-11-14T22:24Z; A2A claims (last 30 messages, all read states): none on container batch writes; Memory Core problem-noun search: no prior thread; own assignments (#20968, #20964, #20952, #20911, #20884, #20790): #20968 is the predecessor, no overlap.

unowned-rationale: Ready for a contributor; maintainers provide planning and review. Whoever picks it up reads Neo.data.Store#updateRows and Neo.grid.Body#onStoreRowsChange first.

Origin Session ID: 9cd08081-21d1-4a2c-bdb9-061f3ddcc05a

Retrieval Hint: "bulkUpdateRecords store batch updateRows hydration grid table container live data"

amritkang165
amritkang165 Nov 15, 2026, 9:27 PM

I would like to work on this. I’ll move grid and table bulk updates onto Store.updateRows, add the table batch repaint handling, and cover the behavior with unit tests and live-update checks for colors and finance.

  • 2026-11-15T20:28:12Z @github-actions assigned to @amritkang165

@github-actions - 2026-11-15T20:28:13Z

Thanks for claiming this, @amritkang165, and welcome! Assigned to you — you can start now.

Your claim reserves this issue for 3 days (any comment here resets the clock; we still merge the first approve-worthy PR if another lands first or a claim goes quiet).

An automatic reply. How claims work [QUARANTINED_URL: github.com]

amritkang165 cross-referenced by PR #21118 on Nov 16, 2026, 9:58 AM
amritkang165 referenced in commit cde7026 - "chore(docs): register the shared store utility in the class hierarchy (#20974)" on Nov 16, 2026, 10:22 AM